Horde3D
http://horde3d.org/forums/

h3dutCreateGeometryRes ignores (Bi)Tangent data
http://horde3d.org/forums/viewtopic.php?f=3&t=1501
Page 1 of 1

Author:  AlexL [ 15.04.2011, 17:23 ]
Post subject:  h3dutCreateGeometryRes ignores (Bi)Tangent data

Problem: h3dutCreateGeometryRes (svn rev 313) sets wrong number of streams if tangentData and bitangent data is supplied.
See http://horde3d.org/forums/viewtopic.php?f=2&t=1491.
Solution: Change line 680 in Horde3DUtils/main.cpp (file rev. 294) from
Code:
// Set number of streams
*( (uint32 *)pData ) = 1 + numTexSets + ( normalData ? 1 : 0 ); pData += sizeof( uint32 );
to
Code:
// Set number of streams
*( (uint32 *)pData ) = 1 + numTexSets + ( normalData ? 1 : 0 ) + ((tangentData && bitangentData) ? 2 : 0); pData += sizeof( uint32 );

Author:  marciano [ 20.04.2011, 08:18 ]
Post subject:  Re: h3dutCreateGeometryRes ignores (Bi)Tangent data

Yep, thanks a lot Alex!

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/