Page 2 of 3

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 4:14 pm
by Dade
B.Y.O.B. wrote: Mon Mar 23, 2020 1:19 pm I guess each flat-shaded face has an exclusive set of vertices?

I'm getting 24 verts when I use the Blender .ply exporter, and 36 when I use the LuxCore FILESAVER engine.

Maybe we're doing something wrong in here? https://github.com/LuxCoreRender/LuxCor ... r.cpp#L835
Omg....

Exporting a quad using 6 vertices instead of 4 is wrong for sure.

How does Cycles work with the default cube from the "island" point of view ? Is it considered a single island or 6 (one for each face) ?

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 4:21 pm
by B.Y.O.B.
It's a single island in Cycles. As it should be, we're definitely doing something wrong during export.

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 4:33 pm
by Dade
B.Y.O.B. wrote: Mon Mar 23, 2020 4:21 pm It's a single island in Cycles. As it should be, we're definitely doing something wrong during export.
So, apparently Cycles "islands" are base only on vertices position and they disregard Normals/UVs/etc. (?)

Is there a way to test this assumption ? Like with a cube with split normals to see if we still get a single island ?

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 4:43 pm
by B.Y.O.B.
Dade wrote: Mon Mar 23, 2020 4:33 pm So, apparently Cycles "islands" are base only on vertices position and they disregard Normals/UVs/etc. (?)
Yes, the Cycles implementation seems to check only vertices and their edges for connections: https://github.com/sobotka/blender/blob ... h.cpp#L662

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 4:47 pm
by Dade
B.Y.O.B. wrote: Mon Mar 23, 2020 4:43 pm
Dade wrote: Mon Mar 23, 2020 4:33 pm So, apparently Cycles "islands" are base only on vertices position and they disregard Normals/UVs/etc. (?)
Yes, the Cycles implementation seems to check only vertices and their edges for connections: https://github.com/sobotka/blender/blob ... h.cpp#L662
Ok, I will do the same.

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 4:55 pm
by B.Y.O.B.
However we should still fix the Blender -> LuxCore mesh conversion, do you want to take that on or should I have a look at it?

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 4:58 pm
by Dade
B.Y.O.B. wrote: Mon Mar 23, 2020 4:55 pm However we should still fix the Blender -> LuxCore mesh conversion, do you want to take that on or should I have a look at it?
I'm not going to touch it for the moment.

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 7:04 pm
by lacilaci
B.Y.O.B. wrote: Mon Mar 23, 2020 4:55 pm However we should still fix the Blender -> LuxCore mesh conversion, do you want to take that on or should I have a look at it?
Could this also fix custom normals for luxcore or that's a separate issue?

Re: Geometry vertex and triangle AOVs

Posted: Mon Mar 23, 2020 7:14 pm
by B.Y.O.B.
lacilaci wrote: Mon Mar 23, 2020 7:04 pm Could this also fix custom normals for luxcore or that's a separate issue?
That's another matter.

Re: Geometry vertex and triangle AOVs

Posted: Tue Mar 24, 2020 3:49 pm
by Dade
Added information to the first post about new: "random" texture, shape "islandaov" and shape "randomtriangleaov".