Hello Georg,

Georg Stevenson wrote:
> One question once again, then i'm already done with converting it (then 
> testing and looking if everything works) starts
> 
> i'm struggling about how i can reimplement the following, or if that 
> isn't necessary any more?
> 
>       GeometryPtr geo = Geometry::create();
>       ...
>       geo->getIndexMapping().push_back(Geometry::MapPosition);
>       geo->getIndexMapping().push_back(Geometry::MapColor  |
>                                        Geometry::MapNormal |
>                                        Geometry::MapTexCoords);

The handling of indices has changed a bit. The tutorial page on Geometry 
(<http://www.opensg.org/wiki/Tutorial/OpenSG2/Geometry>) has a 
description of the new organization.
In a nutshell you'd create two indices (GeoUInt32Property) and do the 
following:

// use index0 for positions only:
geo->setIndex(index0, Geometry::PositionsIndex);

// use index1 for colors, normals and tex coords:
geo->setIndex(index1, Geometry::ColorsIndex);
geo->setIndex(index1, Geometry::NormalsIndex);
geo->setIndex(index1, Geometry::TexCoordsIndex);

        Cheers,
                Carsten

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to