BlendLuxCore Development

Discussion related to the Engine functionality, implementations and API.
User avatar
B.Y.O.B.
Developer
Posts: 2253
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: BlendLuxCore Development

Post by B.Y.O.B. » Mon Mar 11, 2019 2:51 pm

Dade wrote:
Mon Mar 11, 2019 2:38 pm
Well, do the Dot() inside the texture if you have but don't add a field to HitPoint object (i.e. GPU memory usage).
I don't need the extra field on the GPU because Bidir doesn't work on the GPU (I can just use fixedDir there because it's always the camera vector).
Dade wrote:
Mon Mar 11, 2019 2:38 pm
how you are supposed to know the camera dir while tracing paths from the light sources (i.e. BiDir, PhotonGI, etc.) ?
I thought I could maybe calculate
cameraDir = camera.position - hitPoint.p;
Can I check the camera position when initializing hitPoint?
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Posts: 2133
Joined: Mon Dec 04, 2017 8:36 pm

Re: BlendLuxCore Development

Post by Dade » Mon Mar 11, 2019 3:02 pm

B.Y.O.B. wrote:
Mon Mar 11, 2019 2:51 pm
I thought I could maybe calculate
cameraDir = camera.position - hitPoint.p;
Can I check the camera position when initializing hitPoint?
Uh ? Can you recap of what we are talking about ? I have lost you.

An HitPoint is the result of a ray hitting a surface or of a volume scattering event. Most of the times a ray doesn't come from a camera (i.e it comes form a light source, another hit point, another volume scattering event, etc.).
Support LuxCoreRender project with salts and bounties

User avatar
B.Y.O.B.
Developer
Posts: 2253
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: BlendLuxCore Development

Post by B.Y.O.B. » Mon Mar 11, 2019 4:29 pm

Yes, I was wrong, taking the camera dir is bullshit.

I think this kind of texture can only work in a unidirectional pathtracer, as you said it makes no sense for a lighttracer.
In my opinion this means it shouldn't be added at all, inconsistency between engines is bad.
@Sharlybg the dust effect you mentioned is possible without this by the way, for that you only need Dot(hitPoint.shadeN, Vector(0, 0, 1)).

Here is the result of

Code: Select all

Dot(hitPoint.shadeN, hitPoint.fixedDir)
for pathcpu, lightcpu, bidircpu and cycles:
Attachments
facing_2_path.png
path
facing_2_lightcpu.png
light
facing_2_bidir.png
bidir
facing_2_cycles.png
cycles (ignore light brightness differences)
Support LuxCoreRender project with salts and bounties

User avatar
Sharlybg
Donor
Posts: 1136
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: BlendLuxCore Development

Post by Sharlybg » Tue Mar 12, 2019 10:38 am

It doesn't work on light cpu. so we are not going to be able to tweak this viewport render ? how reproduce it in blendluxcore node system ;)
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA

Post Reply