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 Tools Display Modes
  02 February 2005
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;

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
  02 February 2005
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.

I think I need a wake call and go start browsing highend3d as the old days.
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.
  02 February 2005
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
  02 February 2005

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

Last edited by cryolab : 02 February 2005 at 12:03 PM. Reason: mistake
  02 February 2005

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.

www.infofillers.tv - Behance
  07 July 2005
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?

  07 July 2005
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
Society of Digital Artists

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

All times are GMT. The time now is 04:13 PM.

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