Game Development Community

3d models in guis

by Philip Bloom · in Torque Game Engine · 02/11/2005 (11:16 am) · 6 replies

Hello, coming again for help before digging deeper:

Is there a way to take a 3d model and display it in a gui easily? Trying to build a drag and drop gui interface with inventory models and while I can figure out how to handle it easily enough with pngs, I'd prefer to directly just use the models there and render them on top of the gui. Is the functionality to do this already part of the gui engine or something I'd have to build in?

Thanks again for the help.

#1
02/11/2005 (11:36 am)
Search the forums, and even more importantly the resources, for "GuiObjectView". There is also a GuiPlayerView, but IIRC that is not quite working as desired. The GuiObjectView however comes from a resource here, and we've had good success with being able to display .dts shapes within it.
#2
02/11/2005 (12:01 pm)
Sounds like a plan. Thanks. =)
#3
02/17/2005 (4:48 pm)
*finally gets to testing it*

Works like a charm normally, but if I push their example over a playGui, it crashes. Anyone have an idea why that may happen? Seems to crash on:

view.setSequence("player", "Root", 1);

This call.

Going to start debugging it more seriously now, but any insight would be appreciated.
#4
02/17/2005 (8:39 pm)
Hum. It is the animations that are causing it.

For my purposes though, it doesn't matter much. I can ignore having animated 3d objects. So I'm good. Thanks, Stephen, for pointing me in the right direction.
#5
02/18/2005 (12:44 am)
But doesn't a non-animated 3D object in the GUI look pretty much the same as having it as a png? Unless you're planning on using dynamic shadows.

Nick
#6
02/18/2005 (5:16 am)
It can still be rotated around and it gets the primary bit of being able to take right from the object models that already are being made into inventory without making hundreds of new pngs instead (Yes, a short event, but still one that creates a bunch of extra files).

I mean, if one is already using a good model for what's appearing before they pick it up, it is plenty to show the same model when a player looks into the inventory.