Page 2 of 2

Re: Curvature using hitpoint info

Posted: Wed Oct 09, 2019 4:08 pm
by Egert_Kanep
I used subdivision modifier and applied it at 2 levels of subdivision

Re: Curvature using hitpoint info

Posted: Wed Oct 09, 2019 6:13 pm
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)?

Re: Curvature using hitpoint info

Posted: Wed Oct 09, 2019 7:26 pm
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.

Re: Curvature using hitpoint info

Posted: Thu Oct 10, 2019 10:58 am
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

Re: Curvature using hitpoint info

Posted: Fri Oct 11, 2019 8:20 am
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".

Re: Curvature using hitpoint info

Posted: Sat Oct 12, 2019 9:23 pm
by Egert_Kanep
Maybe this is a bug in blender, exporting object as obj and then importing back seemed to fix this as well.

Re: Curvature using hitpoint info

Posted: Sun Oct 13, 2019 9:07 am
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

Re: Curvature using hitpoint info

Posted: Sun Oct 13, 2019 9:29 am
by Egert_Kanep
Awesome, so now it doesn't matter if mesh is a bit wonky

Re: Curvature using hitpoint info

Posted: Sun Oct 13, 2019 10:29 am
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.

Re: Curvature using hitpoint info

Posted: Sun Oct 13, 2019 2:56 pm
by Racleborg
Great, thanks. :)