Curvature using hitpoint info

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
User avatar
Egert_Kanep
Posts: 237
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep »

I used subdivision modifier and applied it at 2 levels of subdivision
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Curvature using hitpoint info

Post by B.Y.O.B. »

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

Re: Curvature using hitpoint info

Post by Dade »

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: 237
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep »

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

Re: Curvature using hitpoint info

Post by Dade »

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: 237
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep »

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: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Curvature using hitpoint info

Post by Dade »

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: 237
Joined: Tue Mar 13, 2018 10:34 am

Re: Curvature using hitpoint info

Post by Egert_Kanep »

Awesome, so now it doesn't matter if mesh is a bit wonky
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Curvature using hitpoint info

Post by Dade »

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: 621
Joined: Sat Apr 07, 2018 10:31 am
Location: UK

Re: Curvature using hitpoint info

Post by Racleborg »

Great, thanks. :)
Post Reply