JME3-Render same mesh wireframed and normal

Hi, I need to render one mmesh in wireframemode and also in the smae scene normal.

My first attempt was to set the mode to Line, but obiviously this is not workig if i need two modes at the same time. The question is wich better way exist to do this?

Any help would be appreciated :slight_smile:

Just apply to one mesh some normal material, and to another WireframeMaterial.



mat = new Material( assetManager, “Common/MatDefs/Misc/WireColor.j3md”);

mat.setColor(“m_Color”, ColorRGBA.Blue);

Geometry x = …

x.setMaterial(mat);

Hm…



yeah that would be an idea ^^



thx

In fact you can use the same mesh in two geometries, the geometry stores the material info.