How i can get outline when object under the cursor?
I was looking good but did not find anything.
I need a solution with the script.
Solution with two objects is not suitable.
sry for bad english, i’ts not my main language.
How i can get outline when object under the cursor?
I was looking good but did not find anything.
I need a solution with the script.
Solution with two objects is not suitable.
sry for bad english, i’ts not my main language.
Object under Cursor
Mouse over any sensor: sensor.hitObject
Outline
* Copy the mesh.
(alternative: look for outline shaders)
To toggle the outline, show/hide the outline mesh.
or
Add/remove the outline mesh
for a single object, do as monster said, but copy the mesh(or create a low poly outline) in EDIT MODE.
then assign a new material to the outline which is shadeless and based on object color. enable transparency in the material.
when mouse over, object.color[3] = 1, else object.color[3] = 0.
index [0], [1], and [2] can be set to the color of the outline.
EDIT: im away from my computer, but ill post an example asap.