Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: Dr_D on May 31, 2007

Title: Here's a new glsl demo...
Post by: Dr_D on May 31, 2007
It just runs a lens mapping shader on the current texture unit. I think it looks pretty cool. :)

Here's the download and an extremely large screenshot.  :2funny:

http://file-pasta.com/d/1306.rar
(http://file-pasta.com/r/1303.jpg)
Title: Re: Here's a new glsl demo...
Post by: Jim on May 31, 2007
Nice sample, and very nice font too :)

Jim
Title: Re: Here's a new glsl demo...
Post by: Dr_D on May 31, 2007
Thanks. ;)

The font was one of those "1000 free fonts"
Title: Re: Here's a new glsl demo...
Post by: Emil_halim on May 31, 2007

Nice work Dr_D.  :)

BTW , where can i get those 1000 free fonts ?
Title: Re: Here's a new glsl demo...
Post by: Stonemonkey on May 31, 2007
Cool, I've yet to look into sl. Does the lens effect work off the texture or whatever is already in the pixel buffer?
Title: Re: Here's a new glsl demo...
Post by: Shockwave on May 31, 2007
Looks the business!

When I saw this I thought immediately that it can be used to make a nice intro effect, you could use this lens to make the ultimate bubbles routine drifting up the screen, combining oldschool looks with newschool technologies perfectly.

Love it.

Well done :)
Title: Re: Here's a new glsl demo...
Post by: ninogenio on June 01, 2007
i cant download it the screeny looks the business though!

it downloads to about threequarters then it says complete but the archive is broken when i open it.
Title: Re: Here's a new glsl demo...
Post by: Dr_D on June 01, 2007
sorry about the problems. :(

I'm gonna be offline for about a week probably because we have to move... The house actually caught on fire the other night.  :telloff:
Title: Re: Here's a new glsl demo...
Post by: ninogenio on June 01, 2007
really! thats terrible hope all goes well and your ok.
Title: Re: Here's a new glsl demo...
Post by: Shockwave on June 01, 2007
Damn, sorry to hear about the fire! Hope everyone is ok?
Title: Re: Here's a new glsl demo...
Post by: taj on June 02, 2007
Sorry about the fire!!
The demo is great, its great to see the oldskool effects being converted to shaders and running at such high resolutions. Have some karma!

Chris
Title: Re: Here's a new glsl demo...
Post by: Shockwave on June 02, 2007
its great to see the oldskool effects being converted to shaders and running at such high resolutions.
Hmm, a hint there perhaps? :)
Title: Re: Here's a new glsl demo...
Post by: taj on June 03, 2007
its great to see the oldskool effects being converted to shaders and running at such high resolutions.
Hmm, a hint there perhaps? :)

Am I beginning to sound like a broken record?
Title: Re: Here's a new glsl demo...
Post by: Shockwave on June 03, 2007
Nah mate. I am getting to the point where I want to do this stuff on my own too :)
Title: Re: Here's a new glsl demo...
Post by: Dr_D on June 08, 2007
Thanks guys. Everyone is ok... sorry I forgot to mention that in the first place.  :-\
Title: Re: Here's a new glsl demo...
Post by: relsoft on June 08, 2007
dude!!! This works on the Laptop!!
ATI 256mb
 :updance:
Title: Re: Here's a new glsl demo...
Post by: Dr_D on June 08, 2007
hahaha! Hell yeah man!  :clap:
Title: Re: Here's a new glsl demo...
Post by: Dr_D on June 08, 2007
@StoneMonkey: Yeah, it just uses the current texture unit. You could simply render your scene to a frame buffer texture object and apply 2d effects to that though.

I've finally got the robust shadow volume technique that nVidia outlines here (http://developer.nvidia.com/attach/6831) working, and what I really would like to do with glsl, is soften the shadows. I'm not sure how to go about it yet though. I mean, you can't really "blur" the stencil buffer. I've tried "clusters" of lights for each light source, but that's really slow for a scene with a high polygon count. I was thinking like, setting the alpha of each vertex in the shadow faces based on the distance from the center of the object. Then again, you aren't actually rendering to the color buffer, so...  :-\
Title: Re: Here's a new glsl demo...
Post by: Stonemonkey on June 08, 2007
Just a thought on softening shadows and no idea if it would work, once you've drawn all your shadow volumes use the stencil value to set the colour or alpha in a frame buffer texture object to high/low then copy that to another frame buffer texture object and then blend several times (still using the stencil test) with different offsets.

hmmm, that would soften the shadows along the edges where the object meets it's own shadow too or where a shadow goes behind something that isn't shadowed which wouldn't be too good if it was sitting on the floor or something.