Skip to content

joansolroo/ProjectionExamples-UsingMirrors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projectors and Mirrors

A simple project showing how rays of light interact with mirrors, and how the physical and optical centers of the image are affected.

Getting Started

Download the project and test it inside the Unity3D editor. It was developed using 2018.3.5f1.

Explanation

The scene contains one physical projector and two mirrors. The target of the scene is to project over the box (sandbox). The white ray is the projection of the physical forward of the projector, while the blue ray is the projection of the optical centre (different if there is a lens shift/tilt).

By rotating and moving the mirrors, the position and orientation of the virtual projector will adjust accordingly as long as the white ray hits the target surface. This will provide a solution as long as the white ray hits the target surface.

No alt-text yet

All the work is done by the RayCastCamera script attached to the physical projector. It is possible to set some parameters, notably if it needs to be recomputed or display options.

No alt-text yet

NOTE: Given that layers are problematic when doing SAR (because they are used for rendering), at the moment the ProjectionTarget and Mirror gameobjects must be tagged using the corresponding MonoBehaviour.

About

This is a simple example of how projectors interact with mirrors.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages