Creating runway lighiting effects
Well its time for a cool Particle function guys...!
A linstep function is used in conjunction with a ramp to control the rgbPP attribute of the particles color. The particles appear to "turn on" sequentially from front to back. An offset is added to the particle's age to create this effect. creation expression: $pos=particleShape1.position; particleShape1.lightOffset= ($pos.z+20); -------------------- Runtime expression: $myAge=particleShape1.age-(particleShape1.lightOffset*.25); particleShape1.rgbVPP=linstep (2,3,$myAge); enjoying...! |
Quote:
If you have an expression for it ... I love the thread. tathu |
I personaly would use blendshapes for that, but in combination with that, you might also wanna try doing it with SetDriven Keys as well maybe.
I think Mike Mckinley or even Danny Ngan know of a way to do this, so they might be better people to ask:) Thanks! Good luck! |
Thanks for your response so fast, and sorry if I do harass the thread.
:( |
No prob!
|
well if u still want to use expression then u can ......program ur geometry e.g
like: if (your foot touches ground ) the ground should effect; else if (if its leaving the surface) the ground should effect; i think u'll not be able to ...produce realistic effects with only expressions like Rage said blendshape could help....and i think that there will be an attribute that can be keyable and can be controlled through expressions...so...give a try...u know...expression makes your scene clean from raw data that take up extra..resourse cause they excute when conditions are met...... well will be putting....expression for same type of effect soon...which produces swells in softbodies....it will be helpfull to produce perfect result...for ur scene enjoy .... |
1 Attachment(s)
A noise function is used to control the Y position of a string of particles. Arithmetic operators are used to control the amplitude, frequency and offset of the function.
1. Create an emitter with as desired parameters...... 2. Create Custom Attributes as follows a. tornodoRadius b. tornodoTwist c. tornodoRadiusMult now let code: creation Expression particleShape1.tornadoRadius=rand (.75,1.25); particleShape1.toranadoTwist=rand (1,3); particleShape1.position=<<1000,0,0>>; **** Runtime Expression vector $pos=particleShape1.position; float $radius=particleShape1.tornadoRadius*particleShape 1.tornadoRadiusMult; float $speed=time*particleShape1.toranadoTwist; float $noise=noise((time*.3)+(particleShape1.particleId* .01)); particleShape1.position=<<($radius*(sin($speed+par ticleShape1.particleId)))+$noise ,$pos.y+.1, ($radius*(cos($speed+particleShape1.particleId)))+ $noise>>; **** and third create a ramp on tornodoRadiusMult custom attribute this ramp will be used to control its hollowness from top or bottom..... adding source file.........check it out...! enjoying.......! :beer: |
hey guys, I've decided to join in the fun as well :D.
Let's see, for a spotlight, you attach the color to a water map, edit it as you like and then for the expression (for your new water1 texture): water1.waveTime = time*0.2 and water1.waveVelocity = (cos(time)+1)/2 If you put a nice fog to it, and color the water map right, you could have a cool spotlight for underwater (works very well with www.thegnomonworkshop.com 's fog light,) or the illusion of the sunlight going trough the leaves of trees when you move under them. water1.waveTime = time*0.2 makes sure the wave texture 'moves' to the left ( because it's endless ), and water1.waveVelocity = (cos(time)+1)/2 makes sure the number stays between the 0 and 1, so that when spotlighted, it increases and decreases, just as if waves take away some sunlight :). I hope I helped! :D:bgreen: |
hey thats....good
this means we all are learning.....more n more..
|
Speak for yourself... the more expressions I seem to learn, the more I forget about the rest of the world :p :D :beer: :bgreen: It's just like :beer: , you learn to drink more and you forget more about the rest while doing that :D :beer:
|
thats kool
|
Hi mind-raper!
I have just test your tornado expressions and your tornado scene. Both of them are cool! Thanks for your two lessons in one post. |
found a usefull bit of information on Highend while i was looking for my flower prb hope it help....
Q: I have a fast moving object going past some paintFX trees, and I want the effect of wind created by it's passage to cause realistic swaying and wind blowing the branches around. A: If you want to simply push the trees out of the way of the fast moving object, then create a small curve, attach it to your strokes(set control curves), and make the curveAttract negative with a suitable curveMaxDist on your brushes. Group the control curve with your moving object. For a turbulent wake I would generally animate the turbulence intensity on your brushes, staggering this animation based on brush location. Rather than using control curves, the function \scripts\paintEffects\paintCollideFunc.mel could also be modified to work. To make paint effects collide with the camera do the following: Copy this function to your local scripts directory before modifying it. You may wish to rename both the filename and the function inside. Instead of using the distance to the origin that it currently computes modify it to use the following distance: float $c[3] = `getAttr persp.translate`; float $dist = $sX * $c[0] + $sY * $c[1] + $sZ * $c[2]; if( $dist > 0 ) { $dist = sqrt( $dist ); } This is the distance from the camera to the current segment point( providing that you have not transformed the camera as a grouped node). You need to add this modified paintCollideFunc to the runtimeFunc on all the brushes you wish to collide with(simply put the function in your scripts directory and enter the function name in the runtimeFunc field on the brush). Note that the wireframe redraw of paint effects is substantially slower when using this function. |
particleShape1.rgbPP = rand(<<.3,5,7>>,<<.5,7,1>> );
tahnks mind_raper! |
no problemo U r Welcome !
|
All times are GMT. The time now is 08:22 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018