POV-Ray : Newsgroups : povray.binaries.images : Smoothed mesh bug Server Time
13 Aug 2024 19:24:13 EDT (-0400)
  Smoothed mesh bug (Message 1 to 8 of 8)  
From: Tek
Subject: Smoothed mesh bug
Date: 18 Jan 2003 22:11:00
Message: <3e2a1744@news.povray.org>
I reckon I can't be the first person to notice this, so hopefully someone can
help.

This is a mesh2 object using smooth triangles (created by PoseRay), but it has a
wierd black artefact. I think all polygons that have one of their corner's
normals pointing away from the camera are being drawn black. Has anyone else had
this problem? Is there any way to fix it?

Thanks,
--
Tek
http://www.evilsuperbrain.com


Post a reply to this message


Attachments:
Download 'Hop_thunderhawk_test.jpg' (14 KB)

Preview of image 'Hop_thunderhawk_test.jpg'
Hop_thunderhawk_test.jpg


 

From: Slime
Subject: Re: Smoothed mesh bug
Date: 18 Jan 2003 22:49:53
Message: <3e2a2061$1@news.povray.org>
It's in the FAQ in the povray docs. Slime-POV fixes it.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Slime
Subject: Re: Smoothed mesh bug
Date: 18 Jan 2003 22:51:26
Message: <3e2a20be$1@news.povray.org>
> It's in the FAQ in the povray docs. Slime-POV fixes it.


Oh, I should mention that the "double_illuminate" keyword will also
workaround this, provided you don't need to see the mesh from the inside.
(What's actually happening is that it thinks parts of the triangles are on
the inside when they're on the outside, and vice versa.)

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Tek
Subject: Re: Smoothed mesh bug
Date: 19 Jan 2003 08:30:30
Message: <3e2aa876@news.povray.org>
Slime <slm### [at] slimelandcom> wrote in message news:3e2a20be$1@news.povray.org...
> > It's in the FAQ in the povray docs. Slime-POV fixes it.
>
>
> Oh, I should mention that the "double_illuminate" keyword will also
> workaround this, provided you don't need to see the mesh from the inside.
> (What's actually happening is that it thinks parts of the triangles are on
> the inside when they're on the outside, and vice versa.)

double_illuminate works okay so long as I turn off radiosity, but I'll try
Slime-pov. Plus you've fixed the shadow-line artefact, if you look at the planet
image I posted the other day you can see it suffers from it! (though I can get
round that using no_shadow).

Sounds like you've been fixing lots of glitches that have been causing me
trouble! :)

--
Tek
http://www.evilsuperbrain.com


Post a reply to this message

From: Slime
Subject: Re: Smoothed mesh bug
Date: 19 Jan 2003 10:58:03
Message: <3e2acb0b$1@news.povray.org>
Keep in mind, Slime-POV has one or two of its *own* bugs, I think... =)

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Shay
Subject: Re: Smoothed mesh bug
Date: 20 Jan 2003 10:47:35
Message: <3e2c1a17$1@news.povray.org>
"Slime" <slm### [at] slimelandcom> wrote in message
news:3e2acb0b$1@news.povray.org...

Wait. You "fixed" the shadow line problem?! If so, this is very exciting.

By shadow line problem, are we talking about the hard shadow between
illuminated smooth triangles and non-illuminated? If so, I can remove
several hundred triangles from some of my models.

 -Shay


Post a reply to this message

From: Slime
Subject: Re: Smoothed mesh bug
Date: 20 Jan 2003 18:19:27
Message: <3e2c83ff$1@news.povray.org>
> Wait. You "fixed" the shadow line problem?! If so, this is very exciting.
>
> By shadow line problem, are we talking about the hard shadow between
> illuminated smooth triangles and non-illuminated? If so, I can remove
> several hundred triangles from some of my models.


Yes. It's an ugly hack, but it works in most cases. Not all. It's not
implemented in MegaPOV, and I don't ever expect it to be, because it goes
*all* over the lighting code, variables going every which way, and it's ugly
and spaghetti coded. It basically uses the algorithm that's in the FAQ near
the end of the POV-Ray documentation.

See http://www.slimeland.com/slimepov/docs.html#section15 for more info.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Shay
Subject: Re: Smoothed mesh bug
Date: 21 Jan 2003 10:55:33
Message: <3e2d6d75$1@news.povray.org>
"Slime" <slm### [at] slimelandcom> wrote in message
news:3e2c83ff$1@news.povray.org...
>
> Yes. It's an ugly hack, but it works in most cases. Not all. It's not
> implemented in MegaPOV, and I don't ever expect it to be, because it goes
> *all* over the lighting code, variables going every which way, and it's
ugly
> and spaghetti coded. It basically uses the algorithm that's in the FAQ
near
> the end of the POV-Ray documentation.

Excellent. I will be downloading Slime-Pov tonight.

I have a suggestion for what might be a very nice feature, although I'm not
sure if it's feasible. Would there be a way to modify your optimal quad
division code to work on all meshes containing quads and to calculate the
split during the render instead of at parse time?

The idea would be for PoV-Ray to store one quad instead of two triangles in
memory. The render would of course be slower, but some memory could be saved
for meshes containing mostly quads. This might be enough to really improve
the capabilities of things like grass macros.

This idea could even be expanded beyond quads to include cylinder, torus,
box, cone, etc. type constructs. This would allow for greebling the likes of
which home computer using gui types could only dream. I doubt anyone would
use it, however.

Just a thought.

 -Shay


Post a reply to this message

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