DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Camera

Topics

 Light API
 

Перечисления

enum  CameraType { PERSPECTIVE , ORTHOGRAPHIC }
 
enum  PostProcessEffectType {
  None = -1 , UnderWater , SSAO , DepthOfField ,
  HBAO , RotBlur , GodRays , Rain ,
  Snowfall , FilmGrain , RadialBlur , ChromAber ,
  WetDistort , DynamicBlur , ColorGrading , Colors ,
  Glow , SMAA , FXAA , Median ,
  SunMask , GaussFilter , SSR , Distort ,
  Ghost
}
 Post-process effect type. Подробнее...
 

Функции

proto native void SetListenerCamera (int camera)
 sets which camera will be a listener (for sound engine)
 
proto native void SetCamera (int cam, vector origin, vector angle)
 
proto native void SetCameraEx (int cam, const vector mat[4])
 Changes camera matrix.
 
proto native void GetCamera (int cam, out vector mat[4])
 Returns current camera transformation.
 
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)
 

Подробное описание

Перечисления

◆ CameraType

Элементы перечислений
PERSPECTIVE 
ORTHOGRAPHIC 
39{
42};
@ PERSPECTIVE
Definition EnWorld.c:40
@ ORTHOGRAPHIC
Definition EnWorld.c:41

◆ PostProcessEffectType

Post-process effect type.

Внимание
Keep enum names in synch with post-process effect material class names. Postfix "Effect" is appended automatically.
Элементы перечислений
None 
UnderWater 
SSAO 
DepthOfField 
HBAO 
RotBlur 
GodRays 
Rain 
Snowfall 
FilmGrain 
RadialBlur 
ChromAber 
WetDistort 
DynamicBlur 
ColorGrading 
Colors 
Glow 
SMAA 
FXAA 
Median 
SunMask 
GaussFilter 
SSR 
Distort 
Ghost 
72{
73 None,
75 SSAO,
77 HBAO,
78 RotBlur,
79 GodRays,
80 Rain,
88 Colors,
89 Glow,
90 SMAA,
91 FXAA,
92 Median,//unused?
93 SunMask,
95 SSR, //not available
96 Distort,
97 Ghost
98};
@ FXAA
Definition EnWorld.c:91
@ GaussFilter
Definition EnWorld.c:94
@ ColorGrading
Definition EnWorld.c:87
@ DynamicBlur
Definition EnWorld.c:86
@ DepthOfField
Definition EnWorld.c:76
@ Colors
Definition EnWorld.c:88
@ HBAO
Definition EnWorld.c:77
@ RotBlur
Definition EnWorld.c:78
@ Distort
Definition EnWorld.c:96
@ SunMask
Definition EnWorld.c:93
@ RadialBlur
Definition EnWorld.c:83
@ Rain
Definition EnWorld.c:80
@ SSR
Definition EnWorld.c:95
@ ChromAber
Definition EnWorld.c:84
@ SMAA
Definition EnWorld.c:90
@ WetDistort
Definition EnWorld.c:85
@ Ghost
Definition EnWorld.c:97
@ None
Definition EnWorld.c:73
@ Snowfall
Definition EnWorld.c:81
@ Glow
Definition EnWorld.c:89
@ GodRays
Definition EnWorld.c:79
@ FilmGrain
Definition EnWorld.c:82
@ UnderWater
Definition EnWorld.c:74
@ Median
Definition EnWorld.c:92
@ SSAO
Definition EnWorld.c:75

Функции

◆ 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

Аргументы
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

Аргументы
camnumber of camera
prioritypriority of effect
typetype of effect
materialPathmaterial

Используется в ChangePPEMaterial().

◆ 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 )