PDA

View Full Version : God Rays in Maya?


Generalkyckling
12-14-2011, 09:10 AM
Hi,
Im currently working on an animation project in school. The scenery is an old temple ruin:
https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-snc7/s720x720/392627_331789606835645_100000138266844_1533540_1660094474_n.jpg
(This picture ha some old textures, mssing speculars, bad shadows etc, but just to show you the setting).

Apart from the torch-thingy the character will carry I want the only light to come from holes in the ceiling. To make this look nice I would like to use "God rays". So that the light coming from the ceiling is visible, maybe with some dust moving in it etc.

Now to the problem: How do I make God Rays?

What I have tried:
- Make a box covering the whole scene and put a transmat and particle volume on it. Never got to see the result because it took ages rendering it. Maybe some settings needed to change? Rendering time cant be too long, because I have limited time (Some minutes/frame).

- Spotlight with "light fog". Looked "ok" I guess, but if I covered the spotlight "cone" partly (to make it cast light of the same shape as the hole in the roof) then the fog dissapeared.


Please help me =/. Are there any nice God Rays-plugin for Maya? Maybe I can use alpha planes or something? Dont know what to do..

Sorry for my bad english, not my main language.

InfernalDarkness
12-16-2011, 05:17 PM
I think the terminology involved may be keeping you from receiving many answers. "Volumetric lighting" is often referred to as "god rays" by the Vue crowd, as it's got fewer syllables to help them keep it simple. (grins)

To achieve volumetric lighting in mental ray, you have three good options.

1. parti_volume (participating media volume) which you've tried. How did your preview renders look? You can tune the parti_volume to be relatively quick, it really just depends on how clean you need it to look. But if you need accuracy, that's your best choice. The math involved is hefty compared to any other kind of lighting, and thus, the rendertimes are gonna hurt.

2. Light fog from a spotlight. This one won't produce the light streams relative to occluding objects (a person passing through) accurately, however you can map a texture to the light to simulate this effect if necessary.

3. A simple textured cone. Likely the cheapest/quickest way but also not going to give you any physical accuracy.

I tend to use parti_volume most often, and just tune it so I get a decent balance of quality/speed.

AlFra
12-17-2011, 09:41 AM
Depending on animation requirements, maybe you could do them entirely in After Effects or a similar program?

Your English seems better than a lot of English people's English...

Generalkyckling
12-22-2011, 07:54 AM
Hey, thanks for the responses :).

I ran out of time and solved the problem a week ago. I used several planes (12 or something I think, dont have the file on this computer) which I gave a .png texture with a thin low opacity light ray painted on it. I then crossed 2 of these planes so that it made a cross. I then dublicated this cross and moved them around and created a starlike shape with them, some I rotated 45degrees. I moved up the outer crosses in Y to make a pointy shape and then combined - fixed pivot and made them rotate.
Looks something like this, (this isnt the latest version).

http://www.youtube.com/watch?v=dRaaInrcAX8&feature=youtu.be

Should be watchable any minute.

Generalkyckling
12-23-2011, 07:31 PM
Weird, Im pretty sure I wrote a reply here. Maybe my connection broke :S.

Anyway, thanks for the answers :). I did solve the problem a week ago and I think it turned out ok. I used several planes with a low opacity light ray painted on it which I then grouped and animated with a slow rotation in Y. Looks something like this:
http://www.youtube.com/watch?v=dRaaInrcAX8&list=UUUEIBVVGnqlfsocci3KOQ7Q&index=1&feature=plcp
(It has been tweeked a bit since then, but you get the idea).

Im still intrested in how to tweak parti volume to not take so long in render though. Any link to a nice guide to that or something would be appriciated! :)

CGTalk Moderation
12-23-2011, 07:31 PM
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.