Hi there,
is there any method to extract the irradience value on a position in world?

Is it possible to store the irradience value inside of a variable or visuablize the value by plotting it in a graph?
(it is not practically possible for me to hover over the exact same position multiple times)
Reason beeing:
An Object should rotate so that it is looking at a receiver and reflect incoming light onto said receiver. To track data, it would be really helpful, if it would be possible to extract the light energy at a position on the receiving end.
Thanks in advance!
The last hovered pixel is stored in settings:
import carb
settings = carb.settings.get_settings()
print(settings.get("/iray/irradianceVal"))
You could potentially simulate the mouse movement, query that setting, and plot with omni.ui.Plot. Would that cover your use case?
Hi there.
First of all, thank you so much for your reply. The stored pixel is a nice way to implement it. Is there any way to simulate that mouse movement inside of omniverse or would that be a external application only?
First problem with an external thing which comes to my mind would be, if the stage (camera settings) isn’t 100% identical each time i’d request a polling of the setting.
My exact use case would be a simulation of different object settings - wich would require the extraction of the irradiance value of a position as identical as possible.
Edit:
Another thing that came up, by testing your approach. If i try to import ‘keyboard’ there is this error message showing up. I don’t quite get what the issue is. I’d like import the module ‘keyboard’ to track if a specific button is pressed and extract the irradiance value.
Hi @Jens_G94. Sorry for the delay. I was trying to put together an example of simulating the mouse the didn’t feel too hacky, but I should ask. Is there a reason why you wouldn’t just render the Irradiance pass to an image and query the image?
Hi @mati-nvidia, in my scene i have a light source (a), a reflecting object (b) and a receiving object (c). I’d like to get the numerical irrandiance values at c, depending on the distances between a, b and c. - optimally without hovering over c by hand. Those distances are subject to change in different simulation cycles.
What do you mean by “query the image”?
Thanks for your time, so far!
Hi @Jens_G94. By “query the image”, I mean once you’ve written the renderer image to memory or disk, you could open the image and query the pixel values in the image.