Disapearing shapes (wrong culling ?)

Hi,

Could someone tell me what I’ve done wrong ? In the new version of Jack Flowers (released soon) I have added some camera effects (pan/rotate) to track player movements.

The plants are currently tall but thin Shape3D, with just a colored apprearance, and a single array of quads as geometry.

When the plants are beginning to be outside the camera view (yet still partially visible) they simply disapear :frowning:

Is there a problem with that kind of shape ? (tall and thin) should I explore the bounding features of Xith to resolve that problem ?

Many thanks to anyone who will put me on the right track…

Lilian :slight_smile:

maybe they are too close to the camera? There’s something like front-clipping distance…

no, other plants nearer are still visible (these ones are fully visible in the field of view).

any other idea ?

Lilian

Try that :


view.setIgnoreBounds(true);

Just an idea, I don’t know if it works

I’ve found the problem : I used a geometryUpdater to ‘grow’ plants, but didn’t invoked setBoundsDirty() to recompute bounds once finished.
so the bounds were those of the seed, not the fully grown stem.

Lilian :slight_smile:

Wow I didn’t know that. I hope i’ll remember when doing dynamic geometry…
Shouldn’t we make an entry in the FAQ for this issue ?

Hi,

[quote]Shouldn’t we make an entry in the FAQ for this issue ?
[/quote]
Would be great because of this is often problem for perople starting using Xith3D.

Yuri