Blender  V3.3
Functions
cycles/kernel/camera/projection.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device float2 direction_to_spherical (float3 dir)
 
ccl_device float3 spherical_to_direction (float theta, float phi)
 
ccl_device float2 direction_to_equirectangular_range (float3 dir, float4 range)
 
ccl_device float3 equirectangular_range_to_direction (float u, float v, float4 range)
 
ccl_device float2 direction_to_equirectangular (float3 dir)
 
ccl_device float3 equirectangular_to_direction (float u, float v)
 
ccl_device float2 direction_to_fisheye (float3 dir, float fov)
 
ccl_device float3 fisheye_to_direction (float u, float v, float fov)
 
ccl_device float2 direction_to_fisheye_equisolid (float3 dir, float lens, float width, float height)
 
ccl_device_inline float3 fisheye_equisolid_to_direction (float u, float v, float lens, float fov, float width, float height)
 
ccl_device_inline float3 fisheye_lens_polynomial_to_direction (float u, float v, float coeff0, float4 coeffs, float fov, float width, float height)
 
ccl_device float2 direction_to_fisheye_lens_polynomial (float3 dir, float coeff0, float4 coeffs, float width, float height)
 
ccl_device float3 mirrorball_to_direction (float u, float v)
 
ccl_device float2 direction_to_mirrorball (float3 dir)
 
ccl_device_inline float3 panorama_to_direction (ccl_constant KernelCamera *cam, float u, float v)
 
ccl_device_inline float2 direction_to_panorama (ccl_constant KernelCamera *cam, float3 dir)
 
ccl_device_inline void spherical_stereo_transform (ccl_constant KernelCamera *cam, ccl_private float3 *P, ccl_private float3 *D)
 

Function Documentation

◆ direction_to_equirectangular()

ccl_device float2 direction_to_equirectangular ( float3  dir)

◆ direction_to_equirectangular_range()

ccl_device float2 direction_to_equirectangular_range ( float3  dir,
float4  range 
)

◆ direction_to_fisheye()

ccl_device float2 direction_to_fisheye ( float3  dir,
float  fov 
)

Definition at line 62 of file cycles/kernel/camera/projection.h.

References atan2f, cosf, make_float2, r, sinf, sqrtf, v, float3::x, float3::y, and float3::z.

Referenced by direction_to_panorama().

◆ direction_to_fisheye_equisolid()

ccl_device float2 direction_to_fisheye_equisolid ( float3  dir,
float  lens,
float  width,
float  height 
)

◆ direction_to_fisheye_lens_polynomial()

ccl_device float2 direction_to_fisheye_lens_polynomial ( float3  dir,
float  coeff0,
float4  coeffs,
float  width,
float  height 
)

◆ direction_to_mirrorball()

ccl_device float2 direction_to_mirrorball ( float3  dir)

◆ direction_to_panorama()

ccl_device_inline float2 direction_to_panorama ( ccl_constant KernelCamera cam,
float3  dir 
)

◆ direction_to_spherical()

CCL_NAMESPACE_BEGIN ccl_device float2 direction_to_spherical ( float3  dir)

◆ equirectangular_range_to_direction()

ccl_device float3 equirectangular_range_to_direction ( float  u,
float  v,
float4  range 
)

Definition at line 42 of file cycles/kernel/camera/projection.h.

References cosf, make_float3, sinf, v, and float3::x.

Referenced by equirectangular_to_direction(), and panorama_to_direction().

◆ equirectangular_to_direction()

ccl_device float3 equirectangular_to_direction ( float  u,
float  v 
)

◆ fisheye_equisolid_to_direction()

ccl_device_inline float3 fisheye_equisolid_to_direction ( float  u,
float  v,
float  lens,
float  fov,
float  width,
float  height 
)

Definition at line 105 of file cycles/kernel/camera/projection.h.

References asinf, cosf, height, make_float3, r, safe_acosf(), sinf, sqrtf, v, width, and zero_float3().

Referenced by panorama_to_direction().

◆ fisheye_lens_polynomial_to_direction()

ccl_device_inline float3 fisheye_lens_polynomial_to_direction ( float  u,
float  v,
float  coeff0,
float4  coeffs,
float  fov,
float  width,
float  height 
)

◆ fisheye_to_direction()

ccl_device float3 fisheye_to_direction ( float  u,
float  v,
float  fov 
)

Definition at line 73 of file cycles/kernel/camera/projection.h.

References cosf, make_float3, r, safe_acosf(), sinf, sqrtf, v, and zero_float3().

Referenced by panorama_to_direction().

◆ mirrorball_to_direction()

ccl_device float3 mirrorball_to_direction ( float  u,
float  v 
)

◆ panorama_to_direction()

ccl_device_inline float3 panorama_to_direction ( ccl_constant KernelCamera cam,
float  u,
float  v 
)

◆ spherical_stereo_transform()

ccl_device_inline void spherical_stereo_transform ( ccl_constant KernelCamera cam,
ccl_private float3 P,
ccl_private float3 D 
)

◆ spherical_to_direction()

ccl_device float3 spherical_to_direction ( float  theta,
float  phi 
)

Definition at line 23 of file cycles/kernel/camera/projection.h.

References cosf, make_float3, and sinf.