Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   lightning effect (dynamics) (https://simplymaya.com/forum/showthread.php?t=18234)

Lifire 10-09-2005 07:33 AM

lightning effect (dynamics)
 
1 Attachment(s)
I created this lightning effect and set the values to what I thought looked best to me. Then I added a background in maya (on a plane) to set up a good perspective, but when the lightning is in front of the background, it gets way too bright and has a huge glow. The only way to disable this is to turn the glow almost all the way off, but then it defeats the purpose. The first image is the effect settings.

I deleted the only light in my scene (direction light) and that seemed to take the glow off the background, but then I have no lights :confused:

So is this most likely a problem with my directional light, my lightning effect, or my background plane (shader)? Any ideas what settings I should change?

Thanks in advance.

Lifire 10-09-2005 07:36 AM

1 Attachment(s)
This is the effect with no background behind it (as seen from the camera).

Lifire 10-09-2005 07:37 AM

1 Attachment(s)
The effect with a background behind in maya.

Lifire 10-09-2005 07:38 AM

1 Attachment(s)
And finally, what I want it to look like as a straight render from maya (but this was done in PS).

I also tested the light intensity, but that doesn't help. Besides, I would lose the color it casts on objects.

ragecgi 10-09-2005 06:15 PM

Well, from my experience with shots including lightning, I would do one of the following instead of using Mayas Lightning effect:

1. do it in POST! :)

In post, you have way more control over position and look.
It is pretty much a safe bet that anything that needs glow, it would be better, and more controllable in post.

2. Create a curve between your lightning start and end points/objects, and attach one of the many lightning Paint FX brushes, and control it from there:)


Also, from the docs regarding the lightning effect:

Light Intensity:
When you create lightning, a light at the center of the lightning is also created, which casts light on surrounding objects. The default intensity of the light is based on the Glow Intensity attribute, and the difference between the Lightning Start and the Lightning End attributes. The Light Intensity attribute multiplies this default intensity. Increase the value of Light Intensity to increase the lighting of the surrounding objects.


Adjust the lightning shader:
In the lightning shader, Color, Incandescence, and Glow Intensity are set by the lightning attributes and cannot be changed in the shader.
You can adjust the other shader attributes.

Lifire 10-09-2005 07:15 PM

Great suggetion! My two main problems with doing this specific project in post (for an animation):

1) Time and work. I would need to keyframe the lightning positions as well as a layer mask for when other objects would cover it up.

2) I would lose the light and color that it casts on other objects.

So I'll test the paint FX.

What's odd though, is that if I reopen my completed model and then add another plane with the background I have been testing, it renders the lightning in front of it just fine... after I move the plane and change my camera view, it seems to intensify the glow, which doesn't make much sense, so I have no explanation for the changes.

Maybe there is some light linking I can do to turn off the light and reflections the plane with the background receives from the lightning light node?

Edit: Tested the paint FX and it doesn't want to make the curve paintable. Also, are the only lightning brushes in the electric folder?

ragecgi 10-09-2005 08:29 PM

My responses are below your questions:

Quote:

1) I would need to keyframe the lightning positions as well as a layer mask for when other objects would cover it up.
Yup, I understand:)
Quote:

2) I would lose the light and color that it casts on other objects.
Well, like you say below, you could create another light with the same color and link it to the Intensity-Out and RGB-out of the lightning light, and use light linking so it only affects your chosen objects.
Quote:

...after I move the plane and change my camera view, it seems to intensify the glow, which doesn't make much sense, so I have no explanation for the changes.
Weird, it migh be a distance to camera-normal issue... not sure..
Quote:

Maybe there is some light linking I can do to turn off the light and reflections the plane with the background receives from the lightning light node?
Yep, I would try that if you aren't comfortable with doing this in a 3d compositor where you can control light color on only your object layers.
Quote:

...Tested the paint FX and it doesn't want to make the curve paintable.
That is because the default lightning effect "bolt" is not a curve persay, it is an extruded softbody, and therefore with its dynamic connections, is not accepting your command to be paintable.
...it should still work tho... weird...
Quote:

Also, are the only lightning brushes in the electric folder?
Yes.
You can tweak them to make them look, and act the way you want, as well as animate the control curve for more interesting effects as well.

ragecgi 11-09-2005 03:18 AM

Also, just "in case" you wanted a BASIC step-by-step on doing lightning/electricity/arcing effects in Post (specificly AE), here is a post tutorial for ya regarding this:

http://aftereffects.digitalmedianet....e.jsp?id=31296

Lifire 11-09-2005 05:12 AM

"That is because the default lightning effect "bolt" is not a curve persay, it is an extruded softbody, and therefore with its dynamic connections, is not accepting your command to be paintable.
...it should still work tho... weird..."

It won't let me because the curve is not a nurbs or polygon object.

I don't know if I completely understood what you suggested with paint FX. Are we talking about lightning effects or the electric brushes? The burshes have to be painted on a nurbs or polygon surface, which a curve is not, and you can't make it a paintable object. Please specify further :)

Thanks for the help. I'm sure I could do this in AE with no problems, but I just think it would be quicker and more efficient for this short clip just to do light linking, but I don't know how to go about that. I guess I'll research that later. I'm fairly new to maya, but I've only played around with modeling before. I have never really learned about lights, rendering, or effects, that's why I have all the "newb" questions.

ragecgi 11-09-2005 08:02 AM

No problem:)

Also, just fyi for future reference:

You can manually attach brushes to existing CV or EP curves, in effect, turning the curves into Paint Effects strokes. This is a convenient way to convert existing curves into strokes. Laying the stroke path using a curve may also give you better control over the stroke path (for example, if you want a single stroke to wrap continuously around a 3D object).


To attach a brush to curves do one of the following:

-Select the brush preset you want to apply to the curves, such as a lightning brush:)

-or-

Get brush settings from an existing stroke. (Select the stroke and select Paint Effects > Get Settings from Selected Stroke.)


Then, modify the brush attributes, if necessary (Paint Effects > Template Brush Settings or use the Ctrl-b (IRIX, Linux and Windows) or Control-b (Mac OS X) hotkey combination).

NOTE:
For information on modifying brush attributes, see "Define template brush settings" in the docs:)


Then:
Select the curves you want to attach a brush to.
Select Paint Effects > Curve Utilities > Attach Brush to Curves.

Done! Easy as pie:)

Good luck!

Lifire 11-09-2005 08:07 AM

Ah, much appreciated :attn:

I'll have some fun with those later.


All times are GMT. The time now is 10:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018