Game Development Community

Shapebase Material Swap Resource Help

by Ronald J Nelson · in Torque Game Engine Advanced · 01/01/2008 (9:41 pm) · 8 replies

Has anyone gotten this to work for such things like vehicles? If so how? I keep trying and it doesn't work for me.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10957

#1
01/02/2008 (12:56 pm)
To change the material you need to exchange the render targets of the new/old material.

I think this can be usefull:
www.garagegames.com/mg/forums/result.thread.php?qt=26266
#2
01/02/2008 (10:43 pm)
Picasso that is how I found the link I posted. I even tried to implement the code David Rosen provided at the bottom with bad results, namely game crashes.
#3
01/03/2008 (6:50 am)
I know that, that's why i've added a request (an addmaterialmapping update) for 1.0.4.
#5
01/03/2008 (10:51 am)
%carobject.setSkinName(%origionalskininthemodelingprogram,%materialyourewantingtoassign);
#6
01/03/2008 (1:28 pm)
Void ShapeBase::setSkinName(const char* name)

Kirk, ?!?
#7
01/03/2008 (1:58 pm)
The origional question was on the expanded, _simplified_ rescource. not the might-as-well-have-50-billion-textures tge origional implementation.
#8
01/03/2008 (11:36 pm)
Thanks I finally figured it out.