Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 19-12-2002, 04:42 PM   #31
ragecgi
Super Moderator
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Thanks: 0
Thanked 13 Times in 12 Posts
Default

I'll take a look see tonight after I see Lord of the Rings with my girl

Could you post the expressions for us, and maybe a description of what they do, and why you chose to use them?

Thanks!!!
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote
Old 19-12-2002, 04:42 PM   #32
Speedy
Registered User
 
Speedy's Avatar
 
Join Date: Dec 2002
Location: St. Louis
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is anybody good at expressions and Particles? I can give this to you to see if you can fix it up at all, but if you do fix it up, Can I have a copy of it to? Thanks,
Brian
Speedy is offline   Reply With Quote
Old 19-12-2002, 04:44 PM   #33
Speedy
Registered User
 
Speedy's Avatar
 
Join Date: Dec 2002
Location: St. Louis
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Default

all the expresions do is control the scalePP by using a simple SIN Function nothing Fancy. Don't have the scene available right now (I am at work) so I Will post it sometime around Lunch time,
Thanks,
Brian
Speedy is offline   Reply With Quote
Old 19-12-2002, 04:51 PM   #34
ragecgi
Super Moderator
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Thanks: 0
Thanked 13 Times in 12 Posts
Default

Sorry for the double post. I'm on a mac, and it's driving me INSANE!!!

(dam macs!!! Just do what I ask!! Is that so wrong??? hehe....)

anyway..

Sure, if I can grab your file. I'll post a copy of any changes for ya
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote
Old 19-12-2002, 04:52 PM   #35
ragecgi
Super Moderator
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Thanks: 0
Thanked 13 Times in 12 Posts
Default

I doubt I'll change anything, I'm just curious is all
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote
Old 19-12-2002, 04:54 PM   #36
Speedy
Registered User
 
Speedy's Avatar
 
Join Date: Dec 2002
Location: St. Louis
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sweet. I will post it in a bit (if I can find the file at work), sometime around lunch time, if not it will have to wait until tonight. THanks,
Brian
Speedy is offline   Reply With Quote
Old 20-12-2002, 01:20 PM   #37
brian_ellebracht
Registered User
 
brian_ellebracht's Avatar
 
Join Date: Oct 2002
Location: St. louis Mo
Posts: 1,580
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Hey, Well here is my Particle emitter, particle trail w/expression, and a test bullet. If you get it to work any better or make any changes please let me know I would love to have a copy of it. THanks,
Brian
brian_ellebracht is offline   Reply With Quote
Old 20-12-2002, 01:50 PM   #38
DukerX
Subscriber
 
DukerX's Avatar
 
Join Date: Nov 2002
Location: Sandnes, Norway
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fading out

Anyone got a solution for the bullet-trail not fading away?

In the original (The Matrix), the bullet trails fade away, and seems to dissipate (is that the right word??) into thin air... Just vanishing, wich of course is natural (???), because the shockwave would loose it's energy.

Still I can imagine just one way to acheive this (in just one render pass) and that would be setting the refraction and reflection index on a PerParticle basic.
The only way I can see that happen, is having... like 73 different materials, and make a script that changes the material on just a single particle, like you have "Matrix-Shader001" to "MatrixShade073" set up with decreasing/increasing refraction and reflection index and make a script or something that uses the agePP to change the particle material/shader.
-Code-sample that would work in VisualBawsic:
[Particle(index).material=MatrixShader & particle(index).age]
If the .age attribute is 16, this would make the particle(X) receive the shader/material "MatrixShader016", wich have a lower refraction and reflection index than "MatrixShader015".

I don't know too much about MEL and such but it would work in Visual Basic


Another method would be rendering just the bullet-trails, in one pass, then make a copy of the particles, and aply a gradient map (rgbPP), and hardware-render them, as the second pass, and then, rendering the scene, and composite them toghrether using the hardware-rendered gradient (rgbPP) as the alpha-channel for mixing the bullet-trail and the "beauty-pass" togheter.
This would make the bullet-trail fade away, but not as nice as adjusting the refraction index individually (based on agePP) on each particle.


Any coments on the previously mentioned methodes, or MEL scripts that could work in the same fashion as my VB-thingy would be aprechiated
-DX-

Last edited by DukerX : 20-12-2002 at 02:09 PM.
DukerX is offline   Reply With Quote
Old 20-12-2002, 02:54 PM   #39
brian_ellebracht
Registered User
 
brian_ellebracht's Avatar
 
Join Date: Oct 2002
Location: St. louis Mo
Posts: 1,580
Thanks: 0
Thanked 8 Times in 8 Posts
Default

would you be able to just ad a mask in after effects, (with a feather) to make it look like it fades away? But, that would require more than one pass, an edditional pass for each bullet trail.
brian_ellebracht is offline   Reply With Quote
Old 20-12-2002, 03:38 PM   #40
DukerX
Subscriber
 
DukerX's Avatar
 
Join Date: Nov 2002
Location: Sandnes, Norway
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian:
You're right. It has to be more than one pass, but there's no need for a pass for each bullet.
Duplicationg the particles, and switching to hardware-rendered particles, and then add a grayscale ramp to the rgbPP would make a perfect 2.nd transparency mask for compositting it. This mask should be used in adittion to the Alpha-channel in the bullet-trail pass (all the other geometry is switched off, only enabled in refraction and reflection, so you get a black scene render with only the bullet-trail visible, but the refraction and reflection of the scene should still be visible in the bullet-trail.
__________________
-DX-
DukerX is offline   Reply With Quote
Old 20-12-2002, 04:13 PM   #41
brian_ellebracht
Registered User
 
brian_ellebracht's Avatar
 
Join Date: Oct 2002
Location: St. louis Mo
Posts: 1,580
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I understand what you are saying. But.... Why couldn't you make a mask in Aftereffects (or shake, Make it have a large Feather, and then add it to the frames (rgb) that you export from Maya, So, that should mask everything, including the reflections/refractions? Not sure, sorry I am a little confused...
brian_ellebracht is offline   Reply With Quote
Old 10-02-2003, 12:04 AM   #42
Trimeister
Subscriber
 
Join Date: Jan 2003
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Ragecgi for the shader. It works great.
Trimeister is offline   Reply With Quote
Old 12-06-2003, 11:03 PM   #43
ragecgi
Super Moderator
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Thanks: 0
Thanked 13 Times in 12 Posts
Default Re: Fading out

Originally posted by DukerX
Anyone got a solution for the bullet-trail not fading away?

In the original (The Matrix), the bullet trails fade away, and seems to dissipate (is that the right word??) into thin air... because the shockwave would loose it's energy.

.....Any coments on the previously mentioned methodes, or MEL scripts that could work in the same fashion as my VB-thingy would be aprechiated
-DX-
MAN, this was a long time ago, and I'm sorry I didn't see this untill now....

A few ways to make the particles fade/dissipate would be:

1. You could "bake" your trail(s) particle animation,
render out your "beauty/color pass",
then go back and apply a rgbPP attribute to them by:
clicking the bigger "color" tab in the particle objects' attribute editor and choosing "per particle".
In the newly created rgbPP slot, right-click and create a ramp for the particle color.
By default, the ramp cycles through the colors depending on particle age.
So if you make your ramp go from white to grey to black, what will happen, is that you will see your particles start white when they are born, then go to black as they die.

So the reason this is cool, is that this sequence can act as your ALPHA for your beauty/color pass!

So now you can just tweak the ramp so the particles fade QUICKLY to black at the end of it's lifespan,
thus creating an ALPHA that when combined with your color sequence,
will make them look as if they "dissipate and/or fade" out at the last minute


2. Another, less dynamicly controllable way would be to create an animated alpha map for your TRAIL shader, keyed to fade at the appropriate time
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote
Old 19-07-2003, 04:35 AM   #44
jikalx
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not familiar with maya expressions. Can anybody tell me the sin expression to generate different sized disks from the emitter? Thanks.
jikalx is offline   Reply With Quote
Old 19-07-2003, 08:49 AM   #45
ragecgi
Super Moderator
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Thanks: 0
Thanked 13 Times in 12 Posts
Default

Try this in a creation expression:

NOTE: you MUST add a radiusPP attribute to your particleShape, and apply this expression to that for this to work as you intend

The BOLD one is the one to use first, as it is what you asked for.
The rest are variants to try for fun

particleShape1.radiusPP = rand(.5,1)

OR

particleShape1.radiusPP = sin(time)

OR

particleShape1.radiusPP = sin(age)

Check out the "EXPRESSIONS" sticky thread in this area as well for more expressions to have fun with, and learn from
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stepping effect in fluid gubar Dynamics & Special Effects 2 03-12-2010 10:42 PM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.