Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

setContext not respecting camera setting

edited November 2012 in Bugs Posts: 2

If I add the following screen capture code to the 3D Blocks demo and rename the 3D Blocks draw function to sceneDraw() the scene rendered to the image will not render with the respect to the camera setting, demonstrated by changing camera height or rotating the blocks. The result will show culled back faces.

Is this a known issue or limitation when rendering to an image?

function draw()
screenCap = image(WIDTH, HEIGHT)
setContext(screenCap)
sceneDraw()
setContext()
sprite(screenCap,WIDTH/2,HEIGHT/2)
end

Comments

Sign In or Register to comment.