Hello,

What's the best way to draw a sphere with the ability to color some of the 
surface's segments differently?   What I'm trying to do ... I'd like to change 
the color of a given segment if it is intersected by a ray (leaving the rest of 
the sphere color the same).

I've used the osgSim::SphereSegment, but I don't think it allows for explicitly 
coloring a specified segment.  It looks like the entire Surface is added as one 
drawable.

Would be easy to change how the way the Surface drawable is added ... creating 
a different drawable for every segment ... and enabling them to be indexed by 
azimuth/elevation angle (or range)?

I could start from scratch, but I was hoping to leverage osgSim::SphereSegment 
in some way.

Any suggestions will be greatly appreciated!

Thanks,
   Ben

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to