Hi all,

I am attempting to migrate an existing codebase that uses OSG 3.0.1 to use 3.2.0 (as a precursor to 3.2.1), and I've run into a number of problems. I could really use some starting points and suggestions to assist in tracking these down.

I am running on Debian Linux 6 with 2xGT630 nVidia cards, more information available if needed. The codebase runs *mostly* fine on 3.0.1, but issues arise in 3.2.0.

Is there any resource on migrating to OSG 3.2.0 available? If there was such a thing, it would potentially give me a list of things to check against. I'm thinking I am likely relying on some default or behaviour that just isn't true any more in 3.2.0.

One problem: I have a number of animated models (without textures for now) that load and display fine in osgviewer and osganimationviewer. However, in the app itself, they behave strangely. It seems that within the same model, geometry that should be further away frequently appears in front of closer geometry. For example, consider a model with a human wearing a backpack, with the human facing the camera. In this case, the backpack is drawn, in what appears the right position, in front of the human, overlapping it. It is almost as if the model is being drawn in the reverse order with depth buffering disabled.

Regarding the models: Most were originally FBX models, but I convert them with osgconv into osgb format before use. I used the same process in 3.0.1 (with a 3.0.1 osgconv), and they seemingly worked fine with 3.0.1.

It also appears that sometimes- but not always- that closer geometry in different models appears behind geometry that is further away.

Another problem: If I use shadows, specifically ShadowTexture, the HUD I use (implemented with a Camera set with POST_RENDER rendering order) vanishes entirely. If I disable shadows, it returns. It worked fine in 3.0.1 (ie. shadows did not impact the HUD). It also works fine right up until the point I add the first geometry with shadows.

Lastly, even with 3.0.1 I could never wrap my head fully around RenderBins, and the significance of their names and numbering. Is there any guide, anywhere, which is both accurate and up-to-date for 3.2.0 on RenderBins, and how they interact with render order and rendering hints? Is there a means to diagnosing which bins are in use and which geometry ends up in each?

Any suggestions and starting points appreciated. My progress is very slow and my attempts to solve it haphazard. I could really use some outside input.

Cheers,
Garth
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to