Hello Victor,

Victor Haefner wrote:
> I am new to OpenSG.. I would like to visualize a vector in my scene, is 
> there a simple method? (something like visualizing the normals of a 
> geometry)

for visualizing the normals of a geometry, there are two functions in 
OSGGeoFunctions.h:

calcVertexNormalsGeo(Geometry *geo, Real32 length);
calcFaceNormalsGeo  (Geometry *geo, Real32 length);

In general you'd have to build a geometry that shows the lines, the 
tutorial on the wiki (<http://opensg.vrsource.org/trac/wiki/Tutorial>) 
has a chapter on those and the files 
Source/System/NodeCores/Drawables/Geometry/Util/OSGSimpleGeometry.{h,cpp} 
have examples.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to