Python API#
Ignis (module)#
Ignis python interface
CPUArchitecture#
Missing Documentation
CameraOrientation#
General camera orientation
Properties#
Dir
: Direction the camera is facingEye
: Origin of the cameraUp
: Vector defining the up of the camera
GPUArchitecture#
Missing Documentation
Ray#
Single ray traced into the scene
Properties#
Direction
: Direction of the rayOrigin
: Origin of the rayRange
: Range (tmin, tmax) of the ray
Runtime#
Renderer runtime allowing control of simulation and access to results
Properties#
Camera
: (self) -> strFrameCount
: (self) -> intFramebufferHeight
: (self) -> intFramebufferWidth
: (self) -> intInitialCameraOrientation
: (self) -> CameraOrientationIterationCount
: (self) -> intSPI
: (self) -> intSampleCount
: (self) -> intTarget
: (self) -> TargetTechnique
: (self) -> str
Methods#
clearFramebuffer(self) -> None
clearFramebuffer(self, arg: str, /) -> None
getFramebufferForDevice(self, aov: str = '') -> Image
getFramebufferForHost(self, aov: str = '') -> CPUImage
incFrameCount(self) -> None
reset(self) -> None
setCameraOrientationParameter(self, arg: CameraOrientation, /) -> None
setParameter(self, arg0: str, arg1: int, /) -> None
setParameter(self, arg0: str, arg1: float, /) -> None
setParameter(self, arg0: str, arg1: Vec3, /) -> None
setParameter(self, arg0: str, arg1: Vec4, /) -> None
step(self, ignoreDenoiser: bool = False) -> None
tonemap(self, arg: CPUArray2d_UInt32, /) -> None
trace(self, arg: list[Ray], /) -> list[Vec3]
RuntimeOptions#
Options to customize runtime behaviour
Properties#
AcquireStats
: Set True if statistical data should be acquired while renderingDumpShader
: Set True if most shader should be dumped into the filesystemDumpShaderFull
: Set True if all shader should be dumped into the filesystemEnableTonemapping
: Set True if any of the two tonemapping functionstonemap
andimageinfo
is to be usedOverrideCamera
: Type of camera to use instead of the one used by the sceneOverrideFilmSize
: Type of film size to use instead of the one used by the sceneOverrideTechnique
: Type of technique to use instead of the one used by the sceneSPI
: The requested sample per iteration. Can be 0 to set automaticallySeed
: Seed for the random generatorsTarget
: The target deviceWarnUnused
: Set False if you want to ignore warnings about unused property entries
RuntimeWrap#
Wrapper around the runtime used for proper runtime loading and shutdown
Properties#
instance
: (self) -> Runtime
Methods#
shutdown(self) -> None
Scene#
Class representing a whole scene
Properties#
bsdfs
: (self) -> dict[str, SceneObject]camera
: (self) -> SceneObjectentities
: (self) -> dict[str, SceneObject]film
: (self) -> SceneObjectlights
: (self) -> dict[str, SceneObject]media
: (self) -> dict[str, SceneObject]shapes
: (self) -> dict[str, SceneObject]technique
: (self) -> SceneObjecttextures
: (self) -> dict[str, SceneObject]
Methods#
addBSDF(self, arg0: str, arg1: SceneObject, /) -> None
addConstantEnvLight(self) -> None
addEntity(self, arg0: str, arg1: SceneObject, /) -> None
addFrom(self, arg: Scene, /) -> None
addLight(self, arg0: str, arg1: SceneObject, /) -> None
addMedium(self, arg0: str, arg1: SceneObject, /) -> None
addShape(self, arg0: str, arg1: SceneObject, /) -> None
addTexture(self, arg0: str, arg1: SceneObject, /) -> None
bsdf(self, arg: str, /) -> SceneObject
entity(self, arg: str, /) -> SceneObject
light(self, arg: str, /) -> SceneObject
medium(self, arg: str, /) -> SceneObject
shape(self, arg: str, /) -> SceneObject
texture(self, arg: str, /) -> SceneObject
SceneObject#
Class representing an object in the scene
Properties#
baseDir
: (self) -> os.PathLikepluginType
: (self) -> strproperties
: (self) -> dict[str, SceneProperty]type
: (self) -> SceneObject::Type
Methods#
hasProperty(self, arg: str, /) -> bool
property(self, arg: str, /) -> SceneProperty
setProperty(self, arg0: str, arg1: SceneProperty, /) -> None
SceneParser#
Parser for standard JSON and glTF scene description
Methods#
SceneProperty#
Property of an object in the scene
Properties#
type
: (self) -> SceneProperty::Type
Methods#
canBeNumber(self) -> bool
getBool(self, def: bool = False) -> bool
getInteger(self, def: int = 0) -> int
getIntegerArray(self) -> list[int]
getNumber(self, def: float = 0.0) -> float
getNumberArray(self) -> list[float]
getString(self, def: str = '') -> str
getTransform(self, def: Mat4x4 = [[1. 0. 0. 0.] [0. 1. 0. 0.] [0. 0. 1. 0.] [0. 0. 0. 1.]]) -> Mat4x4
getVector2(self, def: Vec2 = [0. 0.]) -> Vec2
getVector3(self, def: Vec3 = [0. 0. 0.]) -> Vec3
isValid(self) -> bool
Target#
Target specification the runtime is using
Properties#
CPUArchitecture
: (self) -> CPUArchitectureDevice
: (self) -> intGPUArchitecture
: (self) -> GPUArchitectureIsCPU
: (self) -> boolIsGPU
: (self) -> boolIsValid
: (self) -> boolThreadCount
: (self) -> intVectorWidth
: (self) -> int
Methods#
toString(self) -> str
SceneObject.Type#
Missing Documentation
SceneParser.Flags#
Missing Documentation
SceneProperty.Type#
Missing Documentation