Game Development Community

GuiObjectView with mesh hiding resource

by Jack Stone · in Torque Game Engine Advanced · 11/22/2008 (9:43 pm) · 2 replies

I have implemented the mesh hiding resource:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5421
and I am now trying to create a gui which allows the player to customize their character, using the guiobjectview control. I am using TGEA version 1.7.1.
The problem I am having is that the object created and used by the guiobjectviewer (I think it is a TSstatic) does not having the mesh hiding resources functions.
I therefore need to do one of two things:
Modify the TSStatic code to use the mesh hiding resource, or
allow the guiobjectviewer code to load a shapebase object (I believe that's the type of object that has the mesh hiding functionality)

I could use some advice on this from anyone else who has implemented this resource into their games.

#1
11/22/2008 (10:15 pm)
I've recently had the same problem with the setSkinName() function working with the GuiObjectView in TGEA 1.7.1. I simply ported over the code (made a couple of minor reference changes) from the ShapeBase. I honestly have no idea how much work it might be to change the way GuiObjectView functions by making it load a ShapeBase object instead of a TSShape object, but the setSkinName() function wasn't that difficult at all (...and I'm not generally good with C++).

I do have the Mesh Hiding resource implied in my build, and I'll likely need to do exactly this. I'll try and get to this soon and post here my progress or woes :)
#2
11/23/2008 (1:50 pm)
Thanks a lot Mark, that would help. Hopefully it won't be all that complicated, but I haven't spent much time with this area of the engine, so I'm not sure.