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 ?
EMT_SOLID_2_LAYER and Vertexcolors
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
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 ...
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 ...