HainesAJ Posted April 21, 2017 Share Posted April 21, 2017 I'm having trouble figuring out this phong/normals issue. The picture shows it best but I extruded a shell to give it some depth. On the edge I pointed the normals where I thought they needed to be but I'm still getting a weird shading issue. I'm not sure whats causing it. Any ideas how to fix this? Thanks AJ Quote Link to comment Share on other sites More sharing options...
DaJuice Posted April 21, 2017 Share Posted April 21, 2017 It's hard to tell what's going on and I'm not sure what result you are after. Try appending a Normal SOP and maybe upload the scene. Quote Link to comment Share on other sites More sharing options...
HainesAJ Posted April 24, 2017 Author Share Posted April 24, 2017 @DaJuice Thanks for the suggestion. That did help. It didn't fully fix it but it's much closer. I attached the scene file. The spline that is used to cut the sphere will eventually move I think which may cause problems but for now just getting it working in still form is what I'm after. SphereBoole_EdgeProblem.hiplc Quote Link to comment Share on other sites More sharing options...
3dome Posted April 24, 2017 Share Posted April 24, 2017 it's because you have a lot of "useless" edges on the seam. delete them and it should work Quote Link to comment Share on other sites More sharing options...
HainesAJ Posted April 24, 2017 Author Share Posted April 24, 2017 Thanks@3dome That is probably it. I'm kind of a newb to houdini, a fix like that seems a bit over my head at the moment. Can you point me in the right direction of getting rid of the unnecessary edges? Quote Link to comment Share on other sites More sharing options...
3dome Posted April 24, 2017 Share Posted April 24, 2017 (edited) put this point wrangle just before the extrude: int neighs = neighbourcount(0, @ptnum); if(neighs < 3) { removepoint(0, @ptnum); } deletes the points (procedurally) so you get clean geo but doesnt fix the rendering issue. This comes from cusping the polygons. Do you need to cusp them?EDIT: fixing the geo with fuse nodes helps. see file SphereBoole_EdgeProblem_v2.hipnc Edited April 24, 2017 by 3dome update Quote Link to comment Share on other sites More sharing options...
f1480187 Posted April 25, 2017 Share Posted April 25, 2017 (edited) It's a shading error caused by light direction trying to be perfectly perpendicular to surface. Add a bit of inset for your extrude node or move light/geometry by a small distance from origin or try spherical light. Edited April 26, 2017 by f1480187 typo Quote Link to comment Share on other sites More sharing options...
HainesAJ Posted April 25, 2017 Author Share Posted April 25, 2017 @3dome Wow that solution work pretty perfectly. Thanks so much. I'll have to look more into the science behind that neighborcount function, also the fuse node is new to me as well. All good stuff. Yeah the cusping is preferred. Thanks again for the help! @f1480187 I see what you are saying. After 3domes fix the light didn't need to be moved after all. Thanks for the suggestions though:) Quote Link to comment Share on other sites More sharing options...
f1480187 Posted April 26, 2017 Share Posted April 26, 2017 (edited) @HainesAJ, artifacts still there. Try to add a bit of contrast using bottom bar of Render View: Fuse node recomputes affected points's normals by default. That results in slightly randomized normal directions from irregular topology in places where the new normals was computed. Extruding by such normals will output side surface non-perpendicular to light direction, reducing most of the artifacts. That's an equivalent of adding a bit of inset to extrude: The difference is that the bumped surface will face the light and be lit, sunken surface will backface the light and be shaded. Randomized surface will be lit and shaded randomly. Edited April 26, 2017 by f1480187 Quote Link to comment Share on other sites More sharing options...
HainesAJ Posted April 26, 2017 Author Share Posted April 26, 2017 @f1480187 You're right it wasn't fully artifact free. That does make sense about the random surface positions and insetting does help too. A great point to be aware of. I really appreciate you clearing that up and giving examples:) The sphere is looking nice now! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.