Game Development Community

bilboard export COLLADA problem

by Ivan Mandzhukov · in Artist Corner · 10/30/2009 (10:03 am) · 5 replies

hi , everyone,
I decided to start a new thread about this problem.
In short - I can't get bilboards working. I export them via COLLADA and when loaded in T3D they appear black.
In the folder where the bilboard reside are created two misterious DDS files , that I don't use at all.
Here is my schematic view from 3ds max , my folder what looks like after I had used the T3D COLLADA loader and what appeared in game:

img94.imageshack.us/img94/512/maxscheme.jpgimg94.imageshack.us/img94/9470/folderlw.jpgimg94.imageshack.us/img94/6734/ingameg.jpg




what I am doing wrong? Does anybody have exported bilboards successfully?

#1
10/30/2009 (7:07 pm)
I just took a look at this and it seems that the collada loader is incorrectly flagging the mesh as an AutoBillboard detail level (that is why you get the two DDS imposter files). Could you try applying this small change to TSShapeLoader::recurseSubshape in tsShapeLoader.cpp (about line 299, where the AutoBillboard detail is setup) and let me know if it fixes the problem?

appNodes.last()->mParentIndex = parentIndex;

// Check for AutoBillboard nodes (no children or geometry) and
// add a detail level accordingly
if (appNode->isBillboard() &&
   (appNode->getNumChildNodes() == 0) &&
   (appNode->getNumMesh() == 0))
{
   S32 size = 2;

Previously the test was only "if (appNode->isBillboard())" which would incorrectly detect your billboard mesh as an autobillboard.
#2
10/31/2009 (6:25 am)
yes, that definitely did the job! :)

Thank you very much, Chris!
#3
10/31/2009 (8:33 am)
By the way I read in the documentation about the supported COLLADA animations. I found there in the table "UV (texture mapping)".
I tried to animate the UV mapping with a rotation but the animation was not played in T3D. Does T3D support this kind of animation at all?


EDIT: I achieved the desired functionality by the texture animation provided by the Material Editor of T3D , but anyway it would be good to know if COLLADA UV texture animation is supported.
#4
11/01/2009 (4:51 pm)
Quote:I tried to animate the UV mapping with a rotation but the animation was not played in T3D. Does T3D support this kind of animation at all?

Short answer: no.

Long answer: The Collada loader was first developed against (roughly) TGEA, when UV animations were supported. The bulk of the Collada documentation was also written at that time, so UV animations were listed as supported. T3D has dropped support for UV (and morph) animations in favour of Material settings, but I have not yet had a chance to update the Collada documentation to reflect that, sorry.
#5
11/02/2009 (12:45 pm)
Thanks for the fast response,Chris!