map_d in OBJ files

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

map_d in OBJ files

Post by mongoose7 »

Looking at the OBJ loader, I see that the map_d texture is assigned to the first slot. This is not very helpful as the map_d texture is a B&W transparency (alpha) texture. By assigning it to the first slot (diffuse or albedo) the base colour is overwritten. So instead of seeing transparent_add_colour, we see a transparent_add_black! I'm just wondering if we can have it assigned to slot 3. Then we could have
texture0: diffuse
texture1: normal/bump
texture2: transparency
texture3: reflection.
CuteAlien
Admin
Posts: 9651
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: map_d in OBJ files

Post by CuteAlien »

Can't say much without going over the format documentation. But moved the thread to the bug report forum so it stays a little bit more visible. If I ever find time again to continue working on the other .obj and .mtl bugs I take a look at it again (there is http://irrlicht.sourceforge.net/forum/v ... =7&t=48090 - and while working on that once I found further problems).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply