Home | Documentation | Atomic Chat | Github

Wireframe Mode for Atomic


#1

Is there a wireframe mode, in the making for AGE? I think that would be a useful feature.


#2

Well I’m not sure there’s a debug rendering mode for wireframe, but a simple and quick solution to be able to see an object wireframe would be to just set the fill mode of the material it’s using from “solid” to “wireframe”.


#3

That’s sound like a solution I can use @Nyt0x, but I don’t find that feature in the editor. Where exactly is it?


#4

Unfortunately it’s not expose in the editor at the moment. Keep in mind Atomic editor is still WIP and that Atomic is still a coder oriented engine so most of the features are not nicely exposed to the editor.

Anyway, you can just modify the material definition xml.

Material definition are either in:
Resources\CoreData\Materials\

Or in you’re project folder if you have any custom ones (look into your resource folder)

A material xml should look like this:

<material>
     <technique name="Techniques/NoTexture.xml" />
     <parameter name="MatDiffColor" value="0.5 0.5 0.5 1" />
     <parameter name="MatSpecColor" value="0.5 0.5 0.5 16" />
</material>

You can add a node to select the fill mode

<fill value="solid" />

(c++ side ref: https://github.com/AtomicGameEngine/AtomicGameEngine/blob/master/Source/Atomic/Graphics/Material.cpp#L92)

If you’re using TS/JS (and C# should have bindings for it too), you can set a material fill mode directly:

http://docs.atomicgameengine.com/api/classes/atomic.material.html#setfillmode

Hope it helps.


#5

It does. Thanks very much.
I couldn’t figure out how to do it by code.


#6

You can set Wireframe Fill Mode on the entire scene in the editor via the Camera. Per-object settings would be handy though.


#7

Doesn’t happen while editing. Only when running the game preview. It would be great to be able to see the wireframe in the editor, just as Urho3D had it.