-
Notifications
You must be signed in to change notification settings - Fork 187
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
HDRI light example #523
Comments
There are two issues with above code:
|
Thank you very much for your help! The only thing i had to do in addition to the suggested changes was to manually change the exposure of the hdri - image by multiplying the floating point pixel values by the needed exposure value. If the values of the hrdi texture are too small, the hrdi light is basically black resulting in no illumination at all. If the values are too high the hrdi light (and therefore background of the rendered image) is completely white giving an overexposure of the scene. While it is not too much of an additional work to do this, it might be convenient to have an exposure texture parameter in the OSPRay api for hrdi textures. By the way the hrdi texture light works just as well with non-hrdi images like png and jpg (the pixel values only have to be converted to floating point values by dividing the byte values by 256) with the advantage that no exposure has to be done to the pixel values. While the color accuracy of course is not as precise as with hrdi images, the rendered images are in general more than acceptable. It might be nice to have a bit more detail in the OSPray documentation on how resource management is done in general (e.g. self managed vs. ospray managed resources, functions needed) because at the moment i find the documentation a bit lacking in this regard. And since there is not so much example / tutorial code included in the OSPRay-SDK and you can't find much on the web (blogs etc.) at the moment i find myself often a bit on the trial and error side. Even the OSP_LOG_DEBUG level is a bit terse for debugging. Other than that OSPray works really great and generates beautiful visualizations. Keep on the good work! Regards. |
Thank you for your feedback. The HDRI light needs an OSPTexture, which can be of format The HDRI light has a
|
Hello,
i am trying to render a scene with an OSPRay hdri light using the actual OSPRay Version 2.9 with the C-API.
The hdri - image is loaded with the stb image loader which gives a pointer to a floating point array with the image data as a result.
I tried adding the hdri-light to the scene using the following code (which sadly does not work):
I checked that the texture image data is successfully loaded. But by trying to render the scene, my program simply exits returning -1 to the shell.
Using an OSPRay sun-sky-light or ambient light instead of the hdri light everything works fine and my scene is rendered beautifully.
What am i doing wrong here?
Thank you very much in advance.
Regards.
The text was updated successfully, but these errors were encountered: