Game Development Community

Problem with billboard or Imposter

by Sebastian Zegers · in Artist Corner · 02/17/2010 (11:40 am) · 2 replies

Hello, I am modeling trees , and was going ok until I import the model to torque, the model have two LODs that work find, but when I use the tool to generate billboards in torque, the collision mesh is disable or take place of the LOD 1.

I am doing something wrong? Or torque 1.1 Alpha have some bugs on this issue?

I am uploading the models in 3d Studio 2008, and the DTS whit maps and everything.
http://rapidshare.com/files/351929514/Nothofagus_dombeyi_coihue.rar.html

#1
02/18/2010 (5:12 pm)
Billboards work. You can be sure for that. By the way I haven't heard of a tool in T3D for making billboards. May be this is some kind a new feature? Anyway you would better setup the billboards in your modeling application. Not sure if this will be in any help for you but check out this thead www.torquepowered.com/community/forums/viewthread/105551
#2
02/21/2010 (7:40 pm)
@Sebastian: Nice catch! This is a bug in the Shape Editor that occurs when adding an imposter (auto-billboard) to a shape that already contains a collision mesh. The fix is a change to TSShape::addDetail in tsShapeEdit.cpp (add this code to the end of the function):

// Fixup objectDetailNum in other detail levels
   for (int i = index; i < details.size(); i++)
   {
      if ((details[i].subShapeNum >= 0) &&
         ((subShapeNum == -1) || (details[i].subShapeNum == subShapeNum)))
         details[i].objectDetailNum++;
   }