OpenGL question

Started by
1 comment, last by anique 12 years, 4 months ago
I want to put a texture on an .obj such that the alpha region doesn't appear(only want the mapped texture to appear like branches of a tree mapped on a plane).
Here is my code snippet so far:

model1 = glmReadOBJ("object.obj");
glmUnitize(model1);
glmFacetNormals(model1);
glmVertexNormals(model1, 90.0);
glmDraw(model1, GLM_FLAT| GLM_TEXTURE);


Problem is that the area with alpha just appears white. I want it invisible. Only the texture.
Advertisement
I would start by enabling alpha blending/testing.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Yea, I got it to work by following your suggestion. +1
Thx :D

This topic is closed to new replies.

Advertisement