Faking Refractions in shake

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2004
Faking Refractions in shake

Hi all,

have heard that i can fake refractions in shake, but am not sure how to go about doing it. Have been playing about with both displace filter and a macro called glAss. I've figured out that i need a grey scale image to control the displacement/offset. How do i render out my 3D model (in this case a jagged crystal) to that it works convincingly - does the greyscale colour need to be mapped to the model's normals or depth or what?

Hmmmm maybe this would be better in the rendering forum! Sorry if this is a basic question, but anyone have any ideas?

thank alot
 
  12 December 2004
I have heard people talking about using surface normals and ray direction to create an accurate technique for warping the background plate using a warpX node. This seems excessive to me ! If one needs really accurate refractions then I would suggest letting your ray tracer handle it.

One can very easily fake refraction, it wont be accurate ( but then again if they are looking at your refractions then what is the rest of the image lacking ?!?)
Use a combination of iDispalce and iBlur. Just render the object with a shader that will show the contouring of the refractive object with a fresnel effect.

for example in Maya use a facing ratio of a ramp shader.
in max use a falloff shader.

Max sure this is rendered as either a grey scale or independant axis are rendered in to a channel. ie x into red channel and y into green. as iDisplace can use seperate channels for each axial displacement.


Hope this helps
__________________
aneks
compositor

 
  12 December 2004
if your crystals are not too transparent while rendering, it usually even works if you take the luminance of your image or in special cases one of the color channels to drive an iDisplace node with that.

if the object is not too prominent in the scene you will get along with that one.
not correct as aneks mentioned but usually enough to trick the eye.

cheers

alexx
__________________
"A computer program does what you tell it to do, not what you want it to do." Greer's Third Law.
 
  12 December 2004
Thanks alot, sounds like what i'm looking for. Much appreciated

r.
 
  01 January 2005
Render a normal pass of your 3D object and then use this as a source to displace your background image. I can't remember wether the normals have to be in camera co-ord space or object co-ord space, but you will soon find out. The individual r,g and b channels can individually drive the displacement thus you can achieve a very good fake refraction, much better than using a single greyscale channel.
 
  01 January 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:33 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.