Displacement: mismatch between viewport and final render

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.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Displacement: mismatch between viewport and final render

Post by Sharlybg »

Viewport and final are not matching each other.
viewport vs final render.jpg
Blend :
Antelope__cayon.blend
(2.07 MiB) Downloaded 172 times
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Displacement: mismatch between viewport and final render

Post by B.Y.O.B. »

You have to apply the scale on the object with displacement, then multiply the displacement height with the applied scale (i.e. 10 in this case).
Attachments
Antelope__cayon_fixed.blend
(2.09 MiB) Downloaded 145 times
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Displacement: mismatch between viewport and final render

Post by B.Y.O.B. »

I'm honestly considering to export every object with scale != 1 as instance even in final render at this point, because of tons of mismatches between render and viewport like this one.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Displacement: mismatch between viewport and final render

Post by Sharlybg »

You have to apply the scale on the object with displacement, then multiply the displacement height with the applied scale (i.e. 10 in this case).
What Covid19 remedy :lol:
More seriously this isn't a long term solution. I like the current viewport behaviour.
I'm honestly considering to export every object with scale != 1 as instance even in final render at this point, because of tons of mismatches between render and viewport like this one.
Wanted to make a Tutorial about it but this behaviour add a complexity layer we shouldn't have or teach to someone.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Displacement: mismatch between viewport and final render

Post by Sharlybg »

BuUUUT Am I sure to be alive 5 days from now with this time at my disposal :lol:

going to make the tutorial right now :mrgreen:
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Displacement: mismatch between viewport and final render

Post by Sharlybg »

Now it is a mismatch between texture transformation displacement. normally it should be stretched.
antelope__canyon.blend
(2.03 MiB) Downloaded 154 times
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Displacement: mismatch between viewport and final render

Post by B.Y.O.B. »

final and viewport look identical to me, am I missing something?
Attachments
Screenshot from 2020-03-30 12-15-33.png
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Displacement: mismatch between viewport and final render

Post by Sharlybg »

B.Y.O.B. wrote: Mon Mar 30, 2020 10:16 am final and viewport look identical to me, am I missing something?
yes you miss. i mean in the viewport displacement doesn't match the voronoi texture stretching. connect the displacement node to see if it match texture transformation.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Displacement: mismatch between viewport and final render

Post by Sharlybg »

My bad i didn't select the right mapping transformation mode (Should be UV not Global)
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Displacement: mismatch between viewport and final render

Post by B.Y.O.B. »

I think there's a bug here.
Post Reply