planetarium

Description

Planetarium rendering code

(dome-set-camera-transform m)

Returns primitive-id

Get the render target pixels primitive, so you can set the scene up and animate things 'inside' the dome using (with-pixels-renderer)

Example


(dome-set-camera-transform m)

Returns primitive-id

Sets the camera matrix of all the dome cameras

Example


(dome-camera-set-fov angle near far)

Returns primitive-id

Sets the fov of the dome cameras (not sure this is right actually...)

Example


(dome-camera-lag amount)

Returns primitive-id

Locks all the dome cameras to a primitive

Example


(dome-camera-lag amount)

Returns primitive-id

Sets the camera lag for all the dome cameras at once

Example


(dome-build num-cameras fov-angle texture-size init-thunk)

Returns primitive-id

Builds a inverted sphere texture mapped with another scene. The scene is rendered by multiple cameras which are combined to give a view which can be very wide angle. fov-angle sets this size, texture-size sets the resolution of the render target and init-thunk is run in the internal pixels-renderer and is for setting up your scene. (should replace thunk with a with-dome)

Example


(dome-setup-main-camera)

Returns primitive-id

Sets up the view of the dome geometry to fit (currently) the plymouth immersive vision theatre - this should be useful as an example for other locations.

Example


(dome-set-camera-transform m)

Returns primitive-id

Get the render target pixels primitive, so you can set the scene up and animate things 'inside' the dome using (with-pixels-renderer)

Example


(dome-set-camera-transform m)

Returns primitive-id

Sets the camera matrix of all the dome cameras

Example


(dome-camera-set-fov angle near far)

Returns primitive-id

Sets the fov of the dome cameras (not sure this is right actually...)

Example


(dome-camera-lag amount)

Returns primitive-id

Locks all the dome cameras to a primitive

Example


(dome-camera-lag amount)

Returns primitive-id

Sets the camera lag for all the dome cameras at once

Example


(dome-build num-cameras fov-angle texture-size init-thunk)

Returns primitive-id

Builds a inverted sphere texture mapped with another scene. The scene is rendered by multiple cameras which are combined to give a view which can be very wide angle. fov-angle sets this size, texture-size sets the resolution of the render target and init-thunk is run in the internal pixels-renderer and is for setting up your scene. (should replace thunk with a with-dome)

Example


(dome-setup-main-camera)

Returns primitive-id

Sets up the view of the dome geometry to fit (currently) the plymouth immersive vision theatre - this should be useful as an example for other locations.

Example