Hi,
I would like to achieve a multitexture effect on built-in shape drawable
objects (Box, Capsules and so forth).
My question is how to get and/or change the texture coordinates of these
objects?
Waiting for your reply.
Franclin.
__
Do You
Hi Franclin,
You can't modify the texture coordinates of ShapeDrawable, as explain
yesterday, ShapeDrawable is just a simple class for enabling rendering
shape primitives, its not meant as a general purpose rendering tool.
Please build geometries using osg::Geometry as per the osggeometry
example
in general, don't use shape drawables if performance is important. shape
drawables render in immediate mode: the slowest form of rendering on
modern gfx
hardware. this is a topic paul and i discuss in our course in detail.
bob
ps - shameless plug: next osg course: june 11-13, boulder
3 matches
Mail list logo