UsdLux lights: Quick Reference — Visualization (NVIDIA-Certified Professional: OpenUSD Development)
UsdLux Lights — Quick Reference This quick reference provides essential facts and definitions for UsdLux lights , a core component of the...
UsdLux Lights — Quick Reference
This quick reference provides essential facts and definitions for UsdLux lights, a core component of the Visualization domain in the NVIDIA-Certified Professional: OpenUSD Development certification.
Overview
- UsdLux is the schema within OpenUSD dedicated to defining and managing light sources in 3D scenes.
- UsdLux lights enable realistic illumination by specifying light types, intensities, colors, and shadows.
- They integrate seamlessly with usdGeom meshes, usdShade materials, and cameras to create photorealistic renders.
Key UsdLux Light Types
- DistantLight: Simulates sunlight or other distant light sources with parallel rays.
- SphereLight: Emits light uniformly from a spherical surface, useful for area lighting.
- RectLight: Emits light from a rectangular area, ideal for simulating windows or panels.
- DiskLight: Emits light from a circular disk-shaped area.
- SphereLight and RectLight support soft shadows and realistic falloff.
Core Attributes
- intensity: Controls the brightness of the light (float).
- color: Defines the RGB color of the emitted light (color3f).
- exposure: Adjusts the light's exposure in stops, allowing fine control over brightness.
- enableShadows: Boolean flag to enable or disable shadow casting.
- shadowDistance: Maximum distance for shadow calculation.
- normalize: For area lights, whether to normalize intensity by area.
Usage Rules and Best Practices
- Always set intensity and color to match the desired lighting mood.
- Use exposure to fine-tune brightness without changing intensity drastically.
- Enable shadows (enableShadows=true) for realistic depth and occlusion effects.
- Position lights carefully relative to usdGeom meshes to avoid unnatural illumination.
- Combine multiple UsdLux lights for complex lighting setups.
Example: Creating a RectLight
Step-by-step
- Define a RectLight prim in the USD stage.
- Set intensity to 50.0 for bright illumination.
- Set color to (1.0, 0.95, 0.9) for warm light.
- Enable shadows by setting enableShadows to true.
- Adjust exposure to 1.0 for subtle brightness boost.
This setup simulates a warm, soft light source suitable for indoor scenes.
References
More in this topic
UsdGeom meshes and cameras: Common Mistakes — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdLux lights — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdShade materials — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdGeom meshes and cameras: Quick Reference — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdShade materials: Common Mistakes — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdLux lights: Worked Example — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdLux lights: Common Mistakes — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdShade materials: Practice Questions — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdGeom meshes and cameras — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdShade materials: Worked Example — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdLux lights: Practice Questions — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdGeom meshes and cameras: Practice Questions — Visualization (NVIDIA-Certified Professional: OpenUSD Development)UsdShade materials: Quick Reference — Visualization (NVIDIA-Certified Professional: OpenUSD Development)Visualization — NVIDIA-Certified Professional: OpenUSD DevelopmentUsdGeom meshes and cameras: Worked Example — Visualization (NVIDIA-Certified Professional: OpenUSD Development)
📚
Category: NVIDIA-Certified Professional: OpenUSD Development
Ready to test your knowledge?
Put what you've learned into practice with a quick quiz and track your progress.
Test your knowledge →