Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenGL question

Started by anique Nov 22, 2011 at 12:53 AM 1 replies 950+ views
Original Post
anique
anique
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.
Promit
Promit
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.
anique
anique
Yea, I got it to work by following your suggestion. +1
Thx

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.