Hot Swap DTS Object
by William Todd Scott · in Torque Game Engine Advanced · 12/06/2006 (3:16 pm) · 7 replies
Hi all,
Has anyone implemented hot swapping DTS assets so artists tweaking a model don't have to restart the engine?
(I did a search for this and didn't find anything, so if someone knows of a link please let me know!)
Thanks
Todd
Has anyone implemented hot swapping DTS assets so artists tweaking a model don't have to restart the engine?
(I did a search for this and didn't find anything, so if someone knows of a link please let me know!)
Thanks
Todd
#2
Hot swapping for textures appears to be working (with only a small bug if the texture size has changed). I am looking to implement the same type of functionality, where ALL instances would be updated with the new DTS object if the DTS object's crc has changed.
I was hoping that somone might have already implemented this capability. If not, I will eventually get to it and, when I do, I'll post it as a resource.
Thanks
Todd
12/12/2006 (6:41 pm)
Hi Roshan,Hot swapping for textures appears to be working (with only a small bug if the texture size has changed). I am looking to implement the same type of functionality, where ALL instances would be updated with the new DTS object if the DTS object's crc has changed.
I was hoping that somone might have already implemented this capability. If not, I will eventually get to it and, when I do, I'll post it as a resource.
Thanks
Todd
#3
maybe?
12/13/2006 (6:47 am)
I thought you could just exec the .cs file and it would update? It works for other things. I also read a forum where someone had binded a key to do this also, but really you just need to type it once and then use the up arrow. exec("~/data/shapes/myObject/myObject.cs");maybe?
#4
Maybe want to drop him a line and ask direct, dont know how much he browses this forum.
12/14/2006 (6:46 am)
Hmmm, no, I think its a lot harder than exec'ing a .cs file. I think the only person with relevent experience with this would be someone like Dave Wyand, I'm reasonably sure he did something of this for showtool pro or will have looked at it.Maybe want to drop him a line and ask direct, dont know how much he browses this forum.
#5
From my initial look through the code, I also got the impression that it is a somewhat non-trivial task. I will email Dave as you suggested. Also, one way or another I am going to tackle this and when I do I will post my results.
Thanks.
Todd
12/14/2006 (9:50 am)
Hey Phil, From my initial look through the code, I also got the impression that it is a somewhat non-trivial task. I will email Dave as you suggested. Also, one way or another I am going to tackle this and when I do I will post my results.
Thanks.
Todd
#6
02/08/2009 (6:55 pm)
Hi, I'm looking a way to do that, anyone found any way to do that!?
#7
02/10/2009 (2:31 am)
ShowTool Pro would be a good tool to use while tweaking a model.
Torque Owner Roshan Kuriyan
Default Studio Name
try deleting the model [object.delete();]and replace with the new one .give a shot . if works then let me know .to insert anty dts model no relightning is need , so go ahead and do it.