com.jme3.shadow
クラス ShadowUtil

java.lang.Object
  上位を拡張 com.jme3.shadow.ShadowUtil

public class ShadowUtil
extends java.lang.Object

Includes various useful shadow mapping functions. See: http://appsrv.cse.cuhk.edu.hk/~fzhang/pssm_vrcia/ http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html for more info.


コンストラクタの概要
ShadowUtil()
           
 
メソッドの概要
static BoundingBox computeBoundForPoints(Vector3f[] pts, Matrix4f mat)
          Compute bounds from an array of points
static BoundingBox computeBoundForPoints(Vector3f[] pts, Transform transform)
          Compute bounds from an array of points
static BoundingBox computeUnionBound(GeometryList list, Matrix4f mat)
          Compute bounds of a geomList
static BoundingBox computeUnionBound(GeometryList list, Transform transform)
          Compute bounds of a geomList
static BoundingBox computeUnionBound(java.util.List<BoundingVolume> bv)
          Computes the bounds of multiple bounding volumes
static void updateFrustumPoints(Camera viewCam, float nearOverride, float farOverride, float scale, Vector3f[] points)
          Updates the points array to contain the frustum corners of the given camera.
static void updateFrustumPoints2(Camera viewCam, Vector3f[] points)
          Updates a points arrays with the frustum corners of the provided camera.
static void updateShadowCamera(Camera shadowCam, Vector3f[] points)
          Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners)
static void updateShadowCamera(GeometryList occluders, GeometryList receivers, Camera shadowCam, Vector3f[] points)
          Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners) and the shadow occluder objects.
static void updateShadowCamera(GeometryList occluders, GeometryList receivers, Camera shadowCam, Vector3f[] points, GeometryList splitOccluders)
          Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners) and the shadow occluder objects.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ShadowUtil

public ShadowUtil()
メソッドの詳細

updateFrustumPoints2

public static void updateFrustumPoints2(Camera viewCam,
                                        Vector3f[] points)
Updates a points arrays with the frustum corners of the provided camera.

パラメータ:
viewCam -
points -

updateFrustumPoints

public static void updateFrustumPoints(Camera viewCam,
                                       float nearOverride,
                                       float farOverride,
                                       float scale,
                                       Vector3f[] points)
Updates the points array to contain the frustum corners of the given camera. The nearOverride and farOverride variables can be used to override the camera's near/far values with own values. TODO: Reduce creation of new vectors

パラメータ:
viewCam -
nearOverride -
farOverride -

computeUnionBound

public static BoundingBox computeUnionBound(GeometryList list,
                                            Transform transform)
Compute bounds of a geomList

パラメータ:
list -
transform -
戻り値:

computeUnionBound

public static BoundingBox computeUnionBound(GeometryList list,
                                            Matrix4f mat)
Compute bounds of a geomList

パラメータ:
list -
mat -
戻り値:

computeUnionBound

public static BoundingBox computeUnionBound(java.util.List<BoundingVolume> bv)
Computes the bounds of multiple bounding volumes

パラメータ:
bv -
戻り値:

computeBoundForPoints

public static BoundingBox computeBoundForPoints(Vector3f[] pts,
                                                Transform transform)
Compute bounds from an array of points

パラメータ:
pts -
transform -
戻り値:

computeBoundForPoints

public static BoundingBox computeBoundForPoints(Vector3f[] pts,
                                                Matrix4f mat)
Compute bounds from an array of points

パラメータ:
pts -
mat -
戻り値:

updateShadowCamera

public static void updateShadowCamera(Camera shadowCam,
                                      Vector3f[] points)
Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners)

パラメータ:
occluders -
lightCam -
points -

updateShadowCamera

public static void updateShadowCamera(GeometryList occluders,
                                      GeometryList receivers,
                                      Camera shadowCam,
                                      Vector3f[] points)
Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners) and the shadow occluder objects.

パラメータ:
occluders -
lightCam -
points -

updateShadowCamera

public static void updateShadowCamera(GeometryList occluders,
                                      GeometryList receivers,
                                      Camera shadowCam,
                                      Vector3f[] points,
                                      GeometryList splitOccluders)
Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners) and the shadow occluder objects.

パラメータ:
occluders -
lightCam -
points -