Synopsys 2012. 1 Introduction to LightTools, “Task Lighting”. Walkthrough
Example. • This is an example of modeling a task lighting system in LightTools.
You.
4/26/2012
Building and Simulating a Task Lighting Model in LightTools
© Synopsys 2012
1 Introduction to LightTools, “Task Lighting”
Walkthrough Example • This is an example of modeling a task lighting system in LightTools. You will follow along with the instructor. The example will make you familiar with most basic LightTools features and the user interface (UI).
© Synopsys 2012
Goals: Get familiar with basic controls and settings Import CAD geometry Set surface properties and finishes Add light sources Add receivers Simulate the system performance Generate a photorealistic rendering of the lit system
2 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 1 Copyright © 2012 Synopsys, Inc.
1
4/26/2012
Walkthrough 1
2
Import Geometry
Set Surface Properties
6
3
5
Add Sources
4 Add Receivers and Run Simulation
Photoreal Rendering (lit) © Synopsys 2012
Photoreal Rendering (unlit)
3 Introduction to LightTools, “Task Lighting”
Importing Geometry • Go to File > Import > STEP • Using the file dialog box, locate the “Task Lighting.step” in the “Introduction to LightTools\ WorkshopFiles” folder WorkshopFiles • Accept default options in the data exchange dialog, click OK • Press Fit icon on toolbar
© Synopsys 2012
The base model is supplied as a STEP file. You need to use the STEP data exchange option to import the model into LightTools. g Data Import commands are located under the “File” menu
4 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 2 Copyright © 2012 Synopsys, Inc.
2
4/26/2012
Repair Geometry • Select all the imported parts (Edit > Select All) and use Repair to heal ea tthe e geo geometry et y
Default repair operation attempts to do the following Substitute analytic surfaces for splines Fill gaps Combine adjacent surfaces into a continuous surface
Repair © Synopsys 2012
5 Introduction to LightTools, “Task Lighting”
User Interface: Tabbed Views Views appear full size on separate tabs; left-click on tab and drag to reorder tabs
Dialog boxes appear in separate windows, and can move outside of the main LightTools window Autohide window control OFF: full window remains always in front ON: window rolls up p to title bar only unless cursor is on top
© Synopsys 2012
6 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 3 Copyright © 2012 Synopsys, Inc.
3
4/26/2012
User Interface: Floating Views Select Tools > Options, Layout tab (or Window > Floating Views) for resizable view windows
© Synopsys 2012
7 Introduction to LightTools, “Task Lighting”
Viewing and Setting Units •
Zoom (Mouse Wheel) and Rotate (Right Mouse Button + ) the model with the mouse. You can also use Zoom buttons and Alignment buttons on the toolbar
Zoom
•
Align
The STEP model was created with units of “Millimeters”. Go to Edit > Preferences, General Preferences > System and confirm that the current LightTools are set to “Millimeters.”
© Synopsys 2012
Preferences allow you to change the default system settings such as units, optical properties, and view parameters. After changing the preferences you can retain them for future models by saving them. Right click to choose the Save option.
8 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 4 Copyright © 2012 Synopsys, Inc.
4
4/26/2012
Rename Objects • Identify each object by selecting it in the 3D View. Rename as shown in the picture. The default names during data exchange are arbitrary. Box_R MWFrame Box_L Microwave
The name of an object is unique in LightTools, and it is used to identify the object graphically and programmatically (macro). Select names so that you can easily identify each object in the model. Right-Click in the System Navigator to rename an object
BackWall
Base
© Synopsys 2012
9 Introduction to LightTools, “Task Lighting”
Surface Properties • Assign basic optical properties for the geometry. The picture shows the property assigned for each surface important for the simulation i l ti • Settings shown on next slide Absorber (Optical)
Surface Properties for objects can be set using the Optical Property Manager An optical property can be shared by many zones Optical properties are defined for zones, which are part of a given surface. The BareSurface is the default zone for any surface. Additional zones can be added using property zones
Use the right-click menu to assign optical properties for a given property Mirror
Lambertian Scatter (Diffuse) © Synopsys 2012
10 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 5 Copyright © 2012 Synopsys, Inc.
5
4/26/2012
Optical Property Manager - 1 • Use Edit>Optical Properties to access optical property manager
© Synopsys 2012
11 Introduction to LightTools, “Task Lighting”
Optical Property Manager - 2 • Use Optical Properties tab to define the property you want
The number in parenthesis (n) indicates the number of surfaces using this optical property
© Synopsys 2012
12 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 6 Copyright © 2012 Synopsys, Inc.
6
4/26/2012
Optical Property Manager - 3 • Usage tab shows all zones using a given property • Use sub selection to reassign
Example: Change all “Cylinder” surfaces to a different property “Mirror”
© Synopsys 2012
13 Introduction to LightTools, “Task Lighting”
Optical Property Manager - 4 • Color tab allows you to define custom colors for the optical property
Use View>Surface Color>By Optical Property to switch from default rendering mode (By Refract Mode)
© Synopsys 2012
14 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 7 Copyright © 2012 Synopsys, Inc.
7
4/26/2012
Create Optical Properties • Create 3 new optical properties and assign their properties
© Synopsys 2012
15 Introduction to LightTools, “Task Lighting”
Details for Each Property
Absorber Mirror (5%)
Diffuser (40%) © Synopsys 2012
16 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 8 Copyright © 2012 Synopsys, Inc.
8
4/26/2012
Assign Properties to Objects • For multiple surfaces/zones, use right-click menu • Repeat property assignment for other surfaces/zones
You can also assign optical properties through the properties dialog box
© Synopsys 2012
17 Introduction to LightTools, “Task Lighting”
Model Rendering
View>Surface C l >B Optical Color>By O ti l Property (use your own colors)
© Synopsys 2012
View>Surface C l >B R Color>By Refract f t Mode (Fixed)
18 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 9 Copyright © 2012 Synopsys, Inc.
9
4/26/2012
Hide the Geometry • Before adding the LED we will hide temporarily hide the geometry • In the Navigation g Tree select all the geometry • Right-click and select Hide > All
© Synopsys 2012
The Hide function allows you to keep the selected geometry from being displayed in the 3D Design View Th hidden The hidd geometry t still till participates in all ray tracing The icon in the Navigation Tree is shown in grey for any hidden geometry On the Edit menu you can find controls to Show All and Swap Hidden/ Visible The Hide control is in addition to any Layer visibility settings
19 Introduction to LightTools, “Task Lighting”
Light Sources •
We will use 3 LEDs to illuminate the model – – – – –
•
Manufacturer: OSRAM Model LUW-W5AM (Golden DRAGON plus) Color: White Lumens: 100.5 CRI: 80
This LED model is available in the LightTools LED Library (Tools > LED Library)
LEDs will be placed here
© Synopsys 2012
LED Library provides hundreds of LED models from various vendors It allows you to use the LED model in various modes Geometry Only Geometry + Apodization Geometry + Ray Data
Note: the default ray data file has only 5000 rays. If you need the full ray set then you need to download the ray file from the vendor vendor. For this exercise we will use the geometry + apodization mode
20 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 10 Copyright © 2012 Synopsys, Inc.
10
4/26/2012
Select LED • We will load the LED model from the library and make 2 copies to create additional sources
© Synopsys 2012
When you click Create LED the library will add the LED model to the 3D Design The default location of the LED will be X=Y=Z=0 (i.e., global origin) The geometry is non-traceable Units = mm LED is created as a group of multiple objects
21 Introduction to LightTools, “Task Lighting”
Examine LED • Wait for the LED Library to finish adding the LED • Close the LED Library • Use the Fit button on the Tool Bar to zoom in on the LED
© Synopsys 2012
22 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 11 Copyright © 2012 Synopsys, Inc.
11
4/26/2012
Copy the LED • Zoom the 3D Design View out slightly using the mouse wheel • In the Navigation Tree select the newly added LED • On the Button Palette select Modifying > Editing > Copy • Click in the 3D Design View to place the copy of the LED near the original • Repeat the copy procedure to create a total of three LEDs © Synopsys 2012
23 Introduction to LightTools, “Task Lighting”
Multi-select the LEDs • In the Navigation Tree -click to select all three LEDs • In the Tool Bar click the Info button to open the Properties box with all three LEDs selected in the tree
© Synopsys 2012
Adding more than one entity to the Properties Dialog Box tree can be very helpful when editing multiple lti l objects bj t Entities can be added to an existing Properties box by -clicking on the entity in the Navigation Tree
24 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 12 Copyright © 2012 Synopsys, Inc.
12
4/26/2012
Set the LED Coordinates • In the Properties Dialog Box Tree -click to select all three LED groups • On the Coordinates tab enter:
The values for all the selected entries are set at the same time Only works for identical property tabs Right-clicking on a field will bring up a list of current values that can be selected
– X = -304.8 – Y = 87.15 – Alpha = -90
© Synopsys 2012
25 Introduction to LightTools, “Task Lighting”
Set the Z Offset • In the Property Dialog Box Navigation Tree select each LED group in turn and set the values to: – Z = -190 – Z=0 – Z = 190
• Click OK to save the changes and close the Property Dialog Box
© Synopsys 2012
26 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 13 Copyright © 2012 Synopsys, Inc.
13
4/26/2012
Check the LED Position • Select the Edit > Show All menu item • Select the View > Render Mode > Wireframe menu item • On the Tool Bar select the UCSYZView button to orient the 3D Design View • Verify that the LEDs have been placed properly • Save the model as Task Lighting with LEDs.lts
© Synopsys 2012
27 Introduction to LightTools, “Task Lighting”
Add a Receiver •
•
•
•
In order to run a simulation we need at least one source and a receiver Select View Vie > Render Mode > Translucent Select the center surface on the base, right-click for the pop up menu, and select Add Receiver Open the receiver property box and set the units to Photometric © Synopsys 2012
Surface receivers are always attached to a surface or a dummy plane Surface receivers can calculate the following: Illuminance Intensity Luminance (optional) Color (optional)
Each type of calculated data is shown h on a “Mesh” (a 2D grid) Units can be Photometric (default) or Radiometric
28 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 14 Copyright © 2012 Synopsys, Inc.
14
4/26/2012
Run Simulation • Use Ray Trace > Simulation Input to set the number of rays to 100,000
The simulation can run in the forward and backward directions. The forward simulation is more common
– Click Begin g Forward Simulation
© Synopsys 2012
29 Introduction to LightTools, “Task Lighting”
Illuminance Output •
•
•
Results tab for the Illuminance Mesh shows a summary of the illuminance output Mesh Data tab provides the row data for each bin on the mesh The X and Y axes on the raster chart are aligned with the X and Y coordinates of the surface
Analysis > Illuminance Display > Raster Chart © Synopsys 2012
30 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 15 Copyright © 2012 Synopsys, Inc.
15
4/26/2012
Photoreal View • You can generate a photorealistic view of the model to show its appearance (a picture of the model) • This can be a lit (LEDs turned on) or unlit view of the model • We need to define the “appearance” of each surface
© Synopsys 2012
Photoreal settings are only applicable to the photoreal view The data you see for the regular forward/backward simulation is not affected ff t d b by th these settings tti All surface settings are defined on the Finish tab
31 Introduction to LightTools, “Task Lighting”
Creating a Photoreal View • In 3D View, select Photoreal > New Photoreal View – This will open a new photoreal view with the default camera angle
Use CTRL+Right Mouse to rotate, align, and zoom the view (same as the 3D View)
Repaint View
Stop Rendering
Lit Render ON/OFF
© Synopsys 2012
Run Lit Simulation
32 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 16 Copyright © 2012 Synopsys, Inc.
16
4/26/2012
Selecting a Finish •
Select Box_L, Box_R, and MWFrame using CTRL+Left-Click in the System Navigator (use SHIFT+ Left-Click if you’re selecting in the 3D View)
•
Right-Click Ri ht Cli k and d select l t Edit All Descendents > Surfaces
•
On the Finish tab, select Library Finishes > Nature > Wood > Varnished > Varnished mahogany and double-click to add it to the model finishes, and press "Apply" to use it for the selected surfaces
© Synopsys 2012
Model Finishes are the currently active finishes When you apply a Library Finish, it will move to the Model Finishes
33 Introduction to LightTools, “Task Lighting”
Repeat Finish Selection • Select the BackWall and Base, right-click and select Edit All Descendents > Surfaces • On Finish tab, choose Library Finishes and navigate to Nature > Rocks and Minerals > Granite > Hornblende granite • Double-click on Hornblende granite to add finish to the model, and press "Apply" to use it for the selected surfaces
© Synopsys 2012
34 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 17 Copyright © 2012 Synopsys, Inc.
17
4/26/2012
Apply Finish to Individual Surfaces Front Surface (Microwave )
You only need to set the finishes of the surfaces that are visible in the desired view
p Surface Top (Base )
• In 3D View, select an individual surface for a specific finish • FrontSurface of Microwave – Crystal and Glass > Refractive > Gray Glass
• TopSurface of Base – Ceramics > Porcelain > Porcelain – Color > Black
© Synopsys 2012
35 Introduction to LightTools, “Task Lighting”
Photoreal View Settings • Set the background to none (black) – View > View Preferences… – Repaint the Photoreal View – Select View > Contrast > Equalizing
1
2
3
© Synopsys 2012
36 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 18 Copyright © 2012 Synopsys, Inc.
18
4/26/2012
Unlit Photoreal View Photoreal View is sensitive to the display settings on your computer In order to create the best rendering you must adjust the View > Contrast > Tone/Contrast settings as appropriate
Tone/Contrast Settings © Synopsys 2012
37 Introduction to LightTools, “Task Lighting”
Lit Photoreal Simulation • Using PhotoReal > Lit Simulation Input… set the Total Rays to Trace = 1 000 000 1,000,000 • Click Begin Lit Simulation
Lit Simulation collects data for photoreal rendering on each surface. It will also update the regular simulation data (such as charts). The regular simulation does not collect photoreal data Typically you need a large number of rays in order to generate photoreal views with high fidelity
© Synopsys 2012
38 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 19 Copyright © 2012 Synopsys, Inc.
19
4/26/2012
Lit Photoreal View • In the Photoreal View click LitOn to turn the model sources on
By default the photoreal view is generated with some ambient light level in order to be able to see objects You need to balance the ambient and model lighting g g when yyou enable lit rendering There are Studio Lights you can add to your model for different lighting effects
Point Light Spot Light Distant Light
© Synopsys 2012
39 Introduction to LightTools, “Task Lighting”
Getting Help • There are multiple ways to access Help • •
• •
Help > Contents and Index (HTML) Help > Document Library (PDF) S h across allll d t iin th ith Search documents the lib library with » or What’s This? For command and Toolbar buttons, using HTML help Dialog level help (HTML)
© Synopsys 2012
40 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 20 Copyright © 2012 Synopsys, Inc.
20
4/26/2012
Workshop 1: Flashlight • A simple flashlight model will be used as a sample system for photorealistic rendering.
Facetted F tt d reflector; fl t 0.85 0 85° Gaussian G i scatterer Bulb with cylinder source 3λ representation of a 3500K blackbody source Window Target: reflective Lambertian scatterer
© Synopsys 2012
41 Introduction to LightTools, “Task Lighting”
Workshop 1: Create Photoreal View • Open supplied file FlashlightPRR.1.lts • Open a Photoreal View (Photoreal > New Photoreal View) • Add scenery b by opening i the h Vi View P Preferences f ffor the h Photoreal window. On the Scenery tab, select either a Base or a Room and apply to model. Example: Tiled Room Unlit appearance
© Synopsys 2012
42 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 21 Copyright © 2012 Synopsys, Inc.
21
4/26/2012
Workshop 1: Lit Rendering •
•
•
Run a photoreal simulation of 100,000 rays – Photoreal > Lit Simulation Input… to set the rays – Photoreal > Begin Lit Simulation View the lit target in the Photoreal window – Running the lit rendering disables the camera light; only the light from the LightTools source is visible Source spectrum is 3500K Tungsten – Use Saturation to adjust color of output (View > Contrast > Tone/Contrast)
Saturation=1.0 © Synopsys 2012
Saturation=0.0
43 Introduction to LightTools, “Task Lighting”
Workshop 1: Add Studio Light • Add a point light above the flashlight and update the photoreal view – Photoreal > Place Point Light, on command line enter XYZ 0,600,600 Note: you don’t need to repeat the simulation to update the lit appearance
© Synopsys 2012
44 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 22 Copyright © 2012 Synopsys, Inc.
22
4/26/2012
Workshop 1: Change Surface Finish • Currently, the surface finish on the flashlight body is the Default Mechanical Absorber. • Select a different surface finish from the library and apply it to the surfaces of the flashlight body.
© Synopsys 2012
45 Introduction to LightTools, “Task Lighting”
Workshop 1: Change Surface Finish (2) • Example: – Select FlashlightBody, right click in 3D View and Edit All Selected > Surfaces – Click Cli k on Finish Fi i h tab, t b select l t Library Lib Finishes, Fi i h M t l > Metals Aluminum > Aluminum and double click to add to Model Finishes tab – On Model Finishes tab, change color as desired – Repaint the photoreal view to see the new finish – In this case, you don’t need to repeat the simulation since only the studio lights interact with the body of the flashlight © Synopsys 2012
46 Introduction to LightTools, “Task Lighting”
Introduction to LightTools Training Task Lighting Page 23 Copyright © 2012 Synopsys, Inc.
23