SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 19-12-2002, 03: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, 03: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, 03: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, 03: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, 03: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, 03: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, 12: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, 12: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 01:09 PM.
DukerX is offline   Reply With Quote
Old 20-12-2002, 01: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, 02: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, 03: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 09-02-2003, 11:04 PM   #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, 10: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

Quote:
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, 03: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, 07: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.