Free software

About OpticalSetup

Copyright © 2026 Luca Genchi and contributors.

OpticalSetup is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

It is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

The numbers OpticalSetup reports come from models with stated limits; read each component's page in the wiki before relying on one.

If you use OpticalSetup in your research, teaching or publications, please cite the software:

Bertoncini, A., & Genchi, L. (2026). OpticalSetup - the optical workbench software [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23191537

Wiki / Sources / Object

Object

Places an arrow, letter, tree, or star as an imaging object, with an optional ray fan and computed paraxial image for lens demonstrations.

Open in the canvas →

A live trace, not a picture of one — but this preview is not interactive. Open it in the canvas to move things, change parameters, and save or export your own version.

In the real world

Ray diagrams represent an extended object with a recognizable shape so that image position, orientation, and magnification can be compared. A converging lens can form a real inverted image or a virtual upright image depending on object distance.

In OpticalSetup

Choose an arrow, letter F, tree, or star, set its height, and enable the image marker. The shape is centred on the Object's position, and the Object's axis runs through that middle point: the lenses it crosses form the image, and the first optic it crosses is what an aimed fan fills. The star is an asterisk with one arm up, so an inverted image shows it pointing down. The optional ray fan leaves the tip, both the tip and the base (the base's fan drawn in a second colour at the same wavelength), or the middle on the axis; it is not a full collection of rays from every point of the shape. Rays from: Principal rays draws instead the three construction rays of a textbook ray diagram, from the tip: parallel to the axis and then through the back focal point, through the centre undeviated, and through the front focal point and then parallel. With several lenses, only the first draws the three rays; every later lens bends the rays that reach it towards its own image, and they pass straight through any real intermediate image on the way, as the light does. Every drawn ray is therefore one connected path from the tip, and it ends on the last image where that image is real. After the first lens the rays are no longer the textbook parallel, centre and focal rays of the later lenses, only the same three rays carried on. A first lens whose image is at infinity has no ray leaving parallel, and the rays go on parallel to the next lens. Dashed lines lead back to a virtual image. A ray is drawn only if every lens and plate on its way catches it within its glass: a construction ray that would meet a lens outside it is left out, rather than bent in empty air, so a small lens or a tall object can show fewer than three. A thick lens, asphere or lens group shows its two principal planes across its glass in grey dashes, where the construction bends its rays, and a plate between lenses carries the rays through its paraxial matrix. These rays are drawn, not traced: a slit, a mirror or a blocker does not stop them. With Aim: First optic the fan is aimed at the first lens, glass face or mirror on the object's axis, across the central two-thirds of its width: rays through the very edge of a lens leave it at the steepest angles, and keeping off the edge helps the next lens catch them. It does not guarantee it: an object tall against the lenses, near the first lens's front focal plane, sends its tip's rays out parallel and slanted by its height over the focal length, so the whole bundle drifts sideways on the way to the next lens, and its edge rays can still miss it. It is narrowed to any slit, iris or stop in front of the optic (through to the whole optic when a stop lets light reach only its outer part), following both as they move; Aim: Ahead points it straight ahead at a set angle. The paraxial image marker is calculated separately, through ideal lenses and objectives and through thick lenses, aspheres and lens groups by their cardinal points; a fan from the tip meets at its tip, up to the aberrations of real glass. The Image readout gives each image's distance after its lens, the magnification, and whether it is real or virtual, upright or inverted. Objects saved before these options open as they were drawn then, with the fan from the middle straight ahead; an Object saved standing on its base opens with its position moved up to its middle, so its shape stays where it was.

The example places an object 200 mm before a 100 mm lens. Its paraxial image appears 200 mm beyond the lens with equal size and inverted orientation. Move the lens to explore magnification and virtual images.

Simplified vs. reality

The image marker and the principal rays are paraxial constructions: they do not account for downstream clipping, apertures or aberrations, and do not represent a rendered camera image. The model does not calculate diffraction, image texture, or radiometric brightness across the object.

Related components