Skip to content

feat(rendering): add DLSS support #366

Draft
yuecideng wants to merge 22 commits into
mainfrom
feat/dlss-integration
Draft

feat(rendering): add DLSS support #366
yuecideng wants to merge 22 commits into
mainfrom
feat/dlss-integration

Conversation

@yuecideng

Copy link
Copy Markdown
Contributor

Description

This PR adds NVIDIA DLSS 3.5 (Ray Reconstruction + Super Resolution) support to EmbodiChain's simulation rendering layer.

Changes

  • New DlssCfg @configclass in embodichain/lab/sim/cfg.py with all 9 DLSS fields matching the dexsim C++ DLSSConfig struct: dlss_enabled, rayreconstruction_enabled, upscale_enabled, dlss_quality, render_width, render_height, target_width, target_height, exposure_compensation
  • RenderCfg.dlss — new optional field dlss: DlssCfg | None = None
  • SimulationManager._convert_sim_config — wires DLSS config to world_config.dlss_config with validation warnings for incompatible configurations (non-OfflineRT renderer, headless mode) and automatic window-to-target resolution alignment

References

  • dexsim/developer_docs/dlss/README_DLSS.md
  • dexsim/examples/python/hello_world_dlss.py

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have run the black . command to format the code base.
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Dependencies have been updated, if applicable.

yuecideng and others added 13 commits July 5, 2026 22:17
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Add optional fields for sun, direction, spot, rect, and mesh light types.
Change default intensity to 30.0 and default radius to 10.0.
All new fields have defaults — existing point-light code works unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Add set_direction, set_spot_angle, set_rect_wh, set_mesh, and
enable_shadow methods with runtime type validation. Update reset()
to apply only properties relevant to the light type. Guard
set_local_pose for direction-type lights (no position).

Co-Authored-By: Claude <noreply@anthropic.com>
Adds a length-1 broadcast branch so that (1,) tensors for inner/outer
spot angles and width/height are applied to all targeted env_ids.

Co-Authored-By: Claude <noreply@anthropic.com>
Add _LIGHT_TYPE_MAP mapping string type names to dexsim LightType enum.
Add validation warnings for mesh (no path) and rect (zero dimensions).
Unknown light types now log the list of supported types.

Co-Authored-By: Claude <noreply@anthropic.com>
Cover creation, type validation, broadcasting, from_dict, and
backward compatibility for point lights.

Also fix logger.warning() -> logger.log_warning() in sim_manager.py
and light.py (logger.warning() did not exist).

Co-Authored-By: Claude <noreply@anthropic.com>
logger.log_error raises RuntimeError, not ValueError.

Co-Authored-By: Claude <noreply@anthropic.com>
Add DlssCfg @configclass with full DLSS 3.5 parameter set (Ray Reconstruction,
Super Resolution, quality presets, resolution scaling, exposure compensation).
Wire DLSS config into SimulationManager._convert_sim_config with validation
warnings for incompatible configurations and automatic window-to-target
resolution alignment.

References: dexsim developer_docs/dlss/README_DLSS.md

Co-Authored-By: Claude <noreply@anthropic.com>
@yuecideng yuecideng added enhancement New feature or request rendering Things related to rendering (eg, performace, efficiency, bug) dexsim Things related to dexsim labels Jul 7, 2026
@yuecideng yuecideng changed the title feat(rendering): add DLSS 3.5 support to RenderCfg and SimulationManager feat(rendering): add DLSS support Jul 7, 2026
yuecideng and others added 9 commits July 7, 2026 14:10
- Change DLSSCfg.dlss_enabled default from True to False
- Change RenderCfg.dlss default from None to field(default_factory=DLSSCfg)
- Simplify SimulationManager._convert_sim_config to read dlss directly

Co-Authored-By: Claude <noreply@anthropic.com>
Base automatically changed from feat/light-type-expansion to main July 9, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dexsim Things related to dexsim enhancement New feature or request rendering Things related to rendering (eg, performace, efficiency, bug)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant