On Thu, 2005-07-14 at 13:37 -0500, Terry Welsh wrote: > I'm not sure what you mean by Property. Is that OpenSGese? We didn't > create any type of texture coordinate data structure. All we want is > a pointer to the texture coordinate data structure already contained > in our geometry. Our pointer to a 2-float data type (GeoTexCoordsPtr) > is wrong, and our pointer to a 3-float data type (GeoTexCoords3fPtr) > causes a crash.
Yeah, because the calcVertexTangents creates a 4D property. No clue why, can anybody answer that? So if you add GeoTexCoords4fPtr tc4 = GeoTexCoords4fPtr::dcast(tex_coords); if(tc4 == NullFC) { FWARNING(("texcoords not 4D!")); return; } and use OSG::Vec3f temp = tex_coords->getField().getValue(t); to get the data things should work. Yours Dirk ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users