Texture combine color with material

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Texture combine color with material

Post by pera »

I have simple plane with green color material.
In irrlicht code, I set texture to some image:
node->setMaterialTexture(0,driver->getTexture("media/terrain/texture.jpg"));

resulting plane has material colors combined with texture.
How to have Texture colors only?
stefbuet
Competition winner
Posts: 495
Joined: Sun Dec 09, 2007 4:13 pm
Location: france

Post by stefbuet »

set the material color to white :?:
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

But in case texture is not available, it like it to have some color?
Im just curious if this is default behavior, or Im missing some blender texturing attributes...
stefbuet
Competition winner
Posts: 495
Joined: Sun Dec 09, 2007 4:13 pm
Location: france

Post by stefbuet »

The diffuse color of your object is :

VertexColor * TextureColor * diffuseFactor.

So if you want your object to be the same color as the texture, the material color have to be full white (0xffffff).

I guess if you set a green color material, without any texture, lighting off, the mesh will appear just green.
Post Reply