Constructor
new ProjectedLayer(properties, showFrustumopt, chromaKeyingopt, chromaKeyopt, chromaKeyToleranceopt)
construct a projected layer that will project a three.js onto other loaded geospatial data from the given perspective.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties | Object | Properties
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showFrustum | Boolean | <optional> | true | show the projection camera frustum | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chromaKeying | Boolean | <optional> | false | use chroma key (green screen) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chromaKey | THREE. | <optional> | new THREE.Vector3(0.5,1.0,0.5) | chroma key color | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chromaKeyTolerance | Number | <optional> | 0.5 | tolerance for chroma key (0 to sqrt(3)) |
- Source
Methods
setCameraFromLLHYawPitchRollFov(llh, yaw, pitch, roll, fov, far)
Sets the video camera's position and orientation based on Longitude, Latitude, Height, Yaw, Pitch, Roll, and FOV.
Parameters:
Name | Type | Description |
---|---|---|
llh | THREE. | A Vector3 where: - x = Longitude in degrees - y = Latitude in degrees - z = Height in meters |
yaw | number | Yaw angle in degrees. (0 points north ccw rotation) |
pitch | number | Pitch angle in degrees (-90 to 90) |
roll | number | Roll angle in degrees. - Rotation around the Forward vector (local Y-axis). |
fov | number | The camera's vertical field of view in degrees. |
far | number | The max distance to project the texture. |
- Source
setTexture()
Set a texture to be projected
- Source