Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: rdc on November 06, 2006

Title: Chladni Bumped
Post by: rdc on November 06, 2006
Here is my attempt at some bump mapping of Chladni textures.. I don't think I have it quite right, so any suggestions would be welcomed. Move the mouse to change the light position, space to generate a new texture and esc to exit.


Title: Re: Chladni Bumped
Post by: Shockwave on November 06, 2006
In fairness it looks really shiny and metallic, it's hard to tell if the bump is working as it should but it looks nice.
Maybe add some much darker areas to your chaldni so that shadows show up better?
Title: Re: Chladni Bumped
Post by: taj on November 06, 2006
It looks like you are using diffuse bump mapping - ie only using cos (theta) for the lighting???
If so then do as shockwave suggested, darken the basic surface and then add in lighting due to pow(cos(theta),64) or something.
If that doesnt make sense to you then its not how you are doing it and forget what I said :-)
Title: Re: Chladni Bumped
Post by: rdc on November 06, 2006
Thanks guys. Actually, I think it looks kinda cool myself (and will keep in my toolbox :)), but I was shooting for a real bump map effect, which I can't seem to achieve.

You're right Taj, I am using COS. I will try your suggestion as see what I get.

Thanks!
Title: Re: Chladni Bumped
Post by: Rbz on November 06, 2006
Nice effect indeed!
Title: Re: Chladni Bumped
Post by: rdc on November 06, 2006
Thanks, man. Incompetence does have its moments.  ;)

I really have to say a big thanks to Taj for pointing this out, and to you and mind for pointing me in the right direction. I find these things fascinating for some reason, and plan to use them in upcoming projects.

Title: Re: Chladni Bumped
Post by: rdc on November 07, 2006
I finally got the bump map working. I was building my lightmap incorrectly, which is why it turned out all shiny. This version works correctly.

Title: Re: Chladni Bumped
Post by: taj on November 07, 2006
Holy crap thats beautiful. Great job. karma up!
Title: Re: Chladni Bumped
Post by: rdc on November 07, 2006
Thanks!
Title: Re: Chladni Bumped
Post by: Jim on November 08, 2006
This demands to be animated with the lamp swinging round it :D

Jim
Title: Re: Chladni Bumped
Post by: Blitz Amateur on November 08, 2006
Amazing code rdc!! Top notch! (Cleanly done too :) )
Title: Re: Chladni Bumped
Post by: rdc on November 08, 2006
Thanks guys.
Title: Re: Chladni Bumped
Post by: Shockwave on November 08, 2006
Good work + Karma  :) Looks much better now.
Title: Re: Chladni Bumped
Post by: zawran on November 08, 2006
Very nice indeed :)
Title: Re: Chladni Bumped
Post by: rdc on November 08, 2006
Thanks guys.
Title: Re: Chladni Bumped
Post by: cirux on November 09, 2006
Yeah very nice work, looks great.
Title: Re: Chladni Bumped
Post by: rdc on November 09, 2006
Thanks.
Title: Re: Chladni Bumped
Post by: mind on December 24, 2006
what everyone else said.. really interesting to see all the different kinds of things you can come up with, all based on a simple formula :)
Title: Re: Chladni Bumped
Post by: rdc on December 24, 2006
Thanks mind.