java.lang.Object
de.grogra.gpuflux.scene.FluxObject
de.grogra.gpuflux.scene.volume.FluxVolume
de.grogra.gpuflux.scene.volume.FluxSensor
de.grogra.gpuflux.scene.volume.FluxSensorArea
GPU-flux wrapper for
SensorArea + SensorParallelogram.
Extends FluxSensor so it is compatible with all existing
Vector<FluxSensor> collections throughout the GPU-flux pipeline
without requiring any changes to those classes.
The serialisation format is identical to FluxSensor so the existing
GPU shader pipeline accepts it without modification.
NOTE: the GPU shader currently performs a disc intersection test (|p|² ≤ 1
in local coordinates). After scaling by (1/halfLength, 1/halfWidth, 1) the
test becomes an ellipse in sensor space — a conservative approximation of
the true rectangle. The CPU path (LightModel / SceneVisitor) uses the exact
rectangular SensorParallelogram geometry.- Author:
- MH at YNL 2026
-
Field Summary
Fields inherited from class de.grogra.gpuflux.scene.volume.FluxVolume
bbox -
Constructor Summary
ConstructorsConstructorDescriptionFluxSensorArea(SensorArea sa, SensorParallelogram v, int groupIndex) Constructs a GPU-flux sensor area wrapping the givenSensorAreanode and its associatedSensorParallelogramgeometry volume. -
Method Summary
Modifier and TypeMethodDescriptionvoidgetExtent(BoundingBox3d bb, Variables temp) voidserialize(ComputeByteBuffer computeByteBuffer) Methods inherited from class de.grogra.gpuflux.scene.volume.FluxSensor
getGroupIndexMethods inherited from class de.grogra.gpuflux.scene.volume.FluxVolume
computeExtent, getBoundingBoxMethods inherited from class de.grogra.gpuflux.scene.FluxObject
getOffset, setOffset
-
Constructor Details
-
FluxSensorArea
Constructs a GPU-flux sensor area wrapping the givenSensorAreanode and its associatedSensorParallelogramgeometry volume.- Parameters:
sa- the scene-graph sensor area nodev- the corresponding parallelogram volumegroupIndex- GPU group index used to accumulate sensor results
-
-
Method Details
-
getExtent
- Overrides:
getExtentin classFluxSensor
-
serialize
- Overrides:
serializein classFluxSensor- Throws:
IOException
-