Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
Camera

Modules

 Light API
 

Enumerations

enum  CameraType { PERSPECTIVE, ORTHOGRAPHIC }
 
enum  PostProcessEffectType {
  None = -1, UnderWater, SSAO, DepthOfField,
  HBAO, RotBlur, GodRays, Rain,
  FilmGrain, RadialBlur, ChromAber, WetDistort,
  DynamicBlur, ColorGrading, Colors, Glow,
  SMAA, FXAA, Median, SunMask,
  GaussFilter, SSR
}
 Post-process effect type. More...
 

Functions

proto native void SetListenerCamera (int camera)
 sets which camera will be a listener (for sound engine) More...
 
proto native void SetCamera (int cam, vector origin, vector angle)
 
proto native void SetCameraEx (int cam, const vector mat[4])
 Changes camera matrix. More...
 
proto native void GetCamera (int cam, out vector mat[4])
 Returns current camera transformation. More...
 
proto native void SetCameraVerticalFOV (int cam, float fovy)
 
proto native void SetCameraFarPlane (int cam, float farplane)
 
proto native void SetCameraNearPlane (int cam, float nearplane)
 
proto native void SetCameraType (int cam, CameraType type)
 
proto native void SetCameraPostProcessEffect (int cam, int priority, PostProcessEffectType type, string materialPath)
 
proto vector ProjectVector (int cam, IEntity ent, vector vec)
 
proto vector UnprojectVector (int cam, float x, float y, vector dir)
 

Detailed Description

Enumeration Type Documentation

◆ CameraType

enum CameraType
Enumerator
PERSPECTIVE 
ORTHOGRAPHIC 

Definition at line 38 of file enworld.c.

◆ PostProcessEffectType

Post-process effect type.

Attention
Keep enum names in synch with post-process effect material class names. Postfix "Effect" is appended automatically.
Enumerator
None 
UnderWater 
SSAO 
DepthOfField 
HBAO 
RotBlur 
GodRays 
Rain 
FilmGrain 
RadialBlur 
ChromAber 
WetDistort 
DynamicBlur 
ColorGrading 
Colors 
Glow 
SMAA 
FXAA 
Median 
SunMask 
GaussFilter 
SSR 

Definition at line 71 of file enworld.c.

Function Documentation

◆ GetCamera()

proto native void GetCamera ( int  cam,
out vector  mat[4] 
)

Returns current camera transformation.

◆ ProjectVector()

proto vector ProjectVector ( int  cam,
IEntity  ent,
vector  vec 
)

◆ SetCamera()

proto native void SetCamera ( int  cam,
vector  origin,
vector  angle 
)

Changes camera position

Parameters
camIndex of camera
originposition
angleorientation

◆ SetCameraEx()

proto native void SetCameraEx ( int  cam,
const vector  mat[4] 
)

Changes camera matrix.

◆ SetCameraFarPlane()

proto native void SetCameraFarPlane ( int  cam,
float  farplane 
)

◆ SetCameraNearPlane()

proto native void SetCameraNearPlane ( int  cam,
float  nearplane 
)

◆ SetCameraPostProcessEffect()

proto native void SetCameraPostProcessEffect ( int  cam,
int  priority,
PostProcessEffectType  type,
string  materialPath 
)

set postprocess effect to camera To disable effect in some prioroty ppEffect, just set effectName or name to NULL

Parameters
camnumber of camera
prioritypriority of effect
typetype of effect
materialPathmaterial

◆ SetCameraType()

proto native void SetCameraType ( int  cam,
CameraType  type 
)

◆ SetCameraVerticalFOV()

proto native void SetCameraVerticalFOV ( int  cam,
float  fovy 
)

◆ SetListenerCamera()

proto native void SetListenerCamera ( int  camera)

sets which camera will be a listener (for sound engine)

◆ UnprojectVector()

proto vector UnprojectVector ( int  cam,
float  x,
float  y,
vector  dir 
)