Alex had the question, but it may be useful to others.
Below is the link to a maya script which generates a series of grayscale maps which display the intensity of light on the surface over time.
lightMap script
To use it:
(Assuming you already have the lights animated)
copy the entire script and execute it (ctrl+enter)
First make a material which calculates the light intensity by running from the script editor:
surfLum;
this will make a new lambert with the right connections to it to calculate.
apply this material to the surface you want to calculate for.
The other procedure calculates the lighting over whatever range of frames you specify. The format of it is
calcLight(start frame, end frame)
For example if you wanted to calculate the maps from frame 1 to frame 50:
select the surface
shift select the material
calcLight(1,50);
it saves the maps into your project directory, or if you have hypershade open you can see them all.
Thursday, 28 February 2008
paint Example
Hi everyone,
there were a couple of question about "agent painting" last time so I put together a simple example:
paint example
It explains it pretty well in the manual, but basically you need:
a terrain to paint on
a map on the terrain (in this case a blank white image) in tiff format
-the resolution of the image has an effect on how the agent paints as the size is in pixels
To save the map that agents have painted go to File/ Save Terrain Map
there were a couple of question about "agent painting" last time so I put together a simple example:
paint example
It explains it pretty well in the manual, but basically you need:
a terrain to paint on
a map on the terrain (in this case a blank white image) in tiff format
-the resolution of the image has an effect on how the agent paints as the size is in pixels
To save the map that agents have painted go to File/ Save Terrain Map
Tuesday, 26 February 2008
Just signed up to blogger - testing
My wind response agent, no change since last lesson:
# CDL created with massive v3.0.1
units m
object wind Respond
id 1
colour 0.000000
angles degrees
render_pass 1 shadowpass velocity visible casts_shadows
render_pass 2 beauty velocity visible casts_shadows
bounding_box_tolerance 0
collisions normal
dynamics
angle spring 500.000000
angle dampen 0.000000
angle friction 0.100000
collision spring 1000.000000
collision dampen 100.000000
collision friction 100.000000
CFM 0.000000
ERP 0.200000
ODE ff 1.000000
collision CFM 0.000000
collision ERP 0.200000
collision mu 1.000000
bounce 0.000000
bounce velocity 0.000000
drag 0.000000
gravity 980.000000
steps 1000
end dynamics
segment box
translate 240 520
density 0.01000000
primitive box
size 1.000000 0.200000 0.200000
centre 0.000000 0.000000 0.000000
geometry geo
id 1
translate 240 440
fuzzy input
id 1
name wind.x
translate -400 560
channel wind.x
integrate position
range 0.000000 1.000000
fuzzy output
id 2
name tx
translate -280 560
channel tx
defuzz COM
integrate position
range 0.000000 1.000000
1 input 1
fuzzy input
id 3
name wind.z
translate -400 500
channel wind.z
integrate position
range 0.000000 1.000000
fuzzy output
id 4
name tz
translate -280 500
channel tz
defuzz COM
integrate position
range 0.000000 1.000000
1 input 3
fuzzy output
id 5
name box ry
translate -280 380
channel box:ry
defuzz COM
integrate position
range 0.000000 1.000000
1 input 6
fuzzy input
id 6
name -(atan(wind.z/wind.x))
translate -400 380
channel -(atan(wind.z/wind.x))
integrate position
range 0.000000 1.000000
tree active 0
end object
Hope to combine with two other agents as macros.
# CDL created with massive v3.0.1
units m
object wind Respond
id 1
colour 0.000000
angles degrees
render_pass 1 shadowpass velocity visible casts_shadows
render_pass 2 beauty velocity visible casts_shadows
bounding_box_tolerance 0
collisions normal
dynamics
angle spring 500.000000
angle dampen 0.000000
angle friction 0.100000
collision spring 1000.000000
collision dampen 100.000000
collision friction 100.000000
CFM 0.000000
ERP 0.200000
ODE ff 1.000000
collision CFM 0.000000
collision ERP 0.200000
collision mu 1.000000
bounce 0.000000
bounce velocity 0.000000
drag 0.000000
gravity 980.000000
steps 1000
end dynamics
segment box
translate 240 520
density 0.01000000
primitive box
size 1.000000 0.200000 0.200000
centre 0.000000 0.000000 0.000000
geometry geo
id 1
translate 240 440
fuzzy input
id 1
name wind.x
translate -400 560
channel wind.x
integrate position
range 0.000000 1.000000
fuzzy output
id 2
name tx
translate -280 560
channel tx
defuzz COM
integrate position
range 0.000000 1.000000
1 input 1
fuzzy input
id 3
name wind.z
translate -400 500
channel wind.z
integrate position
range 0.000000 1.000000
fuzzy output
id 4
name tz
translate -280 500
channel tz
defuzz COM
integrate position
range 0.000000 1.000000
1 input 3
fuzzy output
id 5
name box ry
translate -280 380
channel box:ry
defuzz COM
integrate position
range 0.000000 1.000000
1 input 6
fuzzy input
id 6
name -(atan(wind.z/wind.x))
translate -400 380
channel -(atan(wind.z/wind.x))
integrate position
range 0.000000 1.000000
tree active 0
end object
Hope to combine with two other agents as macros.
Monday, 25 February 2008
object painting
Nick, I think you told me today that it is possible to make objects paint but which one is the video tutorial for that? I just can find the ones for making objects react to the color but not to make them paint... maybe I misunderstood you? Thanks,
Lara
Lara
Monday, 4 February 2008
session 4
Just to let you know that we'll be starting around 10:30 today... sorry for the late notice,
Nick
Nick
Friday, 1 February 2008
Performance issues w/ Mac+Bootcamp
Is anyone else having super-slow playback occuring in the viewport on the Macs?
Seems to happen when I load a terrain file...
Seems to happen when I load a terrain file...
Subscribe to:
Posts (Atom)