whats equivalent to sampleInfo node in MR?

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
Old 02 February 2005   #1
whats equivalent to sampleInfo node in MR?

hi people,

i have an asbtract 3d environment, and am using Deapth material using sampleInfo node :

 
float $depth=100; //depth from camera
float $distance=sqrt(pow(samplerInfo1.pointCameraX,2)+po  w(samplerInfo1.pointCameraY,2)+pow(samplerInfo1.po  intCameraZ,2))/$depth;
$distance=1-$distance;
 
//output
Red_channel=$distance;
Green_channel=$distance;
Blue_channel=$distance;
 


it works fine in maya software render .. but not on MENTAL RAY !
in another way.. how to render the zdepth as RBG on mentalRay ? (this is not my goal, but will solve my problem)

can anyone help me in that,please
__________________
www.infofillers.tv - Behance
 
Old 02 February 2005   #2
Hi Firas, That Maya shader won't work in MR.
Rendering z-depth with MR is ,likely one of things that I still bearing with even though it's easy to reuse the z-depth channel in most post production programs such as Combustion and Photoshop.
It's always possible to use the old school way to render zdepth by just adding a envirement fog to the whole scene and give everything a while shader. It gives a better results than anyother way I ever used.. well with the cost of rendering time of course.
It would be nice if we can find any MR shader rendering just the zdepth.
Wish good luck for you.

Edit:
I think I need a wake call and go start browsing highend3d as the old days.
http://www.highend3d.com/files/dl.3...el&file_id=2927
A shader working with both MR and Maya soft.. didnt try it yet of though.
__________________
Lazhar Rekik

Last edited by lazzhar : 02 February 2005 at 10:38 AM.
 
Old 02 February 2005   #3
thankx for reply

as i said z-buffer is not my target .. am doing a shader were its important to know the distance from camera .. and as i said it works on maya software render .. but not mental ray .. i tried to track the problem .. it may be the compatability of sampleInfo node .
__________________
www.infofillers.tv - Behance
 
Old 02 February 2005   #4
..

moin,
it can be done with a light info node and a driven key from lightinfo to whatever u will try

heres n xample with a blend color samples the distance from a perspShape
http://www.germanseticommanders.hom...th_shader_temp/

Last edited by cryolab : 02 February 2005 at 12:03 PM. Reason: mistake
 
Old 02 February 2005   #5
Talking

cryolab, u are the man .. it works 100% ..

i didnt know that lightInfo node has distance output.. and by the way i love the nodes output because its realtime feedback ..

big thankx.

Firas.
__________________
www.infofillers.tv - Behance
 
Old 07 July 2005   #6
Red face

Hi guys, I know this thread is a bit old, however... The website above is down and I'm needing to do something like this without having to use any proprietary shaders. It seems as if this setup is doing just that... Any help?

az
 
Old 07 July 2005   #7
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 12:28 AM.


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