PDA

View Full Version : Blending operation with frame buffer



Arath
03-03-2003, 07:10 AM
Hi,

I work on commercial project using (of course unfortunately) DirectX (there is only "that" on the XBOX), but I am a huge
fan of OpenGL (as you may have guessed) and my home engine is written with this API. I just can't find in the OpenGL API
a function very usefull which exists in DirectX : the blending operation. I'm not talking about the blending sources (I mean glBlendfunc)
, it seems like in openGL the blending equation is fixed (result = fragment * sfactor + framebuffer * dfactor) and not in D3D (very weird?). With
this renderstate D3DBLENDOP we can substract or add (usefull to do substractive blending). Is there a similar function/renderstate in OpenGL?

Cheers
Arath

Asgard
03-03-2003, 07:16 AM
Yes, OpenGL is capabable of doing all that. Look at the EXT_blend_subtract, EXT_blend_minmax, EXT_blend_func_separate, and EXT_blend_color extensions, which I believe are all part of core OpenGL 1.4 now.

roffe
03-03-2003, 07:20 AM
http://wwws.sun.com/software/graphics/OpenGL/manpages/glBlendEquationEXT.html

Arath
03-03-2003, 07:26 AM
Thanks a lot,
eventually my faith in opengl is not gone ;-)

Arath

V-man
03-03-2003, 03:47 PM
Hey, that is sweet. I didn't know that sun had such nice looking man pages.

I've spent all this time reading crappy ASCII text.