Design process

Visualizing optical simulation results in RayViz: how to show a system to a client and a team

An optical simulation result is hard to defend when only the person who computed it looks at it. The mechanical team wants to see whether the beam fits in the construction, and the client wants to see whether the system does what was promised. RayViz lets you show ray paths directly on the CAD model, in the SOLIDWORKS environment that everyone knows.

Visualizing optical simulation results in RayViz: how to show a system to a client and a team
Request a quote Start a trial

Different people work on an optical device project: the optical engineer, the mechanical engineer, the product designer, and finally the client or the team that will make the decision. Each of them looks at the same system from a different side. The optical engineer talks about aberrations and irradiance distributions, the mechanical engineer about dimensions and mounts, and the client about whether the product will fulfill its function.

The common language is a picture: where the light goes and what gets in its way. RayViz lets you show it without leaving the CAD environment.

The problem: a result that no one but the author can see

An optical simulation result is usually a set of maps, plots, and numbers. For an optical engineer they are unambiguous, but for a mechanical engineer they only mean that "there is a problem somewhere". To fix it, you need to know which element of the construction causes it.

Typical questions from the mechanical team sound like this:

  • does the beam fit in this housing,
  • is this mount blocking the light,
  • will the bend of the element cause light to escape,
  • what happens if I move this element by a few millimeters.

It is best to answer them on a model the team already knows: the CAD solid.

RayViz: ray tracing in SOLIDWORKS

RayViz is a SOLIDWORKS add-in created by Lambda Research. It is fully integrated with the environment in which designers work, and adds to it the ability to assign optical properties and trace rays.

According to the manufacturer, RayViz lets you:

  • assign optical properties from the TracePro database directly in SOLIDWORKS, saving them as part of the model,
  • define light sources and run ray tracing to see the rays and their paths,
  • use catalogs of LED sources and Gaussian and Lambertian sources with different beam widths,
  • save the SOLIDWORKS model in the TracePro format and open it in TracePro for full analysis.

This way the designer sees the ray paths on their own solid, not on a separate model prepared by someone else.

What RayViz is best suited for

Lambda Research states that RayViz is particularly helpful in the early stages of product design. Example uses are:

Verifying the beam path. Checking whether light travels as planned, from the source to the target.

Checking vignetting. Checking whether mechanical elements block part of the beam.

Detecting light escaping from a light guide. Checking whether, at the bends of a light guide, light leaves the guide.

These are questions to which an answer can be obtained quickly and without a full energy analysis, and their outcome affects the construction. The earlier a problem is noticed, the cheaper it is to fix.

Showing it to the client: from the beam to a decision

When talking to a client or a board, simplicity works best. Showing ray paths on the product model lets you answer the question "how does it work" without explaining optical concepts. You can see where the light comes from, where it goes, and where it ends up.

When a more polished visualization is needed, for example for a sales presentation, you can use TracePro, which, according to Lambda Research, offers photorealistic rendering of the model. RayViz serves here as a quick first stage, and TracePro as the stage of full analysis and presentation.

From RayViz to TracePro

RayViz and TracePro do not compete but complement each other. The work path can look like this:

  1. The designer assigns optical properties and checks the ray paths in SOLIDWORKS (RayViz).
  2. After the initial verification, they save the model in the TracePro format.
  3. The optical engineer opens the model in TracePro and runs a full analysis: energy distributions, stray light, reports.
  4. The conclusions return to the construction and the cycle repeats.

This approach lets teams work together on one model and reduces the number of versions passed between them. For more on stray light analysis, see the article Stray light analysis: what it is.

Where OSLO fits in

If the system contains lenses, their design is usually done in OSLO, a program for designing and optimizing lens systems. The result can be transferred to TracePro, which accepts the LEN file format of OSLO. This makes a consistent workflow: optics design in OSLO, visualization and verification in CAD with RayViz, full analysis in TracePro. We write about working with collimators and systems with real mechanics in the article Collimator design.

Example workflow for communicating results

1. Start from the CAD model

Use the solid that the mechanical team already knows, instead of preparing a separate model for the simulation.

2. Assign optical properties

Choose materials from the property database and assign them to the model elements.

3. Define the source

Choose a source from the LED catalog or define a Gaussian or Lambertian source.

4. Run ray tracing and look at the paths

Check whether the beam travels as intended and is not blocked.

5. Gather the team's comments

Discuss the result with the designer and make changes to the solid, then repeat the ray tracing.

6. Move on to full analysis

Save the model in the TracePro format and perform an energy and stray light analysis.

7. Prepare the presentation

For the client, choose the views that show how the system makes sense, and if needed create a visualization in TracePro.

Which tool for which task

Task Tool
Early verification of ray paths in CAD RayViz
Checking vignetting by the mechanics RayViz
Detecting light escaping from a light guide RayViz
Full optical analysis, energy distributions TracePro
Stray light and reports TracePro
Design and optimization of a lens system OSLO

The most common mistakes in communicating simulation results

Showing numbers only

Maps and plots without the context of the geometry are hard to understand for people outside optics.

A separate model for simulation and for construction

Two independent versions of a model quickly drift apart, and changes have to be made twice.

Leaving ray path verification for the end

Problems with vignetting or light escape are cheapest to fix at an early stage.

Treating visualization as a full analysis

Ray paths show what is happening, but they do not replace quantitative analysis, for example of the intensity distribution or the stray light level.

No shared acceptance criterion

Before showing a result, it is worth agreeing on what we expect from it, because otherwise each side will see something different in it.

Summary

A good simulation result is one that leads to a decision. For that to happen, it must be understandable to everyone who makes the decision: mechanical engineers, designers, and the client.

RayViz brings ray tracing into SOLIDWORKS, letting you show ray paths on the CAD solid and quickly check vignetting or light escaping from a light guide. TracePro takes the model on for full energy and stray light analysis, and OSLO is used to design the lenses themselves. Together they form a chain: from the idea, through verification in CAD, to full analysis, in which everyone looks at the same model.

Manufacturer resources

RayViz product page: Lambda Research: RayViz

RayViz in the SOLIDWORKS partner catalog: SOLIDWORKS: RayViz for SOLIDWORKS

Applications of TracePro in spectroscopy, including photorealistic visualization: Lambda Research: Spectroscopy Simulation Using TracePro

Frequently asked questions
Visualizing optical simulation results in RayViz: how to show a system to a client and a team

What is RayViz?

RayViz is a SOLIDWORKS add-in from Lambda Research for visualizing light rays and their paths. It lets you assign optical properties and run ray tracing directly in SOLIDWORKS.

Where does RayViz get the optical properties of materials?

RayViz uses the TracePro optical property database. The properties assigned in SOLIDWORKS are saved as part of the SOLIDWORKS model.

What light sources can be defined in RayViz?

The manufacturer lists catalogs of LED sources as well as Gaussian and Lambertian sources with different beam widths.

What tasks is RayViz suited for?

According to Lambda Research, it is useful in the early stages of product design, for example for verifying the beam path, checking vignetting by mechanical elements, and detecting light escaping from the bends of light guides.

Can you move from RayViz to TracePro?

Yes. RayViz lets you save the SOLIDWORKS model in the TracePro format, which can be opened in TracePro for full optical analysis.

Does RayViz replace TracePro?

No. RayViz is used for early visualization and verification of ray paths in the CAD environment, and TracePro for full optical analysis, including energy distributions, stray light, and reports.

Ready to check it on your own project?

Ask our engineers for a tailored quote or start a free trial today.

Request a quote Start a trial

← All articles