Does Irrlicht support 3DS material ? Im importing but they seem to be ignored ?
I say this as most of my models use them
![Smile :)](./images/smilies/icon_smile.gif)
Not sure what you mean there:Domarius wrote:If you are talking about material types that have properties like 'specular highlight' and 'matte'; etc. those are material properties that are specific to 3D rendering apps.
3D games only care about meshes and textures.
That's just what I quickly pulled from the API, I am pretty sure that if you can change something in 3DSM then Irr can make that material from the figures you use there ( with some playing ). Irrlicht is a 3D rendering app, it just happens that it also has functions to build a game. You can't load the material straight from the file tho.SColor irr::video::SMaterial::SpecularColor
f32 irr::video::SMaterial::Shininess
Why are you so sure?Tyn wrote:That's just what I quickly pulled from the API, I am pretty sure that if you can change something in 3DSM then Irr can make that material from the figures you use there ( with some playing ).Code: Select all
SColor irr::video::SMaterial::SpecularColor f32 irr::video::SMaterial::Shininess
The solution is to texture the model in the modelling app (3DS) with a bitmap that is all one colour. (as mentioned above), and control the "SpecularColour" and "Shininess" settings in Irrlicht with the code.StuCollier wrote:Yea the textures are loading ok no problems there
I do have problems seeing a material that has no texture i.e. a plain diffused colour
Yeah I think I've seen the plain colour import into other programs and game engines.StuCollier wrote:Im just talking about "diffuse" - i.e. a single colour...
...
Ive tried serveral other 3D engines that all support it.
Domarius wrote:Heh, well Irrlicht is a "3D rending app" in the general sense of the term
There's a big difference between it and 3D Studio Max though!
One is a modelling app that can pre-render all sorts of special effects, that take a lot of time to draw, too complex to do in real time.
The other can draw things very fast, in real time, so you can play it as a game, but can't draw things that look as good.
(I'll let you figure out which is which)
Why are you so sure?Tyn wrote:That's just what I quickly pulled from the API, I am pretty sure that if you can change something in 3DSM then Irr can make that material from the figures you use there ( with some playing ).Code: Select all
SColor irr::video::SMaterial::SpecularColor f32 irr::video::SMaterial::Shininess
I'm just going off general knowledge here, but real-time rendering algorithims are very simple, very fast, and don't look as good as the complex rendering algorithms used in modelling apps. So the information used to make those effects are completley different, and aren't carried across.
If Irrlicht can interpret 3DS materials at that level of detail, then someone let me know. But judging from the quote below, I would say it can't:
The solution is to texture the model in the modelling app (3DS) with a bitmap that is all one colour. (as mentioned above), and control the "SpecularColour" and "Shininess" settings in Irrlicht with the code.StuCollier wrote:Yea the textures are loading ok no problems there
I do have problems seeing a material that has no texture i.e. a plain diffused colour
Anyone feel free to correct me.
Yeah I would think so too. Some kind of dumbed down version. But I haven't seen it carried across to other real time engines, so I'm wondering if it's too hard to be worthwhile doing. Would be convenient though.Tyn wrote:I wouldn't say specular colour is a special effect really tho, it is a standard ( as far as I am awere ) of 3D renderers no matter what use. It's pretty much the only way to get a good looking metal effect ( that I have seen ) and so can be very powerful if not as powerful as 3DSM.
It is also true that you can't import those values yet with Irr, but if you knew about 3DS files ( I don't ) then you could add that functionality fairly easily.