Remember Me

German mr Forums

Recent Uploads

Hot Downloads

Most Popular

Home Jeff's Blog How to: Skydomes in 3dsmax with mental ray (and FG)
Error
  • Error loading feed data.
Message
  • Error. Feed not retrieved.
How to: Skydomes in 3dsmax with mental ray (and FG) PDF Print E-mail
Written by Jeff Patton   
Thursday, 15 November 2007 14:10

Ok, so you've purchased some really nice panoramic sky bitmaps, like these:
https://www.doschdesign.com/product...ding_Skies.html
http://www.turbosquid.com/FullPrevi...x.cfm/ID/309623

Nice right?...But in order for them to look their best your need to map them to a "skydome" object. Naturally that isn't a real difficult task, but what if you want to use the mrSun & FG with your skydome? Chances are it'll block the mrSun, which is an easy fix by adjusting the shadow options on the dome properties...but that's just going to allow indirect lighting from the mrSun...what about some skylight?

Well, if you add a mrSky or standard skylight to your skydome scene, the skydome will also block the indirect illumination from the mrSky or skylight. Unfortunately there's not a simple switch that you can enable/disable on the skydome mesh to allow FG to pass through it. But don't worry, in this post I'll show you how to work through these issues with a ray switch shader from the production library.

To begin here's an example animation I setup using the mrSun and a skydome:


Here's a link to download the video (right click, save as):
http://jeffpatton.net/Blog-images/Skydome_anim.mov

I opened 3dsMax9 and created a ground plane in an empty scene. I then added a sphere primitive that was slightly larger than my ground plane. I converted the sphere primitive to an editable poly, inverted the normals and deleted the bottom faces. From there, I scaled the sphere down (flattened it from the top). After that, I added a UVW modifier. Here's a screen capture of the scene:

Screen capture of scene setup (click to enlarge)


The production shaders in 3ds Max 2008 come with a few "ray switchers". For more information on the production shaders, check out the production shader information either in the help files of 3ds Max 2008, or at Zap's blog here:
http://mentalraytips.blogspot.com/2...easures-of.html

In my example scene I have applied a raytype switcher shader to the skydome mesh. Here's a screen capture with an explanation of the maps I used: (click to enlarge)


In a nutshell I placed my panoramic sky map in the "Eye Rays", "Reflected Rays", and "Finalgather Rays" swatches. By boosting the output amount on the Eye Rays & Reflected Rays maps the panoramic bitmap can be seen when using the log. exposure control (with exterior daylight option enabled). By boosting the output amount of the FinalGather Rays, the skydome will actually generate indirect illumination when FG is enabled. The indirect illumination will generate the colors of the skydome map.

All this may sound complex in text...but in an actual scene you'll see that it's rather simple. Here's a Max9 scene:
http://jeffpatton.net/Blog-images/Sky_dome.zip

I created this in Max9 so 3ds Max 2008 users can also open the file. If you're using Max9 you'll need to install the production shaders from 3ds Max 2008. Instructions on doing this can be found here: http://forums.cgsociety.org/showthread.php?f=6&t=554087

Here's some additional sample renders where I used various panoramic images mapped to the skydome:

Sample 01 (click to enlarge)


Sample 02 (click to enlarge)


Sample 03 (click to enlarge)


Naturally I can't supply the panoramic bitmaps I used in these scenes because they are purchased assets of mine.

Blog entries may be discussed in the 3DA forums HERE
Trackback(0)
Comments (6)Add comments
Hector Allier wrote on August 04, 2008
 
Title: ...
i consider myself a rookie regarding 3dstuff...but after watching some of your animations and reading quite patiently your tutorialsi get a lot of encouragement to keep learning process up...

thanks for your priceless generosity and time spent on this awesome materials.



best regards from mexico. smilies/cheesy.gif
report abuse
vote down
vote up

Votes: +0
Ata Ul Munim Sipra wrote on August 24, 2008
 
Title: ...
Thanks for sharing valuable information. It's pretty headache before. I have found the proper solutions for the problems which I have faced. smilies/smiley.gif
report abuse
vote down
vote up

Votes: +0
GC wrote on April 18, 2009
 
Title: ...
I really appreciate all infos we can find in you blog. in these days i tried the skydome technique, but i found some problems if i set up a nighttime scene. Any suggestion?
report abuse
vote down
vote up

Votes: +0
Jeff Patton wrote on April 18, 2009
 
Title: ...
Not sure as I don't know what type of problem you've run into. FWIW, there are threads for each blog entry I make that allow people to post questions with attachments if you want to attach some images that show the problems you're getting. The replies here are a bit limited and the forum makes it easier to assist. Here's a link to the forum for this particular entry:
http://www.3dallusions.com/for...ay-fg.html
report abuse
vote down
vote up

Votes: +0
Scott E wrote on May 05, 2009
 
Title: Sky Bitmap in Design 2009
Hi Jeff,

Having trouble placing a sky bitmap while using a standard mr daylight & sky setup. All I get is a black scene with a narrow cyan horizon. See below links.

Any help is appreciated,
Scott

http://www.andersonillustration.com/bitmapandsettings.jpg

http://www.andersonillustration.com/result-mrsettings.jpg
report abuse
vote down
vote up
website
Votes: +0
Jeff Patton wrote on May 06, 2009
 
Title: ...
This link will explain the reason for the black background:
http://mentalraytips.blogspot....er-my.html

As for the cyan horizon: Disable the aerial perspective option in your mrSky settings.
report abuse
vote down
vote up

Votes: +0

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy