Author Topic: Shaders and Supershapes  (Read 11622 times)

0 Members and 1 Guest are viewing this topic.

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Shaders and Supershapes
« on: October 21, 2011 »
I've been playing around with Supershapes (http://paulbourke.net/geometry/supershape3d/) this week.

I know they've been done to death a bit, but I thought it would be interesting to play with them and maybe come up with something new.

The code is still a work in progress, but I've got the shapes generating nicely (albeit with it with some weird inverted normals at one pole) and a phong lighting shader running over the top. Going to try and get some god rays and other stuff to make it more interesting and maybe try and make a 4k intro using it.

Loving GLSL so far :)



raizor

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: Shaders and Supershapes
« Reply #1 on: October 21, 2011 »
Nice!
With some slick sync it can be enough for a whole demo (proof)...
Challenge Trophies Won:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Shaders and Supershapes
« Reply #2 on: October 21, 2011 »
Looking nice :)

Have fun ;)
The demoscene will never die, never!

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: Shaders and Supershapes
« Reply #3 on: October 21, 2011 »
Thanks guys.

Hellfire, that demo is really nice! They certainly got their money's worth with that effect :)
raizor

Challenge Trophies Won:

Offline jace_stknights

  • Amiga 1200
  • ****
  • Posts: 399
  • Karma: 32
  • PEEK & POKE are not MOVEM!
    • View Profile
    • ST Knights WebSite
Re: Shaders and Supershapes
« Reply #4 on: October 22, 2011 »
Very nice! Hope to be able to code something like that soon!
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Shaders and Supershapes
« Reply #5 on: October 22, 2011 »
Nice work Raizor!

Is it done all in pixel shader or did you use polygons?

... and maybe try and make a 4k intro using it.
...
It seems that someone else already did it here and here ;), ofcourse doesn't mean you shouldn't do your own.
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: Shaders and Supershapes
« Reply #6 on: October 22, 2011 »
Thanks Jace and rbz.

Rbz, it's polygon based, just shaded using a pixel shader. This looks like another supershape 4k too. They're coming outta the goddamn walls! :)

I've seen some of your stuff on Pouet lately, nice work! They're really cool, especially the 1k stuff.

I'm trying to get my head around SSAO atm, so much new stuff to learn :P
« Last Edit: October 22, 2011 by Raizor »
raizor

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Shaders and Supershapes
« Reply #7 on: October 23, 2011 »
I really love the brushed metal look of the object Raizor, it truely looks great!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Shaders and Supershapes
« Reply #8 on: October 23, 2011 »
Uh, definately looking good. Keep us informed about your progress. Like it a lot.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline neriakX

  • Atari ST
  • ***
  • Posts: 117
  • Karma: 29
  • CodeNoob
    • View Profile
Re: Shaders and Supershapes
« Reply #9 on: October 27, 2011 »
If only I could do something half cool than this ... respect! looking great.
cheers,
neriakX

Challenge Trophies Won:

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: Shaders and Supershapes
« Reply #10 on: October 27, 2011 »
Awesome stuff!!!

Looking forward to the finished prod. ;*)
Challenge Trophies Won:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Shaders and Supershapes
« Reply #11 on: October 27, 2011 »
This is very interesting stuff. I am fascinated by supershapes, such a powerful tool to know how to use.

Challenge Trophies Won:

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Shaders and Supershapes
« Reply #12 on: October 27, 2011 »
Nice one! Supershapes are really fun to play with. You're right that they've been used to death in the scene by now (especially in 4k's) but they're still damn nice :D
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Shaders and Supershapes
« Reply #13 on: January 31, 2012 »
Something went bang :(

Maybe something to do with shaders on my laptop.

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: Shaders and Supershapes
« Reply #14 on: January 31, 2012 »
Something went bang :(

Maybe something to do with shaders on my laptop.

More than likely it's my crappy shader code. I'll take another look at it and upload a fix if I can see anything wrong.
raizor

Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Shaders and Supershapes
« Reply #15 on: January 31, 2012 »
Something went bang :(

Maybe something to do with shaders on my laptop.

More than likely it's my crappy shader code. I'll take another look at it and upload a fix if I can see anything wrong.

Don't be too sure, it's only a little netbook thing and looking at what's in it it's an 'Intel graphics media accelerator' whatever that is, dxdiag reports directx 9.0c

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: Shaders and Supershapes
« Reply #16 on: January 31, 2012 »
Ah, it's probably the netbook then ;)
raizor

Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1217
  • Karma: 230
    • View Profile
    • Homepage
Re: Shaders and Supershapes
« Reply #17 on: February 01, 2012 »
I remember seeing this thread, but not the morphing shape, must've been in a hurry.

Cool stuff, how many poly's are on display there? A visible wireframe might work well too!  :kewl:
www.kirl.nl
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: Shaders and Supershapes
« Reply #18 on: February 01, 2012 »
I remember seeing this thread, but not the morphing shape, must've been in a hurry.

Cool stuff, how many poly's are on display there? A visible wireframe might work well too!  :kewl:

About 20,000 triangles atm. I'm buffering the data to the GPU each frame, so it gets laggy if I do more than that. Probably time to spend a hour speeding this thing up a bit. I have some mesh distortion stuff I want to try so will do both at the same time. So many projects, so few finished projects ;)

Will give the wireframe a try :)
raizor

Challenge Trophies Won: