newbie question: showing selected object

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
rogerdv
Gnome
Posts: 351
Joined: Fri May 09, 2003 10:43 pm
Location: Cuba
x 1
Contact:

newbie question: showing selected object

Post by rogerdv »

First of all, Im a total newbie that barely knows how to copy and paste code. So I need a basic solution for this situation: I will implement object selection in my scene and I need some easy way to signal the selected object. One solution (from the wiki) is to show the bounding box, but I would prefer something like a rectangle or circle around the mesh.
Any idea?
Ajare
Goblin
Posts: 282
Joined: Sat May 14, 2005 9:20 pm
x 1

Post by Ajare »

ManualObject is probably your best bet here.
weissblau
Kobold
Posts: 33
Joined: Fri Feb 09, 2007 10:45 pm

Post by weissblau »

Another option would be to label the object with a text label above it, using the MovableText snippet from http://www.ogre3d.org/wiki/index.php/MovableText_Eihort
User avatar
CaseyB
OGRE Contributor
OGRE Contributor
Posts: 1335
Joined: Sun Nov 20, 2005 2:42 pm
Location: Columbus, Ohio
x 3
Contact:

Post by CaseyB »

You could have the selected object glow like this:
Image
Or you could have a little decal under the object, like this:
Image
There are several ways to accomplish this second effect, the most flexible is probably projective decals.
Image
Image
User avatar
rogerdv
Gnome
Posts: 351
Joined: Fri May 09, 2003 10:43 pm
Location: Cuba
x 1
Contact:

Post by rogerdv »

I prefer the second. I will try that.
Post Reply