POV-Ray : Newsgroups : povray.general : Smooth level for smooth_triangle. Server Time
22 Dec 2024 06:57:23 EST (-0500)
  Smooth level for smooth_triangle. (Message 41 to 50 of 56)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 6 Messages >>>
From: GioSeregni
Subject: Re: Smooth level for smooth_triangle.
Date: 24 Nov 2023 16:20:00
Message: <web.6561137284c692a3276109cb59126100@news.povray.org>
well, I have a little question because I have often read about "artifact" on
sooth_triangle but I don't understand. It is very difficult for me to translate
technical language and figurative sayings. Now I have started translating the
include files of my PovRay library that I interface with CAD, triangle to
smooth_triangle.
This wheel has black corners (two), on the right. Are these common artifacts, or
can I fix them?
Thanx in advanced!
G.


Post a reply to this message


Attachments:
Download 'clipboard01.png' (168 KB)

Preview of image 'clipboard01.png'
clipboard01.png


 

From: Bald Eagle
Subject: Re: Smooth level for smooth_triangle.
Date: 24 Nov 2023 18:25:00
Message: <web.6561305284c692a31f9dae3025979125@news.povray.org>
"GioSeregni" <gms### [at] hotmailcom> wrote:
> well, I have a little question because I have often read about "artifact" on
> sooth_triangle but I don't understand. It is very difficult for me to translate
> technical language and figurative sayings. Now I have started translating the
> include files of my PovRay library that I interface with CAD, triangle to
> smooth_triangle.
> This wheel has black corners (two), on the right. Are these common artifacts, or
> can I fix them?
> Thanx in advanced!
> G.

I think you might be seeing the same bug that I've been seeing.

instead of pigment, try using (_BOTH_)

texture {pigment {rgb 0.1} finish {specular 0.4}}
interior_texture {pigment {rgb x*0.2} finish {emission 1}}

And see if those "corners" turn red.
If so, we're seeing the underside of those triangles, when we shouldn't.

- BW


Post a reply to this message

From: GioSeregni
Subject: Re: Smooth level for smooth_triangle.
Date: 24 Nov 2023 18:55:00
Message: <web.6561377784c692a3276109cb59126100@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "GioSeregni" <gms### [at] hotmailcom> wrote:
> > well, I have a little question because I have often read about "artifact" on
> > sooth_triangle but I don't understand. It is very difficult for me to translate
> > technical language and figurative sayings. Now I have started translating the
> > include files of my PovRay library that I interface with CAD, triangle to
> > smooth_triangle.
> > This wheel has black corners (two), on the right. Are these common artifacts, or
> > can I fix them?
> > Thanx in advanced!
> > G.
>
> I think you might be seeing the same bug that I've been seeing.
>
> instead of pigment, try using (_BOTH_)
>
> texture {pigment {rgb 0.1} finish {specular 0.4}}
> interior_texture {pigment {rgb x*0.2} finish {emission 1}}
>
> And see if those "corners" turn red.
> If so, we're seeing the underside of those triangles, when we shouldn't.
>
> - BW

THANKS! You are right, the red is here (elevated to see it better).
This knowledge is very useful! Many thanks again!
G.


Post a reply to this message


Attachments:
Download 'clipboard01.png' (75 KB)

Preview of image 'clipboard01.png'
clipboard01.png


 

From: Bald Eagle
Subject: Re: Smooth level for smooth_triangle.
Date: 24 Nov 2023 19:10:00
Message: <web.65613abb84c692a31f9dae3025979125@news.povray.org>
"GioSeregni" <gms### [at] hotmailcom> wrote:

> THANKS! You are right, the red is here (elevated to see it better).
> This knowledge is very useful! Many thanks again!
> G.

Well, you're _supposed to_ see _that_ red - those are the undersides of the open
mesh - the inside of the tire.

You were talking about the "corners" on the upper right of the tire, which
should be smooth, and the same color as the rest of the tire.

And if you DO see red there, then try moving the camera around, and viewing it
from different angles - because it may just disappear and pop up in different
areas.

- BW


Post a reply to this message

From: GioSeregni
Subject: Re: Smooth level for smooth_triangle.
Date: 25 Nov 2023 03:45:00
Message: <web.6561b27884c692a3276109cb59126100@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "GioSeregni" <gms### [at] hotmailcom> wrote:
>
> > THANKS! You are right, the red is here (elevated to see it better).
> > This knowledge is very useful! Many thanks again!
> > G.
>
> Well, you're _supposed to_ see _that_ red - those are the undersides of the open
> mesh - the inside of the tire.
>
> You were talking about the "corners" on the upper right of the tire, which
> should be smooth, and the same color as the rest of the tire.
>
> And if you DO see red there, then try moving the camera around, and viewing it
> from different angles - because it may just disappear and pop up in different
> areas.
>
> - BW

I think you are just looking at preview image. If you open it you will also see
the triangles of the right we are talking about. I kept about the same point of
view just to check on my first image. It seems that they always arise on the
perimeter of the volumes (in positions tangential to the cone of vision)...
However, the internal color makeup is useful, it can help mask a bit the bug.
I think you could mask it a bit with a generic "finish" using the outer color of
the face
Thanks!
G.


Post a reply to this message

From: Kenneth
Subject: Re: Smooth level for smooth_triangle.
Date: 25 Nov 2023 05:00:00
Message: <web.6561c4c584c692a39b4924336e066e29@news.povray.org>
"GioSeregni" <gms### [at] hotmailcom> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> >
> > And if you DO see red there, then try moving the camera around, and viewing it
> > from different angles - because it may just disappear and pop up in different
> > areas.
>
> It seems that they always arise on the
> perimeter of the volumes (in positions tangential to the cone of vision)...

Yes, that is where those artifacts sometimes appear on a smooth-triangle object.
I think it also depends on the lighting angle, and maybe even the size of the
triangles.

What you are seeing is a known effect of raytracing the smooth normals when they
are viewed at that raking angle. (I thought that there was a short technical
explanation of this in the documentation, but I cannot find it.) The camera is
picking up the unlighted (black) interior of the object.

If I make a low-rez height_field and add the 'smooth' keyword, the same thing
happens. The interior_texture trick is one way to try and make these artifacts
less noticable. Or try adding the 'double_illuminate' keyword to the object. If
I recall, this was a recommended 'fix' for the problem. It seems to work most of
the time, but not in every situation.


Post a reply to this message


Attachments:
Download 'smooth_triangle artifacts_kw.jpg' (87 KB)

Preview of image 'smooth_triangle artifacts_kw.jpg'
smooth_triangle artifacts_kw.jpg


 

From: GioSeregni
Subject: Re: Smooth level for smooth_triangle.
Date: 25 Nov 2023 05:45:00
Message: <web.6561cfc684c692a3276109cb59126100@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> "GioSeregni" <gms### [at] hotmailcom> wrote:
> > "Bald Eagle" <cre### [at] netscapenet> wrote:
> > >
> > > And if you DO see red there, then try moving the camera around, and viewing it
> > > from different angles - because it may just disappear and pop up in different
> > > areas.
> >
> > It seems that they always arise on the
> > perimeter of the volumes (in positions tangential to the cone of vision)...
>
> Yes, that is where those artifacts sometimes appear on a smooth-triangle object.
> I think it also depends on the lighting angle, and maybe even the size of the
> triangles.
>
> What you are seeing is a known effect of raytracing the smooth normals when they
> are viewed at that raking angle. (I thought that there was a short technical
> explanation of this in the documentation, but I cannot find it.) The camera is
> picking up the unlighted (black) interior of the object.
>
> If I make a low-rez height_field and add the 'smooth' keyword, the same thing
> happens. The interior_texture trick is one way to try and make these artifacts
> less noticable. Or try adding the 'double_illuminate' keyword to the object. If
> I recall, this was a recommended 'fix' for the problem. It seems to work most of
> the time, but not in every situation.

Ok, thank! I am working on .. it does not seems by light position, but by the
angle between WP and smooth_triangle (s) ...
Many thanks again!
G.


Post a reply to this message

From: GioSeregni
Subject: Re: Smooth level for smooth_triangle.
Date: 25 Nov 2023 12:45:00
Message: <web.656231a884c692a3276109cb59126100@news.povray.org>
"GioSeregni" <gms### [at] hotmailcom> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
> > "GioSeregni" <gms### [at] hotmailcom> wrote:
> > > "Bald Eagle" <cre### [at] netscapenet> wrote:
> > > >
> > > > And if you DO see red there, then try moving the camera around, and viewing it
> > > > from different angles - because it may just disappear and pop up in different
> > > > areas.
> > >
> > > It seems that they always arise on the
> > > perimeter of the volumes (in positions tangential to the cone of vision)...
> >
> > Yes, that is where those artifacts sometimes appear on a smooth-triangle object.
> > I think it also depends on the lighting angle, and maybe even the size of the
> > triangles.
> >
> > What you are seeing is a known effect of raytracing the smooth normals when they
> > are viewed at that raking angle. (I thought that there was a short technical
> > explanation of this in the documentation, but I cannot find it.) The camera is
> > picking up the unlighted (black) interior of the object.
> >
> > If I make a low-rez height_field and add the 'smooth' keyword, the same thing
> > happens. The interior_texture trick is one way to try and make these artifacts
> > less noticable. Or try adding the 'double_illuminate' keyword to the object. If
> > I recall, this was a recommended 'fix' for the problem. It seems to work most of
> > the time, but not in every situation.
>
> Ok, thank! I am working on .. it does not seems by light position, but by the
> angle between WP and smooth_triangle (s) ...
> Many thanks again!
> G.
Bug hacked?
old sprites concept? I'm under no illusions, I'll do more tests, but in this way
I don't see the bug anymore


Post a reply to this message


Attachments:
Download 'clipboard01.jpg' (122 KB)

Preview of image 'clipboard01.jpg'
clipboard01.jpg


 

From: Alain Martel
Subject: Re: Smooth level for smooth_triangle.
Date: 25 Nov 2023 13:11:51
Message: <656238e7$1@news.povray.org>
Le 2023-11-24 à 16:19, GioSeregni a écrit :
> well, I have a little question because I have often read about "artifact" on
> sooth_triangle but I don't understand. It is very difficult for me to translate
> technical language and figurative sayings. Now I have started translating the
> include files of my PovRay library that I interface with CAD, triangle to
> smooth_triangle.
> This wheel has black corners (two), on the right. Are these common artifacts, or
> can I fix them?
> Thanx in advanced!
> G.
> 
That can happen when you can see the triangle but it's normal is 
pointing away from the camera.

Try rotating the tire along it's axis.


Post a reply to this message

From: GioSeregni
Subject: Re: Smooth level for smooth_triangle.
Date: 25 Nov 2023 13:15:00
Message: <web.6562387884c692a3276109cb59126100@news.povray.org>
"GioSeregni" <gms### [at] hotmailcom> wrote:
> "GioSeregni" <gms### [at] hotmailcom> wrote:
> > "Kenneth" <kdw### [at] gmailcom> wrote:
> > > "GioSeregni" <gms### [at] hotmailcom> wrote:
> > > > "Bald Eagle" <cre### [at] netscapenet> wrote:
> > > > >
> > > > > And if you DO see red there, then try moving the camera around, and viewing
it
> > > > > from different angles - because it may just disappear and pop up in
different
> > > > > areas.
> > > >
> > > > It seems that they always arise on the
> > > > perimeter of the volumes (in positions tangential to the cone of vision)...
> > >
> > > Yes, that is where those artifacts sometimes appear on a smooth-triangle object.
> > > I think it also depends on the lighting angle, and maybe even the size of the
> > > triangles.
> > >
> > > What you are seeing is a known effect of raytracing the smooth normals when they
> > > are viewed at that raking angle. (I thought that there was a short technical
> > > explanation of this in the documentation, but I cannot find it.) The camera is
> > > picking up the unlighted (black) interior of the object.
> > >
> > > If I make a low-rez height_field and add the 'smooth' keyword, the same thing
> > > happens. The interior_texture trick is one way to try and make these artifacts
> > > less noticable. Or try adding the 'double_illuminate' keyword to the object. If
> > > I recall, this was a recommended 'fix' for the problem. It seems to work most of
> > > the time, but not in every situation.
> >
> > Ok, thank! I am working on .. it does not seems by light position, but by the
> > angle between WP and smooth_triangle (s) ...
> > Many thanks again!
> > G.
> Bug hacked?
> old sprites concept? I'm under no illusions, I'll do more tests, but in this way
> I don't see the bug anymore


WOW!
right no trick
left the concept ... SHAPE-in-out XOR SWAPSHAPE-out-in


Post a reply to this message


Attachments:
Download 'clipboard01.png' (198 KB)

Preview of image 'clipboard01.png'
clipboard01.png


 

<<< Previous 10 Messages Goto Latest 10 Messages Next 6 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.