EMT_SOLID_2_LAYER and Vertexcolors

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

EMT_SOLID_2_LAYER and Vertexcolors

Post by knightoflight »

with
...
buffer = Mesh->getMeshBuffer(0);
video::S3DVertex* v = (video::S3DVertex*)buffer->getVertices();
v[1].Color=...
i can change the vertex-colors with EMT_SOLID , when i change to EMT_SOLID_2_LAYER it doesnt work, is that normal or a bug ?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Maybe a bug, will fix it. :)
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

or i am a loser cause i havent thought enough and maybe have to use S3DVertex2TCoords instead of S3DVertex when i use two textures ? I will try ...
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

i tried really everything, but it doesnt work, is it a bug
or is there someone out there, where it works (2 textures with vertexcoloring ) ?
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

sorry, here im again :-)
i searched in the sourcecode and think the problem is maybe in
CVideoDirectX8.cpp:
when i change unter EMT_SOLID_2_LAYER
pID3DDevice->SetTextureStageState(0, D3DTSS_COLOROP,D3DTOP_SELECTARG1);
to
pID3DDevice->SetTextureStageState (0, D3DTSS_COLOROP,D3DTOP_MODULATE);
the vertexcolors work like in EMT_SOLID, but the alphablended tiles add their color and look too bright
...
was i really the first, who tried, i cant believe ?
i will try with trial and error ...
Post Reply