COMPUTER AIDED ARCHITECTURAL DESIGN
Workshop
13 Notes, Week of November 11 , 2019

V-Ray Grasshopper Animation of Moving Object, Camera and Light (FIRST DRAFT)

This set of workshop notes describes animation object, camera and light through V-Ray.

1, Create three control point cuves for the object path, camera path and light path.

Start by adding the three path curves each one created with control points placed from left to right, or make 3 copies of the same curve.

3 paths

Add a cone with a point on its cental axis on the ground plane.

add cone and origin

Add additional solid objects in the background along the path for visual reference.

background Objects

2. Open Grasshopper. Create a curve parameter for each of the 3 path curves, a brep component and point component for the cone and point, and a brep for the remaining solid objects and make the corresponding connections for the entities in Rhino.

connetion parameters

3. Within Grasshopper, in the "curves" sub-menu, select the evaluate curve component.

eval length component


4. Place one in the canvas window for each of the three curves/

connect eval curve compnents

5. Go to the V-Ray Module within Grasshopper and select the timeline component.

select timeline component

6. Place it on the lower left side of the Canvas window and connect it's output "fraction" the input "L" for each of the three eval components. The fraction is a percentage of the animatino complete from 0 to 1. Notice that a point is generated along each of the three curves accordingly.

connect fraction output port

Add a numerical slider that runs from 2 to 360 frames, set the current value to 180, and plug it into the "Frames" input port of the timeline.

framesSlider

7. Add a vector component from the cone origin point component the cone path eval curve output "P" (point along the curve) output port.

add vector

8. Under the Grasshopper tansform "trns" tab, add a move component to the canvas window and connet its "G" input port tothe ouput port of the cone brep

9. Note that the cone begins to travel along the cone path control path by moving the timeline frame slider.

cone moves

10. Add a light sphere component and connect its input port "Position" to the output port "P" of the eval curve component for the light path control curve.

add light spere

11. Add a camera component and connect its input port "Position" to the output port "P" of the eval curve component for the camera path control curve.

add camera

12. Add a V-Ray material preset (simple material definition) to the Grasshopper Canvass Window.

add material preset

13. Right mosuse button click on the material present component and select the "Show Controls" option.

show Controls

14. The last step reveals the inputs type material "Generic" and defaut swatch color of dark gray.

presets for material

15, Select the color swatch and adjust the color value to off-white as in the dialog below

change color value

16. Now add a V-Ray infinite plane to the canvas window.

add infinite plane

17. Right click on the infinite plane component, and open its "Controls" in which case twi Boolean "True" or "False" Toggles are revealed, and switch both to false.

switch present values.

18. Connect the Material Preset output port named "Mtl" to the corresponding "Mtl" input port of the Infinate Plane.

assignMtl

19. Copy the Material Preset and it's controls to the area of the canvas window adjacent due the "Brep" component for the background objects.

copyMaterial

20. Add a V-Ray Geoemtry component to the right of the "Move" component for the Cone object.

add geo component

21. Connect the "Brep" for the backgrond objects and the "G" output port of the "Move" components the the "G" input port of the "V-Ray" Geometry Component, and add the output "Mtl" port of the "Mtl Preset" component to the "Mtl" input port of the "V-Ray Geometry" component.

connect inputs to VRay Geom Component

22. Add a V-Ray Sunlight Rig System to the upper right of the V-Ray lighting component.

add sunlight rig

23. Connect the V-Ray Light Sphere output to the "Add Lights" input port of the V-Ray Sunlight Rig.

light sphere to sun rig

24. Add a number slider ranging in values from 0.0 to 100.0 with a current value set to 80.0 and connect its output port to the "Intensity" inpurt porf of the "Light Sphere".

adjust intensity

25. Copy the number slider, set the copy slider's value to 0.0, and connect its output port to the "Sun Intensity" input port of the the Sun Rig.

add slider to sun rig

26. Add a V-Ray Render component to the right of the Sun Rig.

add render component

27. Connect the output port of the Sun Rig to the "Light Rig" input port of the "Render" component. Right Click on the render component and show it's controls.

light Rig to Render Componet

28. Change the render component "Mode" to "Production" and connect the V Geo and Infiinite Plane output ports to the "V Geo" input port of the "V-Ray Rendering" component.

connect to render component

29. Connect the cone path output port "P" the the "Camera' compnent "Target" input port.

cone path to cam target

30. In turn connect the "Camera" component "Camera" output port to the "Camera" input port of the render component.

add camera output to render component input

31. Set the frame number to 60. Right mouse click on the Render component and choose the "Render" option to render a single image from the camera's point of view.

start test render

32. Adjust values for "Levels" and review the result.

test render 1

33. Use the "Gumball" too to adjust the camera path as needed to improve the rendered view.

move cam path

34. Re-render the view to see if the adjustment is closer to the view angle and view framing as what you are seeking.

second render test

35. Connect the V-Ray Timeline output port to the V-Ray Render component "Timeline" input port.

36. Double click on render component "Save File" input "control"to select a file type, name (e.g, "mycam.jpg"), and folder location (e.g., "myFrames"). The "jpg" format is recommened for the simplest default format.

File Save Dialog Box

37. Note that the control label has the name of the file "myCam.jpg".

file name

38. Change the "Mode" control from "Interactive" to "Productive", and then right - click on the "Render" componet and select the "Render Animation option to render he animation.

render animation

39. Render and view the resulting animation.

40. Right mouse button click to "Light Sphere" component, use the "Show Controls" tools, and then toggle Boolean control for the "Invisible" property to "True".

make sphere invisible

39. Render and view the resulting animation and note that the sphere is no longer visible.