Detail/Damage texture on models
by Dennis Saarela · in Torque Game Engine · 05/31/2005 (3:02 am) · 9 replies
After searching through the forum for information on how to apply damage decals/textures on a model I used the setSkinName function to swap "damage texture level" for my player models. The problem is that the models uses large textures (512x512 and 1024x1024). and to make like three levels of damage demanded four texture to be loaded per model. At the moment we use four different player models (and it will be more in the future). I had to write a function to preload all the textures becuase else the game would freeze for like 0.5s when the texture had to be loaded (when someone got damaged). This work but will not be suitable in the future becuase of the amount of textures.
Is there anyone that uses the detail texture layer on DTS object?
I wonder because I think I will try to make that layer render a damage texture instead. Then we can use a set of small damage textures shared for all player models. I have started to go through the render pipe to find out how it works and I think I might be able to pull this off.
Is there anyone that uses the detail texture layer on DTS object?
I wonder because I think I will try to make that layer render a damage texture instead. Then we can use a set of small damage textures shared for all player models. I have started to go through the render pipe to find out how it works and I think I might be able to pull this off.
#2
I have made great progress on converting the detail layer to a "damage-layer". Will probably work at the end of the day, if nothing goes totally wrong that is :)
05/31/2005 (7:36 am)
Looks like a nice resource. Got to try that out. Only thing is how it will be in "real-time", because we change the texture all the time (if you get damaged or healed).I have made great progress on converting the detail layer to a "damage-layer". Will probably work at the end of the day, if nothing goes totally wrong that is :)
#3
05/31/2005 (7:47 am)
Good luck, post comments if it works.
#4
Now I can blend a texture over the model. My graphics guys liked it a lot :)
This would probably work together with the other resource(above), so it's possible to both customize the base texture and blend in a damage texture.
If there is any intrest I can do a resource of it.
06/01/2005 (1:12 am)
Have just finished this off and it works fine!Now I can blend a texture over the model. My graphics guys liked it a lot :)
This would probably work together with the other resource(above), so it's possible to both customize the base texture and blend in a damage texture.
If there is any intrest I can do a resource of it.
#5
06/01/2005 (2:57 am)
A resource would be great :)
#6
I am surprised that it works for you in real time as I have used the resource as well and had a lag that got longer with each layer.
I am currious how you preloaded your textures though as that might be the key I'm missing.
Thanks.
06/02/2005 (10:15 pm)
Dennis,I am surprised that it works for you in real time as I have used the resource as well and had a lag that got longer with each layer.
I am currious how you preloaded your textures though as that might be the key I'm missing.
Thanks.
#7
That's why I continued to write my way to do it, using the detail texture layer, and that works much better.
I have started to make a resource, but it might take some time because I'm busy with other things. Hopefully it will be done next week.
06/03/2005 (8:10 am)
The resource above doesn't work real time, I also have that lag :(That's why I continued to write my way to do it, using the detail texture layer, and that works much better.
I have started to make a resource, but it might take some time because I'm busy with other things. Hopefully it will be done next week.
#8
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8030
06/10/2005 (6:29 am)
I have now commited the resource:www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8030
#9
06/10/2005 (10:21 am)
Great! This is really appreciated :)
Torque Owner Viktor Kuropyatnik
Did you tryed this:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7650