OutLine problem

Hi,JMonkeyEngine
I want to achieve the outline effect in jmonkeyengine, such as the select effect in the following figure. What should I do?

outline1

1 Like

Hi,

Searching the forum you can find related posts.

Some of them that I found:

1 Like

When I need this effect, I usually draw the box twice: once with a shaded material/Box mesh and once with an unshaded material/WireBox mesh.

2 Likes

This will only work at very simple geometry, right? Otherwise, the inner geometry will show up as an outline as well.

Only if you turn off depth testing.

Edit: or do you just mean all of the triangle edges.

It’s somewhat assumed that OP already knows what edges they want visible. Else the solution is: (insert doctoral thesis and several years of research here)

1 Like

My solution is specifically for boxes, but could be adapted for more complex shapes.

1 Like