PDA

View Full Version : the flame of alcohol bruner is black



天地乾坤
04-04-2006, 06:53 AM
I did a lighting alcohol bruer which used "glBlendFunc",and it looked like glass,but the flame is black.(my English is poor)
any one help me?thank you!!
following is a few codes :

BOOL CMyFire2View::RenderScene()
{
CJiuJingDeng JJD;
CJiQiPing JQP;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glDisable(GL_DEPTH_TE

jide
04-04-2006, 09:12 AM
A bit too few code at my point of view... And a bit too fiew information too...

Joe the Programmer
04-04-2006, 10:00 AM
Yeah, we have no idea what CJiuJingDeng and CJiQiPing is, (other than it might be Chineese), and your code is kinda chopped.

dorbie
04-06-2006, 02:50 PM
Try:

glBlendFunc(GL_ONE, GL_ONE);