Disappearing scenegraph items?

I’m having a problem that is sort of hard to describe. My best description is that if I rotate the player (and thereby, the camera) a certain angle, my geometries go invisible/disappear. I made a quick and dirty screencast to better demonstrate the issue. You can find it here: http://screencast.com/t/Z8u9iM2N5

What you’re seeing is the inside of an octagonal cylinder being used as a skyline. Believe it or not, it’s a KMZ file (zipped up COLLADA) downloaded, parsed, and reconstructed JME3 style. Ignoring the wonnky texturing issues, you can see the skyline disappear when Oto turns too far to either side. Ideally, I’d like it to stay visible regardless of which way Oto is facing.

Is there any more information needed? I’m using the cameraNode implementation as described here: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:making_the_camera_follow_a_character

Looks to me like it is culled, which is probably caused by a bad bounding volume. Try to recalculate your bounding volume, or turn off culling for the object.

2 Likes

@nihal wow…that couldn’t have worked better. I called updateModelBound() on each geometry after it was created and now they no longer disappear.

Thanks!