Hi Maurizio,
Maurizio Lodo schrieb:
Hi,
Thanks Peter for your very helpful reply. I have sorted that issue thank to
your pointers.
Now I have only one more question then I promise I won't bother you anymore. It
seems that when I generate my model using the simple geometries I created and
using VertexShader, the resulting cube, for example, has a very flat uniform
colour, where it is impossible to distinguish the various faces. This does not
happen when using the shapeDrawable cube or cylinder and so on. Would any of
you mind pointing me in the right direction of how to resolve this?
You need to provide normals to your geometry and enable light
to achive the effect you desire.
Thank you!
Cheers,
Maurizio
Cheers,
Peter
--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org