Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify Volume with Transform and Camera Inside Volume in a Scene File #415

Open
Fiona730 opened this issue Feb 22, 2024 · 0 comments
Open

Comments

@Fiona730
Copy link

Fiona730 commented Feb 22, 2024

The medium that camera rays start out in must be specified before world block. However, in order to specify a volume with some transform (which is of particular interest for heterogeneous volume), it must be placed after WorldBegin, since only objects there are allowed to have attributes and hence incorporate transformation information.

This leads to a situation where a medium is referenced (for camera ray) before its definition. With such an incorrectly-defined scene file, PBRT displays weird behavior: sometimes it is able to run the file, other times it would output "xxx medium is not defined". This random crashing behavior seems to be related to some caching mechanism.

Any help / information regarding this aspect would be very much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant