Game Development Community

Are Hotspots / image maps possible?

by Neil Marshall · in Torque Game Engine · 10/19/2002 (5:18 pm) · 1 replies

In my game, I want to have pictures on the wall. Point to one and click the button and I want it to preform an action. Like image maps on the web. Is that currently possible in the engine? Or would I have to model each photo as a different object?

#1
10/20/2002 (4:47 am)
I think that it'd be possible to extract the material of a surface from Torque; you'll want to check out the castRay function as a starting point, or see how Torque figures out what sort of footpuff different materials on the terrain gets...

It might be easier to make a generic picture object, then apply different textures based on what picture you want. That way, it would be trivial to do the kind point and click interface you want... And you won't have to recompile the map every time you change a picture :)