Hi Allen,

we have a "Latest Activities" list on www.opensg.org. But I forgot to
mention this feature. I think it was included after the 1.2 release.

Andreas

> calcVertexTangents? That's awesome.
> 
> When was that added? Even monitoring the cvs commits I missed that one.
> Is there a running "what's new" page on the website or anything that has
> a list of things like this that may have slipped through while I wasn't
> watching. :)
> 
> -Allen
> 
> 신선형 wrote:
> 
> 
>>Hi,
>>
>>I used "calcVertexTangents" function in OSGGeoFunctions.cpp file to
>>calculate the tangents and binormals for the geometry's vertices.
>>
>>calcVertexTangents(carGeo, 0, Geometry::TexCoords1FieldId,
>>Geometry::TexCoords2FieldId);
>>
>>I think the tangents will be saved into TexCoords1 and binormals into
>>TexCoords2.
>>Isn't it right?
>>
>>I want to see the results of that function.
>>
>>OSG::GeoTexCoordsPtr texCoordsPtr;
>>texCoordsPtr = carGeo->getTexCoords();
>>
>>
>>for( int i=0; i<texCoordsPtr->getSize(); i++)
>>{
>>Pnt3f ppp = texCoordsPtr->getValue( i );
>>printf( "%f,%f,%f\n", ppp[0],ppp[1],ppp[2] );
>>}
>>
>>But it seems it doesn't work.
>>The "z"(ppp[2]) values are always zero.
>>
>>How can I see the results of "calcVertexTangetns" function?
>>
>>Thank you always!
>>
>>Regards
>>
>>Estee
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 


-- 
Andreas Zieringer       [EMAIL PROTECTED]
Fraunhofer IGD - A4     phone +49 (0)6151 155 289
Fraunhoferstr. 5        fax   +49 (0)6151 155 196
D-64283 Darmstadt       www.igd.fhg.de/www/igd-a4


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to