Search found 80 matches
- Thu May 24, 2018 2:42 pm
- Forum: User Support
- Topic: IRRADIANCE & GetOutputFloat
- Replies: 7
- Views: 5928
Re: IRRADIANCE & GetOutputFloat
Here my experimentation code: import sys from time import sleep, time WIDTH = 800 HEIGHT = 600 DEPTH = 3 sys.path.append('/home/mick/dev/DLO/lib') import pyluxcore def build_scene(): scene = pyluxcore.Scene() # First, the camera cam_props = pyluxcore.Properties() cam_props.SetFromString(""...
- Thu May 24, 2018 1:39 pm
- Forum: User Support
- Topic: IRRADIANCE & GetOutputFloat
- Replies: 7
- Views: 5928
Re: IRRADIANCE & GetOutputFloat
After session.GetFilm().GetOutputFloat(pyluxcore.FilmOutputType.IRRADIANCE, buffer, 0) the buffer holds some strange outliers. Visualized these are extreme bright pixels: image5.png Where do they come from? I don't see them on the normal RGB output. Is is an artifact of the ray tracing smoothed out ...
- Wed May 23, 2018 9:03 pm
- Forum: User Support
- Topic: IRRADIANCE & GetOutputFloat
- Replies: 7
- Views: 5928
Re: IRRADIANCE & GetOutputFloat
Thanks again for the sample code. It shows the contour line for the plan, as it is the only irradiated surface. I put a pillar on it, which creates a shadow. This difference is not identified. I guess I have to tweak the parameters of the CONTOUR_LINES plug-in. Unfortunately the SDL Manual just expl...
- Wed May 23, 2018 4:27 pm
- Forum: User Support
- Topic: IRRADIANCE & GetOutputFloat
- Replies: 7
- Views: 5928
IRRADIANCE & GetOutputFloat
Hi, I follow the suggestion to output type IRRADIANCE. renderengine.seed = 11 renderengine.type = PATHCPU sampler.type = SOBOL film.width = 800 film.height = 600 # The first plugin: the linear tonemapper multiplies the pixel colors with the scale film.imagepipelines.0.0.type = TONEMAP_LINEAR film.im...
- Tue May 22, 2018 9:12 pm
- Forum: User Support
- Topic: get started with python API
- Replies: 9
- Views: 7527
Re: get started with python API
Thanks again. The SDL manual was exactly what I was looking for. Now the next question: How do I control the power of the sun and environmental light (sky)? It seems to be normalized when change the gain, i.e. ".1 .1 .1" is the same as "1. 1. 1.". How can I deactivate this? And i...
- Tue May 22, 2018 7:21 pm
- Forum: User Support
- Topic: get started with python API
- Replies: 9
- Views: 7527
Re: get started with python API
Still I cannot really start since I'm lacking basic knowledge, and cannot find documentation. Where can I find which properties I can set for which objects? I found documentation for the blender python API. How relevant is this for LuxCore API? In the code I read that sky2 and sun can be linked? How...
- Tue May 22, 2018 7:13 pm
- Forum: User Support
- Topic: get started with python API
- Replies: 9
- Views: 7527
Re: get started with python API
At the moment I'm working with a command line which scp my script to the linux machine, ssh executes it, scp the image back, and displays is locally. That's ok for now.
- Tue May 22, 2018 3:50 pm
- Forum: User Support
- Topic: get started with python API
- Replies: 9
- Views: 7527
Re: get started with python API
I triggered a crash twice in a python console. But I could not reproduce. When I repeat the same then the import works fine. But the IPython kernel dies every time I do the import. >>> import sys >>> sys.path.append('/home/mick/dev/DLO') >>> import pyluxcore *** Error in `/home/mick/dev/.virtualenvs...
- Tue May 22, 2018 3:37 pm
- Forum: User Support
- Topic: get started with python API
- Replies: 9
- Views: 7527
Re: get started with python API
Thanks for the quick answer, and above all the sample. It confirms my assumption about the efficient way of working with LuxCore API. It immediately worked stand-alone. Unfortunately LuxCore seems to be very inflexible about paths which conflicts with other elements of my stack. Anyway I will get ar...
- Mon May 21, 2018 8:17 pm
- Forum: User Support
- Topic: get started with python API
- Replies: 9
- Views: 7527
get started with python API
Hi, I have the vague impression that LuxCore is what I'm looking for: I need to generate scenes with optical lenses in python, trace them with physical precision, and measure light intensity on a projection surface. My main problem is finding the necessary documentation to get started. Do I need Ble...