nyx_py_sdk#

Nyx SDK Python bindings for authoring and serializing scene assets.

Functions

export_camera_profile_file(path, camera_profile)

Serialize 'camera_profile' to JSON and write it to 'path'.

export_scene_file(path, scene)

Serialize 'scene' to JSON and write it to 'path'.

float3_y_up_a_to_z_up(v)

Convert a float3 from the Y-up (variant A) convention to a Z-up coordinate system.

float3_z_up_to_y_up_a(v)

Convert a float3 from a Z-up coordinate system to the Y-up (variant A) convention.

generate_uuid()

Return a fresh 64-bit UUID from the SDK's global generator.

import_camera_profile_file(path, camera_profile)

Load a JSON camera profile file from 'path' into the given CameraProfileAsset.

import_scene_file(path, scene)

Load a JSON scene file from 'path' into the given SceneAsset.

log_flags()

Return the log levels the SDK currently writes.

quaternion_conjugate(q)

Return the conjugate of a quaternion (negated imaginary part).

quaternion_mul(a, b)

Return the Hamilton product a * b of two quaternions.

quaternion_wxyz_to_xyzw(q)

Reorder a quaternion stored as (w, x, y, z) into the (x, y, z, w) convention used by this SDK.

quaternion_xyzw_to_wxyz(q)

Reorder a quaternion stored as (x, y, z, w) into the (w, x, y, z) convention.

quaternion_y_up_a_to_z_up(q)

Convert a quaternion from the Y-up (variant A) convention to a Z-up coordinate system.

quaternion_z_up_to_y_up_a(q)

Convert a quaternion from a Z-up coordinate system to the Y-up (variant A) convention.

set_log_flags(flags)

Select which log levels the SDK writes.

shutdown()

Shutdown the Nyx SDK.

startup()

Initialize the Nyx SDK's global memory and string-cache subsystems.

Classes

AnimationAsset

An animation track bound to a target asset by UUID.

CameraAsset

A view of the scene defined by a transform, projection and a referenced camera profile.

CameraProfileAsset

Optical and imaging settings of a camera, stored as a reusable asset.

ChromaticAberrationData

Chromatic aberration settings of the lens.

ColorManagementData

Color management settings of the camera profile.

DeviceIdentity

Identity of the physical GPU behind a graphics device, to pair it with a compute device.

EAnimationType

Kind of property animated by an AnimationAsset.

EAntiAliasing

Post-process anti-aliasing technique.

EAreaShape

Shape of an area light.

EDeviceIdentityType

What a DeviceIdentity holds.

EEnvMapLayout

Pixel layout used by an environment map texture.

EEnvMapParallax

Parallax correction model applied when sampling an environment map.

EExternalMemoryHandleType

Kind of OS handle an exported GPU buffer carries.

EGPUVendor

GPU vendor, the 'deviceData' of the VendorID pick strategy.

EInstanceType

Kind of instance, which selects the active type-specific fields on InstanceAsset.

ELightFieldType

Representation used by a LightFieldAsset.

ELightType

Kind of light source.

ELightUnit

Photometric unit used to interpret the light intensity.

ELogLevel

Log levels emitted by the SDK, combinable with '|'.

EMaterialClipping

Alpha clipping mode used by a material.

EMaterialFeatures

Optional shading feature set enabled on a material.

EMaterialOpacity

Opacity mode used by a material.

EMaterialProperty

Bit flags identifying which fields of a MaterialAsset are explicitly set.

EMaterialSidedness

Face culling mode used by a material.

ENormalMode

How shading normals on back faces are derived from the front-face normal.

EPickStrategy

How a renderer or encoder picks its GPU.

EPrimitiveType

Built-in analytic primitive type.

EToneMapper

Tone mapping operator applied to the final image.

EnvironmentMapAsset

Image-based environment map providing infinite-distance lighting.

ExportedGraphicsBuffer

An exported GPU buffer: what an importer needs to map it.

FrameAsset

A single keyframe of an animation.

InstanceAsset

An instance placed in the scene.

LensApertureData

Aperture settings of the lens.

LensData

Lens settings of the camera profile.

LensDistortionData

Lens distortion (radial k1..k3).

LensOpticalData

Lens optical settings of the camera profile.

LensVignetteData

Vignetting settings of the lens.

LightAsset

A scene light.

LightFieldAsset

A captured radiance field placed in the scene.

MaterialAsset

A physically-based material description.

SceneAsset

Top-level scene container holding all instances, lights, cameras, environment maps, animations and light fields.

SensorData

Sensor settings of the camera profile.

SensorExposureData

Exposure settings of the sensor.

SensorNoiseData

Noise model settings of the sensor.

TransformFrameData

Transform sample at a single animation frame.

float2

Two-component single-precision float vector (x, y).

float3

Three-component single-precision float vector (x, y, z).

float4

Four-component single-precision float vector (x, y, z, w).

quaternion

Quaternion stored as (x, y, z, w) with w as the scalar component.

uint2

Two-component unsigned integer vector (x, y).

uint3

Three-component unsigned integer vector (x, y, z).

uint4

Four-component unsigned integer vector (x, y, z, w).