Sign in to follow this  
bisonmontana

OpenGL OpenGL material vs 3ds/obj fileformat material

Recommended Posts

Can someone please clear this up for me: the model formats I worked with so far (3ds, obj) have no notion of transparency per ambient,diffuse,specular setting, instead they have just one float value called transparency. To render them correctly I am supposed to use that float value for amb,dif and spe? (same for all three) or should just use 1.0 and instead set the single transparency value with vertex colors?.

Share this post


Link to post
Share on other sites
Use the latter. Load the amb, diffuse, specular values from the model, and use the glColor4f() to set your alpha and enable alpha testing or blending depending on what you are after.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this