Archived

This topic is now archived and is closed to further replies.

Halo Vortex

OpenGL PS 2.0 in OpenGL?

Recommended Posts

I will be soon jumping from my GeForce 2Ti to Radeon 9700 and will start programming my engine. I know DirectX 8.0 normally but prefer OpenGL, but I''d like to know, is it possible to achieve DX 9''s functionality in OpenGL. I mean, can I have new pixel programming features like looping, branching in OpenGL''s fragment programs like it''s possible in PS2.0 on DX9?

Share this post


Link to post
Share on other sites
Yes, of course.

You can either use the ARB_fragment_program and ARB_vertex_program extensions to code in lowlevel shader ASM, or you can use a highlevel shader language such as Cg.

Share this post


Link to post
Share on other sites
ARB_fragment_program isn''t supported on the GeForce4. It''s a new extension that was explicitely designed for new generation hardware (new Radeons, GFfx) and beyond. The only way to use it on a GeForce4, is using NV30 emulate, which basically emulates a GFfx in software.

Share this post


Link to post
Share on other sites