DOF Using Lens Shader

View previous topic View next topic Go down

DOF Using Lens Shader

Post by logikpixel on Thu Mar 25, 2010 11:26 am

Here is a much effective rendering DOF in mental ray.
It's quite faster than my previous tutorial

First you have to check if you have the Lens Shader "unhidden" from the architectural_max.mi file.
It is normally located here:
C:\Program Files\Autodesk\3ds Max 2009\mentalray\shaders_standard\include

Open the .mi file with any text editor like notepad. Search for "gui_mia_lens_bokeh".
Just before the word hidden add a hash (#). Save and close.



Now you have DOF/Bokeh Lens shader available.

Unlike my old DOF tutorial I used the Multi-Pass Effect back then, here you don't do anything with the camera's parameters. Just leave it as it is and let the shader do all the work.



On the Render Setup go to Camera Effects roll-out. On Camera Shaders click on "None" of the Lens' sample box. Select Arch: DOF / Bokeh.



To have full control of the shader, just drag and drop the shader to an empty slot in the Material Editor.



Render. Enjoy!

*The scene is simply lit by three sky portals with mib blackbodies as their custom color sources. Smile

logikpixel
CGP Apprentice
CGP Apprentice

Number of posts: 818
Age: 32
Location: sharjah, tarlac, gensan
Registration date: 09/03/2009

View user profile http://selectiveblur.blogspot.com/

Back to top Go down

Re: DOF Using Lens Shader

Post by Norman on Thu Mar 25, 2010 11:33 am

what?!!!ganyan lang ka simple yun!!!!!ang galing!!!!

Norman
CGP Expert
CGP Expert

Number of posts: 2941
Age: 30
Location: Singapore
Registration date: 22/06/2009

View user profile http://www.normancaguiat.webs.com

Back to top Go down

Re: DOF Using Lens Shader

Post by logikpixel on Thu Mar 25, 2010 12:17 pm

Heheh..V-ray user kayo sir di ba? Subukan mo 'to. Although hindi gaya sa vray cam na directly sa parameters mo tini-tweak madali din lang kung nakasanayan mo. Smile

logikpixel
CGP Apprentice
CGP Apprentice

Number of posts: 818
Age: 32
Location: sharjah, tarlac, gensan
Registration date: 09/03/2009

View user profile http://selectiveblur.blogspot.com/

Back to top Go down

Re: DOF Using Lens Shader

Post by Norman on Thu Mar 25, 2010 12:41 pm

uu nga sir..napapaisip ako kung pwede e-apply yan sa vray....pero parang gusto ko rin e-try yung mental ray...si marcellino ksama ko yun e sya mahilig mag MR...na yayaya na rin nya akong mag try....paguwi ko nga susubukan ko....hehehe....thanks man!!!

Norman
CGP Expert
CGP Expert

Number of posts: 2941
Age: 30
Location: Singapore
Registration date: 22/06/2009

View user profile http://www.normancaguiat.webs.com

Back to top Go down

Re: DOF Using Lens Shader

Post by edosayla on Fri Mar 26, 2010 5:31 am

Wow galing master logik Smile mga kapatid maganda ang MR pag na discover nyo lng mga hidden stuff nya ... Smile

edosayla
The Teacher
The Teacher

Number of posts: 1150
Age: 34
Location: Cadiz, Talisay, Dubai
Registration date: 06/10/2008

View user profile http://www.pinoycad.com

Back to top Go down

Re: DOF Using Lens Shader

Post by bokkins on Fri Mar 26, 2010 10:14 am

Thanks for sharing this bro. Ganda ng output! 2thumbsup

bokkins
Special Ops
Special Ops

Number of posts: 9411
Age: 33
Location: Cadiz, Iloilo, Quezon City
Registration date: 18/09/2008

View user profile Http://bokkins3d.blogspot.com/

Back to top Go down

Re: DOF Using Lens Shader

Post by Norman on Fri Mar 26, 2010 12:31 pm

edosayla wrote:Wow galing master logik Smile mga kapatid maganda ang MR pag na discover nyo lng mga hidden stuff nya ... Smile


tama kayo sir ed...si marcelino mukhang nadiscover na e...sa mga tuts nyo rin galing......

Norman
CGP Expert
CGP Expert

Number of posts: 2941
Age: 30
Location: Singapore
Registration date: 22/06/2009

View user profile http://www.normancaguiat.webs.com

Back to top Go down

Re: DOF Using Lens Shader

Post by darkbeauty on Wed Mar 31, 2010 10:46 am

thanks po!

darkbeauty
CGP Newbie
CGP Newbie

Number of posts: 58
Age: 31
Location: Dubai, UAE
Registration date: 11/02/2010

View user profile

Back to top Go down

Re: DOF Using Lens Shader

Post by marcelinoiii on Thu Apr 01, 2010 2:55 am

thanks sir hinihintay ko talaga to from you!!! Smile nasubukan ko to Sir pixel kaya lang talaga bang matagal magrender? or yan ang tamang setting? thanks ulit sa share!!! inuman na

marcelinoiii
CGP Guru
CGP Guru

Number of posts: 1125
Age: 29
Location: Singapore
Registration date: 30/07/2009

View user profile

Back to top Go down

Re: DOF Using Lens Shader

Post by logikpixel on Sat Apr 03, 2010 5:14 am

@sir bokkins: Wala pong anuman. Just something to give back dito sa community.
@darkbeauty: Welcome po.
@marcelino: Yes, yan ang tamang settings. Maraming rason kung bakit maaaring mabagal ang render mo. Baka pwede natin masilip yung screengrab nung render settings mo. Post mo na lang dito for discussion at makita na din ng iba. Smile

logikpixel
CGP Apprentice
CGP Apprentice

Number of posts: 818
Age: 32
Location: sharjah, tarlac, gensan
Registration date: 09/03/2009

View user profile http://selectiveblur.blogspot.com/

Back to top Go down

Re: DOF Using Lens Shader

Post by marcelinoiii on Mon Apr 05, 2010 4:19 pm

guys napabalik ako dito coz I'm trying bokeh effect... napansin ko nabanggit pala ni f41 name ko twice pa wehehe f41, norman, pre hehe try mo na din nag MR...

Sir Logik, post ko maya ang setting ko pag ok na render, sana magawa ko. peace man

marcelinoiii
CGP Guru
CGP Guru

Number of posts: 1125
Age: 29
Location: Singapore
Registration date: 30/07/2009

View user profile

Back to top Go down

Re: DOF Using Lens Shader

Post by jakeark on Tue Apr 06, 2010 12:33 am

wow thanks po galing , puede rinsiya sa vray?
bounce cher

jakeark
CGP Newbie
CGP Newbie

Number of posts: 117
Age: 28
Location: philipines
Registration date: 07/02/2010

View user profile

Back to top Go down

Re: DOF Using Lens Shader

Post by logikpixel on Tue Apr 06, 2010 5:05 am

marcelinoiii wrote:guys napabalik ako dito coz I'm trying bokeh effect... napansin ko nabanggit pala ni f41 name ko twice pa wehehe f41, norman, pre hehe try mo na din nag MR...

Sir Logik, post ko maya ang setting ko pag ok na render, sana magawa ko. peace man


Sige bro mas maganda ang discussion kung ipo-post mo yung settings lalu na kung may mga katanungan. Maaari pang makita ng iba na gustong magtanong kung papaano ito gawin. Hintayin ko at try kong sagutin, kung hindi man masagot nandyan naman si sir edosayla at ibang mga masters para sumagot. Smile

jakeark wrote:wow thanks po galing , puede rinsiya sa vray?
bounce cher


Wala pong anuman. Hindi ito pwede sa Vray. May ibang paraan po kasi sa iba't ibang render engine. Smile

logikpixel
CGP Apprentice
CGP Apprentice

Number of posts: 818
Age: 32
Location: sharjah, tarlac, gensan
Registration date: 09/03/2009

View user profile http://selectiveblur.blogspot.com/

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum