Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / TUTORIAL : Caustics (Detail Mapping)

Author
Message
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 4th Mar 2005 19:37
if you dont have it, go here to get "Caustics Generator"
http://www.lysator.liu.se/~kand/caustics/

create some caustic images animation with 32 frames and with Black background. (preferably 256x256 in size)
Save the images to output directory with name "caustics", program will generate 32 images with names "caustics_001.bmp" to "caustics_032.bmp"

pick these images and an extra "ground.bmp" image to the same folder to make the following code work. you can change the directories to your wish.


Code:
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Mar 2005 22:48
looks interesting.

Is there any automated way to do this without having to manually texture the object over time?

For anyone, like me(!), who doesn't know what caustics is...

Quote: "Caustics can be described as the light pattern you see at the bottom of a pool on a sunny day.
This tool will let you render such caustics patterns. The rendered images can be animated and used for realtime graphics and are tileable in both space and time. "


BatVink
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 8th Mar 2005 17:22
Caustics are the illusion happening while light rays get broken passin through water, you can see them mostly in pools or shallow waters.

aaand i cant think of a more automated way rather than pasting images, but if you are talkin about a function, surely it would be easy to make one.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 8th Mar 2005 23:16
I was thinking about a feature like animated sprites. Obviously not this feature, as it's 2D, but something along those lines.

BatVink
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 9th Mar 2005 02:21
i think animated sprites are series of images which show one after the other, so its the same technique and 2D.

But if you mean somethin like overlaying the images over the 3D objects, the only way i can imagine is duplicating the object and raising it alittle bit upper to make it visible and pasting the images on the duplicated object, again the caustics are 2D.

Anyhow, i think i dont understand you

Login to post a reply

Server time is: 2024-11-23 13:58:10
Your offset time is: 2024-11-23 13:58:10