Need help with custom ItemData/ShapeBaseImageData
by Vince Gee · in Torque 3D Professional · 11/16/2010 (12:13 pm) · 9 replies
Hey guys,
I've been working inside of t3d for a while now and I've gotten to a point where I'm confused and I was wondering if someone could help me out.
I have a DTS object called staff and I want to have 1 of say 5 possible skins associated with it.
So, for one DTS object, I can have 5 different objects (DTS+skin1, DTS+skin2, ...)
I don't want to have to export the DTS object 5 different times one for each skin, is their a way when creating the ItemData/ShapeBaseImageData object to specify which skin to use?
Vince
I've been working inside of t3d for a while now and I've gotten to a point where I'm confused and I was wondering if someone could help me out.
I have a DTS object called staff and I want to have 1 of say 5 possible skins associated with it.
So, for one DTS object, I can have 5 different objects (DTS+skin1, DTS+skin2, ...)
I don't want to have to export the DTS object 5 different times one for each skin, is their a way when creating the ItemData/ShapeBaseImageData object to specify which skin to use?
Vince
About the author
www.winterleafentertainment.com
#2
11/16/2010 (3:00 pm)
I'm not sure, I'm kinda not sure exactly what I'm looking for, I have one model and I want to apply 6 different skins to it to create 6 different ShapeBaseImageData datablocks. But I don't want to copy the model 6 times and chew up the drive space
#3
what do you mean by skins ?
If you need a way to change the material on the fly,there is a shapebase console method - changeMaterial() and it works well.
11/16/2010 (3:32 pm)
Vince,what do you mean by skins ?
If you need a way to change the material on the fly,there is a shapebase console method - changeMaterial() and it works well.
#4
11/16/2010 (3:36 pm)
I thought that command wasn't networked?
#5
11/16/2010 (3:59 pm)
Vince, you can make a function on the client side and a function on the server. You can tell the server, hey change the material on my client, the server then sends a message to run the particular command on your client. Your material changes as requested. Is that what you mean by not networked? Or do you mean when you look at other people you will not be able to see a difference? I think that might be true.
#6
I have to admit, this stuff has me really confused. I have one model, and the model has 6 possible skins, I don't want to have 6 copies of the dts, one for each skin.
It's a simple object, a wand with a orb at the end. Each skin changes the color of the orb.
I wish the shapebaseimage datablock just took what skin to apply to the model. It would be so much easier.
11/16/2010 (4:02 pm)
Yeah, when other people look at you, they won't see it. I have to admit, this stuff has me really confused. I have one model, and the model has 6 possible skins, I don't want to have 6 copies of the dts, one for each skin.
It's a simple object, a wand with a orb at the end. Each skin changes the color of the orb.
I wish the shapebaseimage datablock just took what skin to apply to the model. It would be so much easier.
#7
When a client has changed its skin,then set a mask,transmit the new value.
At server side check the current skin value and the new one.If they differ call changeMaterial() at server side with the new skin.
11/16/2010 (4:07 pm)
You can network an integer value,indicating the current skin.When a client has changed its skin,then set a mask,transmit the new value.
At server side check the current skin value and the new one.If they differ call changeMaterial() at server side with the new skin.
#8
11/16/2010 (4:17 pm)
you want hidden meshes perhaps?
#9
11/16/2010 (4:22 pm)
I would have a mesh for each image?
Torque Owner Jules
Something2Play