Open GoogleCodeExporter opened 8 years ago
The code in this function is incorrect because texture coordinates cannot have
InputSemantic::UV in COLLADA:
bool MeshLoader::loadTexCoordsSourceElement ( const InputShared& input )
{
bool retValue = true;
// Get the semantic of the current input element.
InputSemantic::Semantic semantic = input.getSemantic ();
if ( semantic != InputSemantic::UV && semantic != InputSemantic::TEXCOORD )
{
std::cerr << "The current input element is not a UV / TEXCOORD element!"
<< std::endl;
return false;
}
Original comment by Marcus.C...@gmail.com
on 15 Dec 2009 at 11:13
This function is also wrong for the same reason.
bool MeshLoader::loadSourceElement ( const InputShared& input )
{
bool retValue = false;
// Get the semantic of the current input element.
InputSemantic::Semantic semantic = input.getSemantic ();
switch ( semantic )
{
...
case InputSemantic::UV:
case InputSemantic::TEXCOORD:
retValue = loadTexCoordsSourceElement ( input );
break;
...
}
Original comment by Marcus.C...@gmail.com
on 15 Dec 2009 at 11:22
Original comment by opencollada2@googlemail.com
on 19 Jan 2011 at 2:27
Original issue reported on code.google.com by
Marcus.C...@gmail.com
on 14 Dec 2009 at 11:29