Page 1 of 1

How to create a 3d mesh only with emissive color?

Posted: Tue Apr 18, 2017 8:01 am
by KevinLuo
Hello!
I want to load a 3d model from a .ply file. First of all, how to load the model's material
in the irrlicht environment? The model doesn't look like the look designed in 3dmax.
Besides, how to disable the lighting of this IMeshSceneNode while it still has the user
designed color, not just a full white model. I'd like that the model's color is changed
by my code and won't be changed by the light.

Thank you!

Re: How to create a 3d mesh only with emissive color?

Posted: Tue Apr 18, 2017 10:21 am
by CuteAlien
Import of material settings depends on the mesh-format - different formats handle that differently (also depends on exporter and importer additionally). I never worked with the .ply format, but from what I can see on a quick look at the loader-code it seems to only load geometry. No material support at all.
So for materials you need another format like .obj for example.

If you don't want your models affected by light at all you can disable lighting in the material of the mesh or the node (nodes usually have their own material copy). For the effects which you get with different light/material setting best play around with the materialviewer example (sorry if it's not the most user-intuitive, if you have any questions about it ask me).

Re: How to create a 3d mesh only with emissive color?

Posted: Wed Apr 19, 2017 1:53 pm
by kornwaretm
if i may add. i suggest to bake materials to texture, i'm pretty sure 3dsmax has this feature (not a 3dsmax user). there might be some material property from 3dsmax which are not supported by the mesh file format or not yet implemented (especially procedural ones). by doing this, it is much easier to "preserve" the look, the behavior towards light might be different, but you can get a good starting point before customizing irrlicht's material settings.