I had Draw3DTriangle working correctly in a smaller test program that didn't use any skyboxes. Now that I moved that some code over to a different project with a skybox in the scene, the color is not being applied to the drawing. What's being drawn is actually the skybox.
I tried a crapload of different things from changing the material settings and trying different transformation state but nothing seems to work.
The original code that worked for me was from what I found on the forums (from Vitek I believe) for doing the transformation and using non-lighted material:
Hmm, I think when You create a new matrix it isnt necessary to explicitly set the translation to 0|0|0, since the new Matrix is an identity Matrix that already has a zero translation.
I don't understand what You mean with "the color is not being applied.." Does that mean that only the wireframe shows, as in the screenshot or does it mean something else?
OnyxIdol wrote:Hmm, I think when You create a new matrix it isnt necessary to explicitly set the translation to 0|0|0, since the new Matrix is an identity Matrix that already has a zero translation.
I don't understand what You mean with "the color is not being applied.." Does that mean that only the wireframe shows, as in the screenshot or does it mean something else?
Thanks for the reply.
I want the "lines" or "triangles" to be drawn as a solid color (green) but from what I see they are being drawn with the skybox graphic instead and without regards to the textures that are around.
What you see in the picture is actually draw3DTriangle() drawing using the skybox background instead of a solid color. Well that's what I want anyway.