Discarded geometry while rendering to texture

Started by zbych, March 04, 2013, 11:03:00 AM

Previous topic - Next topic

zbych

Hi.

I wanted to add bloom effect to scene, however sometimes when camera is moving, some of the objects are not rendered when I make first rendering to texture.
As you can see on this screen, the bloom effect of few buildings is rendered on the roof of closest buildings - the buildings closest to camera were discarded in first render pass. Can I do something about this?


EgonOlsen

Maybe you are manipulating the camera directly in the touch event methods? If so, don't do it.  jPCT isn't thread safe.

zbych

This problem has something to do with FrameBuffers's setVirtualDimensions. The buildings doesn't disappear when virtual dimension is not set, but in that case the bloom is rendered int totaly wrong place.

EgonOlsen

Maybe the gross culling doesn't take the virtual dimensions into account...i'll look into it.


zbych