yuphin / Lumen

A Vulkan Raytracing framework for various bidirectional path tracing techniques
MIT License
449 stars 29 forks source link

How do I load complex scenes? #9

Closed ohmaya closed 1 year ago

ohmaya commented 1 year ago

I can load some scenes, for example: Lumen.exe scenes/occluded2.json

I can't load (the Tungsten file): Lumen.exe scenes/bedroom/scene.json

Thanks.

yuphin commented 1 year ago

I've updated the bedroom scene config so it should work now. (Commit) In general, loading complex scenes can be tricky because we need to accommodate different light types, camera orientation etc. into the scene hierarchy in addition to handling seemless switching between different integrators; but we don't properly handle most of those cases as of writing this. In the future, I will extend the scene importing functionality along with extended light types and materials. Until then, complex scenes in the wild will probably not work out of the box.

ohmaya commented 1 year ago

I still can't load bedroom.

yuphin commented 1 year ago

Have you tried the loading the scenes/bedroom/scene.xml file that's in the repo? Currently only Mitsuba files (xml) are supported. JSON files in the other scenes use Lumen's own format and not Tungsten's.

ohmaya commented 1 year ago

It works, thank you.