Picking Object and Highlight Them

asvsfs

22-06-2009 17:05:40

hi
i'm using mogre with mogrenewt and i wanted to select a object and highlight it
i could pick object without any problem but my main problem is that i can't show my object is selected
i want to highlight it or draw a wire cube around it or any usual way to show its selected.

thx
and ... how can i do it:D

GantZ

22-06-2009 19:38:42

you could use the stencil glow effect from this thread
http://www.ogre3d.org/forums/viewtopic.php?t=27477

i use it to highlight an object. it's c++, but it quite easy to port to Csharp. you could tweak the effect quite easily since it use a shader.

you could also use manualobject to draw a shape around your object.

asvsfs

23-06-2009 04:17:56

thx...

and what do u mean exactly of----->manualobject?

GantZ

23-06-2009 10:17:28

by manualobject i mean this : http://www.ogre3d.org/wiki/index.php/ManualObject

it allow you to create a custom mesh on the fly