New Filetype
by Tim Ryness · in Torque Game Engine · 09/28/2004 (3:50 pm) · 3 replies
Is there a tutorial or resource someplace that explains all the steps to adding a new filetype into the engine, I've been hunting through code and searching for help but I haven't had much luck.
All I want to do is load a particle effect from the disk, and be able to place the emitter someplace in the world using the editor. And of course, update it's animation and render it, I really don't need too many flags or settings, just a filename.
Any help would be greatly appreciated.
All I want to do is load a particle effect from the disk, and be able to place the emitter someplace in the world using the editor. And of course, update it's animation and render it, I really don't need too many flags or settings, just a filename.
Any help would be greatly appreciated.
About the author
#2
I guess the biggest thing here is yeah I could solve this problem other ways, but chances are at some point in time further down the road I'll need to do this, for some reason or another, and I might as well figure it out now. I know though it's going to take so more doing even though I think I'm getting closer, it's the problem of digging as you go.
Thanks for you help though, I hope I can bang my way through. I'll be very happy to get some of the old effects we had in the prior engine, I miss them :)
09/28/2004 (8:20 pm)
Thats probably not ideal, because it's a seperate tool, I guess I could modify the tool to spit out .cs files, thats a thought. Although I did get some progress after I posted, I managed to get it hooked into onAdd and the resource manager l opened the file, and I modifed my loaded to use stream, so it could load it, it loaded it and the data was good. Now I just have to figure out what went wrong next, I cheated a return to return true, and the code said basically I cheated hehe. I guess the biggest thing here is yeah I could solve this problem other ways, but chances are at some point in time further down the road I'll need to do this, for some reason or another, and I might as well figure it out now. I know though it's going to take so more doing even though I think I'm getting closer, it's the problem of digging as you go.
Thanks for you help though, I hope I can bang my way through. I'll be very happy to get some of the old effects we had in the prior engine, I miss them :)
#3
Getting a new filetype integrated with the engine (using the Resource Manager):
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5225
And of course, Melv May's generic render object tutorial:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3217
09/29/2004 (7:25 am)
You might find these resources helpful:Getting a new filetype integrated with the engine (using the Resource Manager):
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5225
And of course, Melv May's generic render object tutorial:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3217
Torque Owner Demolishun
DemolishunConsulting Rocks!