> Thanks for the examples.
>
> Now the textures are working fine, but I still can't solve the problem
> with the double-sided plane (I get the same result with your sample
> file as well), and the box with the flipped normals.
>
> It must be supported by OSG, since one of the exaples (osglight) uses
> a box as a test "room", and the outer sides of the box are not
> visible, just like the way it supposed to look. But in that example,
> the
> room is not an external model, but generated, so I can't examine the
> model file.
>

Of course it is supported by OSG, another matter is if the exporter
takes that into account. For the double-sided thing, I think you could
get that just by adding a FRONT, BACK or FRONT_AND_BACK into the
material definition components in the .osg file. However, even if you
want a geometry that can be seen from the inside and the outside, I
recommend you to use thick objects, that is, to use a thin cube for a
wall instead of a plane, for example. Sometime ago I read about
performance penalties when dealing with double sided materials. I don't
know if they still stand.

> So when I flip the normals in Blender, is there a way to export it
> that way?
>

I tried to do that as well but I couldn't succeed. You should write a
visitor that inverts the normals for those selected geometries.

-- 
Alberto

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

Reply via email to