Table of Contents

Struct GraphicsInfo

Namespace
rF2SharedMemoryNet.RF2Data.Structs
Assembly
rF2SharedMemoryNet.dll

Represents graphical information related to the rFactor 2 simulation, including camera position, orientation, ambient lighting, and other visual settings.

public struct GraphicsInfo
Inherited Members

Remarks

This structure provides data about the current graphical state of the simulation, such as the camera's position and orientation, ambient lighting colors, and the slot ID being viewed. It also includes information about the camera type, which can be used to determine or set the current camera view. Some fields, such as Expansion, are reserved for future use.

Fields

AmbientBlue

Represents the intensity of the ambient blue color component in the lighting system.

public double AmbientBlue

Field Value

double

Remarks

This field is typically used to control the blue channel of ambient light in rendering or graphical applications. The value should be within a valid range for color intensity, typically between 0.0 and 1.0, where 0.0 represents no blue light and 1.0 represents full intensity.

AmbientGreen

Represents the green component of ambient light intensity.

public double AmbientGreen

Field Value

double

Remarks

This field is typically used in graphics or lighting calculations to define the green channel of ambient light. The value should be in a range appropriate for the specific application, such as 0.0 to 1.0 for normalized intensity or another range depending on the context.

AmbientRed

Represents the red component of the ambient color in a lighting system.

public double AmbientRed

Field Value

double

Remarks

This field is typically used to define the intensity of the red channel for ambient lighting. Values should generally be in the range of 0.0 to 1.0, where 0.0 represents no red light and 1.0 represents full intensity.

CamOri

Represents the rows of an orientation matrix for the camera.

public Vec3[] CamOri

Field Value

Vec3[]

Remarks

This array contains three elements, each representing a row of the orientation matrix. The matrix can be used to describe the camera's orientation in 3D space. For conversions, consider using TelemQuat utilities to transform the data into quaternion format.

CamPos

Represents the position of the camera in 3D space.

public Vec3 CamPos

Field Value

Vec3

Remarks

This field stores the camera's position as a 3D vector. It can be used to determine or modify the camera's location in the scene.

CameraType

Represents the type of camera view in a racing simulation environment.

public int CameraType

Field Value

int

Remarks

The camera type determines the perspective from which the simulation is viewed. Values outside the defined range may not be supported.

  • 0 = TV cockpit
  • 1 = cockpit
  • 2 = nosecam
  • 3 = swingman
  • 4 = trackside (nearest)
  • 5 = onboard000
  • :
  • :
  • 1004 = onboard999
  • 1005+ = (currently unsupported, in the future may be able to set/get specific trackside camera)

Expansion

Reserved for future use.

public byte[] Expansion

Field Value

byte[]

HWND

Represents the application handle as an array of bytes.

public byte[] HWND

Field Value

byte[]

Id

Represents the slot ID currently being viewed.

public int Id

Field Value

int