PDA

View Full Version : help please



krishnachinya
05-19-2009, 12:48 AM
i`m working on a undergraduate project that is diffraction through a prism,i`m having difficulty in creating glass or transparent effect for the prism..please can some one help me to create transparent effect..if i use this functions

glEnable(GL_BLEND);
glBlendFunc(0.1,GL_ONE_MINUS_SRC_ALPHA);
glDisable(GL_BLEND);

prism will get disappeared..so can some help regarding this

Don't Disturb
05-19-2009, 06:20 AM
1. Read this: http://www.glprogramming.com/red/chapter06.html#name1
2. If you still can't figure it out, go and ask, using a relevant title (try "Transparent effect help") on the *beginner* forum.