faces.render.prt.parametricrendering.techniques.parameters
UniversalPrtParameters
Companion object UniversalPrtParameters
case class UniversalPrtParameters extends TechniqueParameters with BounceParameters with Product with Serializable
Parameters for the universal PRT technique allowing the usage of arbitrary BRDFs.
- Alphabetic
- By Inheritance
- UniversalPrtParameters
- Serializable
- Serializable
- Product
- Equals
- BounceParameters
- TechniqueParameters
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
TThis = UniversalPrtParameters
- Attributes
- protected
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
bounces: Int
- Definition Classes
- UniversalPrtParameters → BounceParameters
- val brdf: MeshSurfaceSHBrdfProvider
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
val
gouraudShadingEnabled: Boolean
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSingleBounce: Boolean
Returns true if bounces is 1 or less.
Returns true if bounces is 1 or less.
- Definition Classes
- BounceParameters
-
val
mesh: TriangleMesh3D
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
noInterreflections(): TThis
Reflections will be turned off.
Reflections will be turned off. Only occlusion will be simulated during precomputation.
- Definition Classes
- BounceParameters
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
occlusionEnabled: Boolean
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
val
occlusionRaycastSamples: VectorsOnUnitSphere
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
def
setGouraudShadingEnabled(useGouraudShading: Boolean): UniversalPrtParameters
Enables or disables vertex color interpolation.
Enables or disables vertex color interpolation. If enabled, the lighting model will be evaluated per vertex rather than per pixel
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
def
setOcclusionEnabled(occlusionEnabled: Boolean): UniversalPrtParameters
Enables or disables occlusion simulation.
Enables or disables occlusion simulation. If disabled, there will be no light effects due to geometry, i.e. occlusion and reflections.
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
val
shBands: Int
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
def
shadeInObjectSpace: UniversalPrtParameters
Disables surface space shading.
Disables surface space shading.
Transfer data will not be combined with a transformation from object to surface space. Please note that this setting will be overridden if an instance of faces.render.prt.transfersimulation.ObjectToSurfaceSpaceTransfer is explicitly used for rendering.
For more information on surface space vs object space shading please refer to shadeInSurfaceSpace.
-
def
shadeInSurfaceSpace: UniversalPrtParameters
Shading will be performed in surface space.
Shading will be performed in surface space.
Surface space shading does not require the rotation of the SH expanded BRDF to object space. Instead, the light will be transformed into surface space using the transfer matrices. This process involves faces.render.prt.transfersimulation.ObjectToSurfaceSpaceTransfer.
-
def
summary: ParameterSummary
Summarizes the technique parameters in a ParameterSummary.
Summarizes the technique parameters in a ParameterSummary.
- Definition Classes
- UniversalPrtParameters → BounceParameters → TechniqueParameters
- val surfaceSpaceShadingEnabled: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tangentSpace: TangentSpaceProvider
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withArbitraryTangentSpace(smoothTangents: Boolean = true): UniversalPrtParameters
An arbitrary but reproducible tangent space will be generated for the rendered geometry.
-
def
withBsdf(bsdf: GreyOrRGB[MeshSurfaceProperty[SHBrdf with CosineTerm]]): UniversalPrtParameters
Use a SH expansion of a BRDF combined with the rendering equation's cosine term.
Use a SH expansion of a BRDF combined with the rendering equation's cosine term. The BRDF can vary over the surface of the mesh.
- bsdf
The BRDF to use for rendering.
-
def
withColoredBsdf(color: MeshSurfaceProperty[RGBA], brdf: BRDF[Double], tabulationResolution: Int = ..., tabulationSamples: Int = ...): UniversalPrtParameters
Use the specified BRDF for rendering which will be combined with the surface color of the mesh.
Use the specified BRDF for rendering which will be combined with the surface color of the mesh.
The BRDF will be tabulated using the functionality of TabulatedSHBrdf.
- color
The mesh's surface color.
- brdf
The BRDF to use.
- tabulationResolution
The resolution at which to tabulate the BRDF.
- tabulationSamples
The number of samples that will be used to to tabulate the BRDF.
-
def
withColoredBsdf(color: MeshSurfaceProperty[RGBA], tabulationResolution: Int, tabulationSamples: Int): UniversalPrtParameters
Use the default Lambert BRDF for rendering which will be combined with the surface color of the mesh.
Use the default Lambert BRDF for rendering which will be combined with the surface color of the mesh.
The BRDF will be tabulated using the functionality of TabulatedSHBrdf.
- color
The mesh's surface color.
- tabulationResolution
The resolution at which to tabulate the BRDF.
- tabulationSamples
The number of samples that will be used to to tabulate the BRDF.
-
def
withColoredBsdf(color: MeshSurfaceProperty[RGBA]): UniversalPrtParameters
Use the default Lambert BRDF for rendering which will be combined with the surface color of the mesh.
Use the default Lambert BRDF for rendering which will be combined with the surface color of the mesh.
The BRDF will be tabulated using the functionality of TabulatedSHBrdf.
- color
The mesh's surface color.
-
def
withConstantBsdf(bsdf: GreyOrRGB[SHBrdf with CosineTerm]): UniversalPrtParameters
Use a constant SH expansion of a BRDF combined with the rendering equation's cosine term.
-
def
withConstantBsdf(brdf: GreyOrRGB[BRDF[Double]], tabulationResolution: Int = ..., tabulationSamples: Int = ...): UniversalPrtParameters
Use a constant BRDF over the surface of the mesh.
Use a constant BRDF over the surface of the mesh.
The BRDF will be tabulated using the functionality of TabulatedSHBrdf.
- brdf
The BRDF to use.
- tabulationResolution
The resolution at which to tabulate the BRDF.
- tabulationSamples
The number of samples that will be used to to tabulate the BRDF.
-
def
withDefaultBsdf: UniversalPrtParameters
Use the default, Lambert BRDF for rendering.
-
def
withDefaults: UniversalPrtParameters
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
def
withGouraudShading: TThis
Enables vertex color interpolation.
Enables vertex color interpolation. The lighting model will be evaluated per vertex rather than per pixel. Can be disabled by calling 'withPixelShading'.
- Definition Classes
- TechniqueParameters
-
def
withLightBounces(bounces: Int): UniversalPrtParameters
Specifies the number of light bounces that will be simulated during precomputation.
Specifies the number of light bounces that will be simulated during precomputation. Use a value of 1 one or less for occlusion-only simulation.
- Definition Classes
- UniversalPrtParameters → BounceParameters
-
def
withOcclusion: TThis
Enables occlusion simulation (default).
Enables occlusion simulation (default).
- Definition Classes
- TechniqueParameters
-
def
withOcclusionRaycastSamples(occlusionRaycastSamples: VectorsOnUnitSphere): UniversalPrtParameters
Specifies the sample directions that will be used for occlusion raycasting.
Specifies the sample directions that will be used for occlusion raycasting.
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
def
withOcclusionRaycastSamples(count: Int): TThis
- Definition Classes
- TechniqueParameters
-
def
withPixelShading: TThis
Disables vertex color interpolation.
Disables vertex color interpolation. The lighting model will be evaluated per pixel. Can be undone by calling 'withGouraudShading'.
- Definition Classes
- TechniqueParameters
-
def
withShBands(count: Int): UniversalPrtParameters
Sets the number of SH bands to use for simulation and rendering.
Sets the number of SH bands to use for simulation and rendering.
- Definition Classes
- UniversalPrtParameters → TechniqueParameters
-
def
withTangentSpace(tangentSpace: TangentSpace): UniversalPrtParameters
Specifies a specific tangent space for the rendered geometry.
-
def
withTangentSpaceFromTexture(textureCoordinates: SurfacePointProperty[Point[_2D]], smoothTangents: Boolean = true): UniversalPrtParameters
A tangent space will be generated for the rendered mesh based on the specified texture coordinates.
-
def
withoutOcclusion: TThis
Disables occlusion simulation.
Disables occlusion simulation. There will be no light effects due to geometry, i.e. occlusion and reflections.
- Definition Classes
- TechniqueParameters