hard edged polys

Started by Dune, November 11, 2019, 05:01:44 AM

Previous topic - Next topic

Dune

Is there no way to increase tolerance (or something) for smooth interpretation of the poly normals? I sometimes still have trouble getting, say a smooth bark. Even with plenty of polys (see wireframe) and welded and smoothed normals I still get some hard edges, with or without extra bump.
I wouldn't know where to find the culprit.

Hannes

This bothers me as well, and I have no idea to avoid this. Sometimes even after recalculating normals in Poseray you get this.
And it's there even without any bump mapping?

Dune

Yes, certain polys stick out like a sore thumb, indeed, no matter if smoothed in PR.

j meyer

Not sure what you are refering to. I see two possible issues either the sharp
shadow line on the right or some little spots on the bottom left.
Don't know about the shadow line, but the little things might be caused by
'wrong' triangulation. If it is that, the only way to avoid that is to triangulate
manually, as far as I know, that is.

WAS

It's weird that the smooth shading correctly interprets it. Like that hard edge in the shadow terminator where the knee starts to jet out.

sboerner

Not seeing it either in this example. But I do run into this regularly and agree that it would be nice to be able to control the smoothing angle, individually, for placed objects.

digitalguru

Could it be you have some duplicate vertices? You might have some vertices at the same position and this will cause the smoothing to fail at the edges shared by those verts.

Merging vertices with a low threshold or deleting duplicates might help.

Matt

There are two problems here.

With bump mapping it's partly due to this what were talking about recently: https://planetside.co.uk/forums/index.php/topic,27221.0.html
I'm going to implement a solution to the bump issue soon.

However, even without bump mapping there is the shadow terminator problem which you will see in lots of renderers:

https://computergraphics.stackexchange.com/questions/4986/ray-tracing-shadows-the-shadow-line-artifact
http://wiki.povray.org/content/Knowledgebase:The_Shadow_Line_Artifact

I don't have a solution yet but I'm going to take another look at it soon. There are some ideas for me to try in that stackexchange link.

In the mean time, you'll need to heavily subdivide the object to the point where the polygons produce a visually smooth surface.
Just because milk is white doesn't mean that clouds are made of milk.

WAS

#8
Quote from: Matt on November 11, 2019, 04:32:32 PMThere are two problems here.

With bump mapping it's partly due to this what were talking about recently: https://planetside.co.uk/forums/index.php/topic,27221.0.html
I'm going to implement a solution to the bump issue soon.

However, even without bump mapping there is the shadow terminator problem which you will see in lots of renderers:

https://computergraphics.stackexchange.com/questions/4986/ray-tracing-shadows-the-shadow-line-artifact
http://wiki.povray.org/content/Knowledgebase:The_Shadow_Line_Artifact

I don't have a solution yet but I'm going to take another look at it soon. There are some ideas for me to try in that stackexchange link.

In the mean time, you'll need to heavily subdivide the object to the point where the polygons produce a visually smooth surface.


Stackexchange is really great tool for alternative ideas. Why is it the smooth shaded models seem to lack this problem? For a preview item its pretty ironic.

Mid-Knight Acchan

Many 3D software deals with tessellation subdivisions, but can Terragen process objects?
I started 3D landscape with "Bryce" and am currently editing Japanese Wiki as a Terragen user. I am riding the Kawasaki ZEPHYR1100. I am a reader.

Dune

You can see it here.

Thanks for chiming in all. I do hope for a solution, as it's hardly viable to have to subdivide all trees (and other stuff) to be 100% smooth. Not easy too, as it's only the lower trunks that really need it, it needs a hand, not just a total subdivision (as usually, in my case, trunks and branches use the same texture). But I really though this was subdivided enough, seeing the wireframe.

Btw. it's not duplicated meshes or something like that, it's very clean.

René

I also come across this regularly when sculpting rocks. I then add extra displacements to the model on a small scale. The hard edges are still visible but to a lesser extent because the shadow line is broken. This is of course not applicable on smooth surfaces but with rocks and trees it is no problem because they already have a rough surface.

KyL

Quote from: WAS on November 11, 2019, 09:43:01 PMWhy is it the smooth shaded models seem to lack this problem? For a preview item its pretty ironic.

I was asking myself the same question, it is really frustrating to see the preview with a correct surface display.
But if you think about it, the shaded preview (non-RTP) doesn't have any shadows so the problem is simply not here.

In the first link there is a solution described as "One alternative that I've used successfully is to offset the origin of the shadow ray a short distance along the surface normal". This sounds like the Shadow Bias control you have in some software. However I don't ever remember having to deal with this parameter in other renderers so there must be indeed some internal solution to fix it.

Dune

Offsetting didn't work in this case (though it did in some other cases earlier). The bump by image map (or pf added to displacement function in default shader) is of course different (only positive bump by whites) from a pf based displacement added to the default shader input, which gives positive and negative bump.

Dune

It is actually a problem arising after version 4.4.36. So for the time being I have to use version 4.4.36 for this sort of things.