[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - ARB Fragment Programs

ARB Fragment Programs

Discuss programming topics that involve the OpenGL API.

Moderator: InsideQC Admins

ARB Fragment Programs

Postby jitspoe » Tue Aug 20, 2013 3:39 pm

Have these gone the way of the dinosaur? Seems kind of difficult to find resources for them anymore. I guess GLSL support is pretty solid now? I'm kind of afraid to switch as it might break things (on crappy ATI drivers) for people that were working before. I also kind of like that the ASM forces you to think about every instruction so you can write more optimal code.

jitspoe
 
Posts: 217
Joined: Mon Jan 17, 2005 5:27 am

Re: ARB Fragment Programs

Postby revelator » Tue Aug 20, 2013 5:38 pm

Not used much anymore so aye most is done via glsl these days.

SikkPin still uses them though, maybe you can get some help from him :) atm hees looking for some help with some engine side code for screen Space ambient occlusion, he has the shader Work done but
is having some trouble with Doom3's internals. If you can help him with that i bet he would be happy to create ASM shaders for anything you might need.

You can reach him at doom3world or here.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: ARB Fragment Programs

Postby Spike » Tue Aug 20, 2013 7:08 pm

the only real reason you might want to use ARB programs instead of glsl is on account of intel drivers (intel for a while provided no glsl support in windows, linux was fine though). however, intel do supposedly now provide drivers that support glsl on windows, and thus the only real reason to use arb programs over glsl has gone away with a driver upgrade, presumably.
this is true of pretty much any hardware that supports more than 4 registers, anyway...

there are still a few driver issues with certain extensions, but the core features should be robust with all vendors. one of those 'give me a test case and I'll make it pass' things, I guess.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: ARB Fragment Programs

Postby leileilol » Tue Aug 20, 2013 11:06 pm

There's also the very unfortunately common case of "pro gamers on GeforceFX". GLSL really sucks on GeforceFX, and they're more likely to be found on the Free games nowadays because they can't run the Source ones or modern ones very well.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: ARB Fragment Programs

Postby jitspoe » Wed Aug 21, 2013 3:45 am

Interesting. Thanks for the responses. I'll probably just stick with ARB fragment programs unless there's a really convincing reason to move to GLSL. From what I can tell, pretty much everything that supports GLSL has solid ARB fragment program support, so that's the best way to go from a compatibility standpoint.

If anybody knows of any good resources, feel free to post them.

jitspoe
 
Posts: 217
Joined: Mon Jan 17, 2005 5:27 am

Re: ARB Fragment Programs

Postby Spike » Wed Aug 21, 2013 4:10 am

leileilol: use half floats... they'll double your performance.
glsl requires at least 24bit floats. ati has that, while gffx cards have alternative 16bit or 32bit modes - 32bit being half as fast with at least 24bit precision and thus the default mode.
that said, depending on an extension is nasty.

nvidia still provide new extension features for ARB programs. ati does not. no idea about intel. if you're not using gl3 features like texture arrays, it doesn't really matter which you use so use whichever you're more comfortable with.
also, compile times with glsl can be quite annoying, if you're auto-generating them. :s
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: ARB Fragment Programs

Postby mh » Mon Aug 26, 2013 4:13 pm

User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Re: ARB Fragment Programs

Postby revelator » Mon Aug 26, 2013 4:49 pm

Totally agree :) i find the C like interface of glsl to be rather confusing cause its so strict you cannot cast simple types to another "vec2 to float cast or vice versa"
(though newer versions actually started supporting that to some degree) the older versions dont allow it at all so you need the exact type to cast to.

Example

The above is not legal according to the GLSL specification 1.10. With GLSL 1.20, it becomes legal.
float texel = texture2D(tex, texcoord);

The above is wrong since texture2D returns a vec4. Do one of these instead:
float texel = texture2D(tex, texcoord).r;
float texel = texture2D(tex, texcoord).x;

Many more examples also nvidia and ATI glsl versions differ on some types oh hell :S
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: ARB Fragment Programs

Postby Barnes » Fri Aug 30, 2013 7:58 am

I removed arb_fp support a long time ago, and the totally reworked to render glsl. Compatibility I absolutely do not care and intel I just will not start. Pull a "zoo of old iron" I'm not going to. :D :mrgreen:
User avatar
Barnes
 
Posts: 232
Joined: Thu Dec 24, 2009 2:26 pm
Location: Russia, Moscow


Return to OpenGL Programming

Who is online

Users browsing this forum: No registered users and 1 guest