Hello, does this volume node works with an alpha texture?
BlendLuxCore Development
Re: BlendLuxCore Development
Hard to answer. What do you want to do exactly?
Re: BlendLuxCore Development
I have added to BlendLuxCore something I should have done a long time ago: the ability for nodes to have multiple output sockets.
This makes more user-friendly nodes possible.
For example, I have added an "Alpha" socket to the image node:
To make it work with Bidir, I would have to add a new variable "cameraDir" to the HitPoint struct, I haven't checked yet if that's possible but I guess it is.
This makes more user-friendly nodes possible.
For example, I have added an "Alpha" socket to the image node:
I am currently looking into this, along with the new vector math textures.
To make it work with Bidir, I would have to add a new variable "cameraDir" to the HitPoint struct, I haven't checked yet if that's possible but I guess it is.
Re: BlendLuxCore Development
Thank a lot for even trying
And also for the alpha channel this will save a lot of time.
And also for the alpha channel this will save a lot of time.
Re: BlendLuxCore Development
Isn't the intoObject field what you are looking for
Re: BlendLuxCore Development
No, the Cycles "facing" property just has a weird name.
Internally it computes
Code: Select all
Dot(cameraDir, shadingNormal)
But front/backfacing info is also something I'd like to expose.
Re: BlendLuxCore Development
Great work B.Y.O.B.
Re: BlendLuxCore Development
I use the geometry normal but it is otherwise the same of intoObject: https://github.com/LuxCoreRender/LuxCor ... df.cpp#L52B.Y.O.B. wrote: ↑Mon Mar 11, 2019 12:31 pm No, the Cycles "facing" property just has a weird name.
Internally it computeshttps://github.com/dfelinto/blender/blo ... snel.h#L58Code: Select all
Dot(cameraDir, shadingNormal)
But front/backfacing info is also something I'd like to expose.
Re: BlendLuxCore Development
But intoObject is a boolean, while the Cycles node returns a float.Dade wrote: ↑Mon Mar 11, 2019 1:34 pm I use the geometry normal but it is otherwise the same of intoObject: https://github.com/LuxCoreRender/LuxCor ... df.cpp#L52
Re: BlendLuxCore Development
Well, do the Dot() inside the texture if you have but don't add a field to HitPoint object (i.e. GPU memory usage).B.Y.O.B. wrote: ↑Mon Mar 11, 2019 1:48 pmBut intoObject is a boolean, while the Cycles node returns a float.Dade wrote: ↑Mon Mar 11, 2019 1:34 pm I use the geometry normal but it is otherwise the same of intoObject: https://github.com/LuxCoreRender/LuxCor ... df.cpp#L52
Anyway, it is in general a wrong concept, Cycles is only a path tracer, how you are supposed to know the camera dir while tracing paths from the light sources (i.e. BiDir, PhotonGI, etc.) ?