PerspectiveCamera class
- Inheritance
- Implementers
Constructors
- PerspectiveCamera([num fov = 50, num aspect = 1, num near = 0.1, num far = 2000])
-
PerspectiveCamera.fromJSON(Map<
String, dynamic> json, Map<String, dynamic> rootJSON)
Properties
- aspect ↔ num
-
getter/setter pairinherited
- autoUpdate ↔ bool
-
getter/setter pairinherited
- background ↔ dynamic
-
getter/setter pairinherited
- bindMatrix ↔ Matrix4?
-
getter/setter pairinherited
- bottom ↔ num
-
getter/setter pairinherited
- castShadow ↔ bool
-
getter/setter pairinherited
-
children
↔ List<
Object3D> -
getter/setter pairinherited
- count ↔ int?
-
getter/setter pairinherited
- customDepthMaterial ↔ Material?
-
- Custom depth material to be used when rendering to the depth map. Can only be used in context of meshes.
- When shadow-casting with a DirectionalLight or SpotLight, if you are (a) modifying vertex positions in
- the vertex shader, (b) using a displacement map, (c) using an alpha map with alphaTest, or (d) using a
- transparent texture with alphaTest, you must specify a customDepthMaterial for proper shadows.
getter/setter pairinherited - Custom depth material to be used when rendering to the depth map. Can only be used in context of meshes.
- customDistanceMaterial ↔ Material?
-
getter/setter pairinherited
- environment ↔ Texture?
-
getter/setter pairinherited
-
extra
↔ Map<
String, dynamic> -
getter/setter pairinherited
- far ↔ num
-
getter/setter pairinherited
- filmGauge ↔ num
-
getter/setter pairinherited
- filmOffset ↔ num
-
getter/setter pairinherited
- focus ↔ num
-
getter/setter pairinherited
- fov ↔ num
-
getter/setter pairinherited
- frustumCulled ↔ bool
-
getter/setter pairinherited
- geometry ↔ BufferGeometry?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
getter/setter pairinherited
-
instanceColor
↔ BufferAttribute<
NativeArray< ?num> > -
getter/setter pairinherited
- instanceMatrix ↔ InstancedBufferAttribute?
-
getter/setter pairinherited
- isImmediateRenderObject ↔ bool
-
getter/setter pairinherited
- layers ↔ Layers
-
getter/setter pairinherited
- left ↔ num
-
getter/setter pairinherited
- material ↔ dynamic
-
getter/setter pairinherited
- matrix ↔ Matrix4
-
getter/setter pairinherited
- matrixAutoUpdate ↔ bool
-
getter/setter pairinherited
- matrixWorld ↔ Matrix4
-
getter/setter pairinherited
- matrixWorldInverse ↔ Matrix4
-
getter/setter pairinherited
- matrixWorldNeedsUpdate ↔ bool
-
getter/setter pairinherited
- modelViewMatrix ↔ Matrix4
-
getter/setter pairinherited
-
morphTargetDictionary
↔ Map<
String, dynamic> ? -
getter/setter pairinherited
-
morphTargetInfluences
↔ List<
num> ? -
getter/setter pairinherited
- name ↔ String
-
getter/setter pairinherited
- near ↔ num
-
getter/setter pairinherited
- normalMatrix ↔ Matrix3
-
getter/setter pairinherited
- onBeforeRender ↔ Function?
-
getter/setter pairinherited
- overrideMaterial ↔ Material?
-
getter/setter pairinherited
- parent ↔ Object3D?
-
getter/setter pairinherited
- position ↔ Vector3
-
getter/setter pairinherited
- projectionMatrix ↔ Matrix4
-
getter/setter pairinherited
- projectionMatrixInverse ↔ Matrix4
-
getter/setter pairinherited
- quaternion ↔ Quaternion
-
getter/setter pairinherited
- receiveShadow ↔ bool
-
getter/setter pairinherited
- renderOrder ↔ int
-
getter/setter pairinherited
- right ↔ num
-
getter/setter pairinherited
- rotation ↔ Euler
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ Vector3
-
getter/setter pairinherited
- skeleton ↔ Skeleton?
-
getter/setter pairinherited
- tag ↔ String?
-
getter/setter pairinherited
- top ↔ num
-
getter/setter pairinherited
- type ↔ String
-
getter/setter pairinherited
- up ↔ Vector3
-
getter/setter pairinherited
-
userData
↔ Map<
String, dynamic> -
getter/setter pairinherited
- uuid ↔ String
-
getter/setter pairinherited
-
view
↔ Map<
String, dynamic> ? -
getter/setter pairinherited
- viewport ↔ Vector4
-
getter/setter pairinherited
- visible ↔ bool
-
getter/setter pairinherited
- zoom ↔ double
-
getter/setter pairinherited
Methods
-
add(
Object3D? object) → Object3D -
inherited
-
addAll(
List< Object3D> objects) → Object3D -
inherited
-
addEventListener(
String type, Function listener) → void -
inherited
-
applyMatrix4(
Matrix4 matrix) → void -
inherited
-
applyQuaternion(
Quaternion q) → Object3D -
inherited
-
attach(
Object3D object) → Object3D -
inherited
-
clear(
) → Object3D -
inherited
-
clearListeners(
) → void -
inherited
-
clearViewOffset(
) → void -
clone(
[bool? recursive = true]) → PerspectiveCamera -
override
-
copy(
Object3D source, [bool? recursive]) → PerspectiveCamera -
override
-
dispatchEvent(
Event event) → void -
inherited
-
dispose(
) → void -
inherited
-
extractFromCache(
Map< String, dynamic> cache) → List<Map< String, dynamic> > -
inherited
-
getFilmHeight(
) → double -
getFilmWidth(
) → num -
getObjectById(
String id) → Object3D? -
inherited
-
getObjectByName(
String name) → Object3D? -
inherited
-
getObjectByProperty(
String name, String value) → Object3D? -
inherited
-
getProperty(
String propertyName) → dynamic -
inherited
-
getValue(
String name) → Matrix4? -
inherited
-
getWorldDirection(
Vector3 target) → Vector3 -
inherited
-
getWorldPosition(
Vector3? target) → Vector3 -
inherited
-
getWorldQuaternion(
Quaternion target) → Quaternion -
inherited
-
getWorldScale(
Vector3 target) → Vector3 -
inherited
-
hasEventListener(
String type, Function? listener) → bool -
inherited
-
init(
) → void -
inherited
-
localToWorld(
dynamic vector) → dynamic -
inherited
-
lookAt(
Vector3 position) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAfterRender(
{WebGLRenderer? renderer, dynamic scene, Camera? camera, dynamic geometry, dynamic material, dynamic group}) → void -
inherited
-
onQuaternionChange(
) → void -
inherited
-
onRotationChange(
) → void -
inherited
-
raycast(
Raycaster raycaster, List< Intersection> intersects) → void -
inherited
-
remove(
Object3D object) → Object3D -
inherited
-
removeEventListener(
String type, Function listener) → void -
inherited
-
removeFromParent(
) → Object3D -
inherited
-
removeList(
List< Object3D> objects) → Object3D -
inherited
-
rotateOnAxis(
dynamic axis, num angle) → Object3D -
inherited
-
rotateOnWorldAxis(
dynamic axis, num angle) → Object3D -
inherited
-
rotateX(
num angle) → Object3D -
inherited
-
rotateY(
num angle) → Object3D -
inherited
-
rotateZ(
num angle) → Object3D -
inherited
-
serialize(
Map< String, dynamic> library, dynamic element, Object3dMeta? meta) → dynamic -
inherited
-
setProperty(
String propertyName, dynamic value) → Object3D -
inherited
-
setRotationFromAxisAngle(
dynamic axis, num angle) → void -
inherited
-
setRotationFromEuler(
Euler euler) → void -
inherited
-
setRotationFromMatrix(
dynamic m) → void -
inherited
-
setRotationFromQuaternion(
Quaternion q) → void -
inherited
-
setViewOffset(
dynamic fullWidth, dynamic fullHeight, dynamic x, dynamic y, dynamic width, dynamic height) → void -
- Sets an offset in a larger frustum. This is useful for multi-window or
- multi-monitor/multi-machine setups.
*
- For example, if you have 3x2 monitors and each monitor is 1920x1080 and
- the monitors are in grid like this
- +---+---+---+
- | A | B | C |
- +---+---+---+
- | D | E | F |
- +---+---+---+
- then for each monitor you would call it like this
- const w = 1920;
- const h = 1080;
- const fullWidth = w * 3;
- const fullHeight = h * 2;
- --A--
- camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
- --B--
- camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
- --C--
- camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
- --D--
- camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
- --E--
- camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
- --F--
- camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
- Note there is no reason monitors have to be the same size or in a grid.
- Sets an offset in a larger frustum. This is useful for multi-window or
-
toJSON(
{Object3dMeta? meta}) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
translateOnAxis(
dynamic axis, num distance) → Object3D -
inherited
-
translateX(
dynamic distance) → Object3D -
inherited
-
translateY(
dynamic distance) → Object3D -
inherited
-
translateZ(
dynamic distance) → Object3D -
inherited
-
traverse(
dynamic callback) → void -
inherited
-
traverseAncestors(
dynamic callback) → void -
inherited
-
traverseVisible(
dynamic callback) → void -
inherited
-
updateMatrix(
) → void -
inherited
-
updateMatrixWorld(
[bool force = false]) → void -
inherited
-
updateProjectionMatrix(
) → void -
override
-
updateWorldMatrix(
bool updateParents, bool updateChildren) → void -
inherited
-
worldToLocal(
dynamic vector) → dynamic -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited