Author Topic: Here's a new glsl demo...  (Read 7515 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr_D

  • Atari ST
  • ***
  • Posts: 151
  • Karma: 29
    • View Profile
Here's a new glsl demo...
« 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
« Last Edit: May 31, 2007 by Dr_D »
The Dr. is INsane!!!

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Here's a new glsl demo...
« Reply #1 on: May 31, 2007 »
Nice sample, and very nice font too :)

Jim
Challenge Trophies Won:

Offline Dr_D

  • Atari ST
  • ***
  • Posts: 151
  • Karma: 29
    • View Profile
Re: Here's a new glsl demo...
« Reply #2 on: May 31, 2007 »
Thanks. ;)

The font was one of those "1000 free fonts"
The Dr. is INsane!!!

Offline Emil_halim

  • Atari ST
  • ***
  • Posts: 248
  • Karma: 21
    • View Profile
    • OgreMagic Library
Re: Here's a new glsl demo...
« Reply #3 on: May 31, 2007 »

Nice work Dr_D.  :)

BTW , where can i get those 1000 free fonts ?

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Here's a new glsl demo...
« Reply #4 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?

Online Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Here's a new glsl demo...
« Reply #5 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 :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Here's a new glsl demo...
« Reply #6 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.
Challenge Trophies Won:

Offline Dr_D

  • Atari ST
  • ***
  • Posts: 151
  • Karma: 29
    • View Profile
Re: Here's a new glsl demo...
« Reply #7 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:
The Dr. is INsane!!!

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Here's a new glsl demo...
« Reply #8 on: June 01, 2007 »
really! thats terrible hope all goes well and your ok.
Challenge Trophies Won:

Online Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Here's a new glsl demo...
« Reply #9 on: June 01, 2007 »
Damn, sorry to hear about the fire! Hope everyone is ok?
Shockwave ^ Codigos
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Here's a new glsl demo...
« Reply #10 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
Challenge Trophies Won:

Online Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Here's a new glsl demo...
« Reply #11 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? :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Here's a new glsl demo...
« Reply #12 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?
Challenge Trophies Won:

Online Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Here's a new glsl demo...
« Reply #13 on: June 03, 2007 »
Nah mate. I am getting to the point where I want to do this stuff on my own too :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Dr_D

  • Atari ST
  • ***
  • Posts: 151
  • Karma: 29
    • View Profile
Re: Here's a new glsl demo...
« Reply #14 on: June 08, 2007 »
Thanks guys. Everyone is ok... sorry I forgot to mention that in the first place.  :-\
The Dr. is INsane!!!

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: Here's a new glsl demo...
« Reply #15 on: June 08, 2007 »
dude!!! This works on the Laptop!!
ATI 256mb
 :updance:
Challenge Trophies Won:

Offline Dr_D

  • Atari ST
  • ***
  • Posts: 151
  • Karma: 29
    • View Profile
Re: Here's a new glsl demo...
« Reply #16 on: June 08, 2007 »
hahaha! Hell yeah man!  :clap:
The Dr. is INsane!!!

Offline Dr_D

  • Atari ST
  • ***
  • Posts: 151
  • Karma: 29
    • View Profile
Re: Here's a new glsl demo...
« Reply #17 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 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...  :-\
The Dr. is INsane!!!

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Here's a new glsl demo...
« Reply #18 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.