Geometry vertex and triangle AOVs

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Geometry vertex and triangle AOVs

Post 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) ?
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Geometry vertex and triangle AOVs

Post by B.Y.O.B. »

It's a single island in Cycles. As it should be, we're definitely doing something wrong during export.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Geometry vertex and triangle AOVs

Post 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 ?
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Geometry vertex and triangle AOVs

Post 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
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Geometry vertex and triangle AOVs

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Geometry vertex and triangle AOVs

Post 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?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Geometry vertex and triangle AOVs

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Geometry vertex and triangle AOVs

Post 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?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Geometry vertex and triangle AOVs

Post 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.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Geometry vertex and triangle AOVs

Post by Dade »

Added information to the first post about new: "random" texture, shape "islandaov" and shape "randomtriangleaov".
Support LuxCoreRender project with salts and bounties
Post Reply