Game Development Community

Disabling first person weapon rendering

by Grey9999 · in Torque 3D Beginner · 11/13/2012 (5:44 am) · 4 replies

For some reason my third person weapon model is displaying in the first person view. How do I disable this?
I have firstPerson = "false" under my 'datablock ShapeBaseImageData(GlockWeaponImage)' and it still shows.

#1
11/13/2012 (5:52 am)
Check in the editor - if you look in your weapon's shape base image data you should see render settings. For our weapons we provide a low polygon third person shape and a high polygon first person shape - these are selectable through the tool or in script:

datablock ShapeBaseImageData(LurkerWeaponImage)
{
   // Basic Item properties
   shapeFile = "art/shapes/weapons/Lurker/TP_Lurker.DAE";
   shapeFileFP = "art/shapes/weapons/Lurker/FP_Lurker.DAE";
...
}

If shapeFileFP is blank the first person view is rendering the object in shapeFile?

Workaround would be to set that to "" when switching to first-person and back when switching to third person, though I'm pretty sure it will generate console spam.
#2
11/13/2012 (6:43 am)
Yeah I have shapeFileFP blank, and it is rendering the shapeFile instead in first person. If all else fails I could just make an empty collada model for the shapeFileFP I guess but it seems like I shouldn't have to do that.
#3
11/13/2012 (5:11 pm)
I'm pretty sure that it is using the main shape as a fall-back.
#4
11/13/2012 (10:28 pm)
Right. How do I keep it from using that?