Here's another glsl experiment...

Post your FreeBASIC source, examples, tips and tricks here. Please don’t post code without including an explanation.
Post Reply
Dr_D
Posts: 2453
Joined: May 27, 2005 4:59
Contact:

Here's another glsl experiment...

Post by Dr_D »

It just runs a lens mapping shader on the current texture unit. I have another version that does more advanced blending on the edges, but it runs really slow on my card, fo some reason. Anyway, here's the download link and a way too large screenshot. :)

http://file-pasta.com/d/1306.rar

Image
Last edited by Dr_D on May 31, 2007 1:52, edited 1 time in total.
KiZ
Posts: 48
Joined: Aug 25, 2005 7:38
Location: UK
Contact:

Post by KiZ »

hey

I get a black box and this is in the console:
GL_EXT_framebuffer_object is supported
GL_ARB_multitexture is supported
GL_ARB_shading_language_100 is supported

Shader Infolog error message:
ERROR: 0:16: 'f' : syntax error parse error
ERROR: 1 compilation errors. No code generated.


Location of texture unit in shader:-1
Location of light position variable in shader:-1
Location of light radius variable in shader:-1
Location of Screen dimensions variable in shader:-1
Dr_D
Posts: 2453
Joined: May 27, 2005 4:59
Contact:

Post by Dr_D »

Yeah, that's weird. My card complains without the f's. Replace the lens.frag text with this, if you don't mind. :)

No need to change anything now. I fixed the original download. Also, I think the reason I was getting errors without "n.nf" is because I rolled backed my driver for testing a while back and forgot to reinstall the updated one. ;)
Deleter
Posts: 975
Joined: Jun 22, 2005 22:33

Post by Deleter »

worked just fine here. Sweet effect!

specs: 6600gt, a64 3700+

btw did you notice how many bytes lens.frag is? :P its telling you that glsl is EVIL O_O
Dr_D
Posts: 2453
Joined: May 27, 2005 4:59
Contact:

Post by Dr_D »

hehehe... thanks Deleter! :)
rdc
Posts: 1745
Joined: May 27, 2005 17:22
Location: Texas, USA
Contact:

Post by rdc »

I wish I could run shaders. One of these days I need to update my card.
Dr_D
Posts: 2453
Joined: May 27, 2005 4:59
Contact:

Post by Dr_D »

Hey, don't you have a nvidia 5500FX? That should be able to run it. ;)
badmrbox
Posts: 664
Joined: Oct 27, 2005 14:40
Location: Sweden
Contact:

Post by badmrbox »

Nice effect Dr_D :D
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Post by anonymous1337 »

Have you been properly unloading your textures? I haven't been able to delete the folders that you've been putting the textures in from these shader demos... Says it's in use :-/

The entire demo depends on the shader? :D Hardware accelerated functions...fancy that.
Post Reply