Spot light with image as a pattern

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Spot light with image as a pattern

Post by DorPrz »

Hello,
I am trying to render simple scene with spot light with image as a pattern.
The results does not show the pattern at all, what could be the problem?
Settings:
Image
Results:
Image
Pattern:
Image
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Spot light with image as a pattern

Post by Dade »

I'm not sure if .bmp is a supported format. LuxCore has projection lights (but not spot light with a texture image), I assume BlendLuxCore may switch automatically the light type. Can you post the test scene ?
Support LuxCoreRender project with salts and bounties
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Spot light with image as a pattern

Post by DorPrz »

I know for sure this .bmp map worked in older version of luxrender (1.x)
I couldn't attach the .bmp file so I uploaded it to here:
https://ufile.io/kjhta
untitled.blend
(545.53 KiB) Downloaded 168 times
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Spot light with image as a pattern

Post by B.Y.O.B. »

.bmp works and yes, the projector light source is automatically used if an image is set.
Your light source is just not bright enough.
If I set the gain to 40000, it is visible.
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Spot light with image as a pattern

Post by DorPrz »

I encounter very strange phenomena.
Sometimes the projector isn't texture correctly (about 10% of the time)
2 consecutive renders with the same settings may yield different results:
Image
Could be a bug?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Spot light with image as a pattern

Post by B.Y.O.B. »

Please upload a .blend file that shows the issue, with steps how to reproduce it.
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Spot light with image as a pattern

Post by DorPrz »

Attached the scene the texture is the same as what I uploaded few comments above.
run in the python console:

Code: Select all

for i in range(100):
	bpy.data.scenes['Scene'].render.filepath = r'C:\Users\dorp\Desktop\blenderGPU\tests\{}'.format(i)
	bpy.ops.render.render(write_still=True)
Change the path to somewhere else in your pc
Attachments
untitled.blend
(550.13 KiB) Downloaded 151 times
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Spot light with image as a pattern

Post by DorPrz »

I changed the time limit to 10 seconds to reproduce this faster (uploaded again)
And on the 4th render I got the same issue:
Image
Attachments
untitled.blend
(550.13 KiB) Downloaded 139 times
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Spot light with image as a pattern

Post by B.Y.O.B. »

Currently rendering the sequence.
By the way, I don't know what you aim for, but I could increase the rendering performance significantly by switching off the sky light in the world settings, and limiting path depth to 1.

Also: I assume you render on a GPU?
Can you try if this also happens if you only render on the CPU?
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Spot light with image as a pattern

Post by DorPrz »

Yes, I did render it on a GTX 1060 6GB
I will try on a cpu and report results
Post Reply