Game Development Community

T2dShape3D Skin Skin-Set ???

by Fauldran · in Torque Game Builder · 09/03/2007 (2:51 pm) · 2 replies

In the reference about t2dShape3D it mentions DTS skins and skin-sets but it is assumed knowledge on how to set them up. I have been running in circles for like 2 hours now looking for docs about this and can't find a single reference.

Could someone point me in the right direction?

#1
09/11/2007 (7:22 pm)
No docs other than the reference you mention. I've looked too! Your one and only source, is the source, namely t2dShape3D::setSkin(skinsetname, skinname).

My advise for you is this: If your 3d model renders with the supplied texture (skin setting not required) then rejoice and move on to more important things. You've been warned!!!!

If you cannot resist, I'll give you my opinion of what I think it's intended use was for. It is based on the TGE concept of skins. If you own the 3d engine, you will see many references to applying multiple skins to a model at the same time, for such things as different clothing. I think setskin() in TGB was suppose to do something similar but not in such an advanced manner, such as for specific materials, but for a set of materials for the entire model to set.

Also, Since its been a LONG time since I looked into skinsets, I remember the path to load them is bugged. For example, if you call setskin() with parameters (mySkinSet, mySkinName) the path it searches for is something like: "(directory to shape)/mySkinSet/mySkinSet/mySkinName" where an extra skinset folder is incorrectly added.

j
#2
09/14/2007 (6:14 am)
Ahh well, thanks. Glad I am not just going crazy.