ISSUE: Collection Instancing: view port okay, final bad

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.
Post Reply
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

ISSUE: Collection Instancing: view port okay, final bad

Post by FarbigeWelt »

Well, I guess you agree there is obviously gone something wrong...
Final Render
Final Render
View Port
View Port
Blender 2.82
BlendLuxCore 2.3 beta3, latest build, 2020.03.12
LuxCoreRender 2.3 beta3, latest build, 2020.03.07


Please, check scene file and fix the issue.
Attachments
Oil Pump and Gas Flares_Render Error.7z
Blender Scene
(282.16 KiB) Downloaded 143 times
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ISSUE: Collection Instancing: view port okay, final bad

Post by B.Y.O.B. »

Two completely different and unrelated evaluated objects are sharing the same memory address in the depsgraph.
I am now taking the memory address of the original objects as keys, which seems to work.

It may be that Blender is deleting the evaluated object at the end of the loop iteration and it can happen that the same memory space is afterwards used for the next object.
Thanks for the report, this bug would have been super hard to spot otherwise.

I fixed the problem.

(edit: I realized that I had already found this behaviour in the past, unfortunately I forgot it when optimizing the dupli export - silly me).
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

SOLVED: Collection Instancing: view port okay, final bad

Post by FarbigeWelt »

B.Y.O.B. wrote: Fri Mar 13, 2020 3:40 pm I fixed the problem.

Hi B.Y.O.B.
Thank you very much for solving the problem :!:
The issue is fixed in the current latest builds. :D

As you can see, collections are instanced in final render as expected.
2020-03-14 Final fixed
2020-03-14 Final fixed
Blender 2.82
BlendLuxCore 2.3 beta3, latest build_67a8a70, 2020.03.13
LuxCoreRender 2.3 beta3, latest build_410a62f, 2020.03.13
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
Post Reply