Curvature using hitpoint info

Use this forum for general user support and related questions.
User avatar
Egert_Kanep
Posts: 157
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep » Wed Oct 09, 2019 4:08 pm

I used subdivision modifier and applied it at 2 levels of subdivision

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

Re: Curvature using hitpoint info

Post by B.Y.O.B. » Wed Oct 09, 2019 6:13 pm

Dade wrote:
Wed Oct 09, 2019 3:57 pm
Dade wrote:
Wed Oct 09, 2019 3:39 pm
I may have found the problem: this suzanne model has apparently a LOT of duplicate vertices.
@B.Y.O.B. I receive a mesh with 6531 duplicated vertices out of 36494 but if I do a "mesh => clena up => merge vertices by distance", Blender tells me there are no duplicates. What is going on ? Is it the result of some applied modifier :?:
You mean they are duplicate in LuxCore?
Maybe the Blender -> LuxCore conversion function is screwing something up (I rewrote it for Blender 2.80)?
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Developer
Posts: 3143
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Curvature using hitpoint info

Post by Dade » Wed Oct 09, 2019 7:26 pm

B.Y.O.B. wrote:
Wed Oct 09, 2019 6:13 pm
Dade wrote:
Wed Oct 09, 2019 3:57 pm
Dade wrote:
Wed Oct 09, 2019 3:39 pm
I may have found the problem: this suzanne model has apparently a LOT of duplicate vertices.
@B.Y.O.B. I receive a mesh with 6531 duplicated vertices out of 36494 but if I do a "mesh => clena up => merge vertices by distance", Blender tells me there are no duplicates. What is going on ? Is it the result of some applied modifier :?:
You mean they are duplicate in LuxCore?
Maybe the Blender -> LuxCore conversion function is screwing something up (I rewrote it for Blender 2.80)?
May be, I'm not sure but if I look for duplicated vertices in the Suzanne, I found thousands of them.
Support LuxCoreRender project with salts and bounties

User avatar
Egert_Kanep
Posts: 157
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep » Thu Oct 10, 2019 10:58 am

Dade/B.Y.O.B , could you try this scene? I used different method to subdivide the object and it seems to give better results. Instead of applying subdivision modifer I subdivided object in edit mode
Attachments
suzanne_pointiness_02.blend
(2.69 MiB) Downloaded 6 times

User avatar
Dade
Developer
Developer
Posts: 3143
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Curvature using hitpoint info

Post by Dade » Fri Oct 11, 2019 8:20 am

Egert_Kanep wrote:
Thu Oct 10, 2019 10:58 am
Dade/B.Y.O.B , could you try this scene? I used different method to subdivide the object and it seems to give better results. Instead of applying subdivision modifer I subdivided object in edit mode
Yes, the "wrong" Suzanne has 3357 duplicate vertices over 10496 while the "right" has only 355 over 8076. Pointiness, to work well, needs a uniform surface, duplicate vertices cause "seams".
Support LuxCoreRender project with salts and bounties

User avatar
Egert_Kanep
Posts: 157
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep » Sat Oct 12, 2019 9:23 pm

Maybe this is a bug in blender, exporting object as obj and then importing back seemed to fix this as well.

User avatar
Dade
Developer
Developer
Posts: 3143
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Curvature using hitpoint info

Post by Dade » Sun Oct 13, 2019 9:07 am

Pointiness shape is now able to handle duplicate/similar vertices like if they were the same. This a rendering with old Pointiness:

old.jpg

and this with the new one:

new.jpg
Support LuxCoreRender project with salts and bounties

User avatar
Egert_Kanep
Posts: 157
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep » Sun Oct 13, 2019 9:29 am

Awesome, so now it doesn't matter if mesh is a bit wonky

User avatar
Dade
Developer
Developer
Posts: 3143
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Curvature using hitpoint info

Post by Dade » Sun Oct 13, 2019 10:29 am

Egert_Kanep wrote:
Sun Oct 13, 2019 9:29 am
Awesome, so now it doesn't matter if mesh is a bit wonky
Yup.
Support LuxCoreRender project with salts and bounties

Racleborg
Posts: 458
Joined: Sat Apr 07, 2018 10:31 am
Location: UK

Re: Curvature using hitpoint info

Post by Racleborg » Sun Oct 13, 2019 2:56 pm

Great, thanks. :)

Post Reply