POV-Ray : Newsgroups : povray.beta-test : mesh bug Server Time
30 Jul 2024 16:17:08 EDT (-0400)
  mesh bug (Message 1 to 5 of 5)  
From: Tom Melly
Subject: mesh bug
Date: 23 Oct 2001 11:52:02
Message: <3bd59222@news.povray.org>
Windows 95 pov 3.5b6

The following code (which is pretty much the mesh object from the insert
menu) renders fine the first time, but on subsequent renders, there appear
to be co-incident surfaces or similiar. I have to close pov and restart to
get a correct render, but the problem returns on subsequent re-renders.

I've posted first render and second render images to beta binaries just in
case this problem doesn't reproduce on other systems...

#version 3.5;

#include "colors.inc"

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

camera {
  location  <0.0, 0.5, -10.0>
  look_at   <0.0, 0.0,  0.0>
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------

//plane {  y, -1  pigment { color rgb <0.7,0.5,0.3> }}

#declare T1=texture {pigment{Red}}
#declare T2=texture {pigment{Green}}
#declare T3=texture {pigment{Blue}}

mesh { // box example here
  /* top side */
  triangle { <-2,  2, -2>, < 2,  2, -2>, < 2,  2,  2> }
  triangle { <-2,  2, -2>, <-2,  2,  2>, < 2,  2,  2> texture { T1 } }
  /* bottom side */
  triangle { <-2, -2, -2>, < 2, -2, -2>, < 2, -2,  2> }
  triangle { <-2, -2, -2>, <-2, -2,  2>, < 2, -2,  2> }
  /* left side */
  triangle { <-2, -2, -2>, <-2, -2,  2>, <-2,  2,  2> }
  triangle { <-2, -2, -2>, <-2,  2, -2>, <-2,  2,  2> }
  /* right side */
  triangle { < 2, -2, -2>, < 2, -2,  2>, < 2,  2,  2> texture { T2 } }
  triangle { < 2, -2, -2>, < 2,  2, -2>, < 2,  2,  2> texture { T2 } }
  /* front side */
  triangle { <-2, -2, -2>, < 2, -2, -2>, <-2,  2, -2> texture { T3 } }
  triangle { <-2,  2, -2>, < 2,  2, -2>, < 2, -2, -2> texture { T3 } }
  /* back side */
  triangle { <-2, -2,  2>, < 2, -2,  2>, <-2,  2,  2> }
  triangle { <-2,  2,  2>, < 2,  2,  2>, < 2, -2,  2> }
  texture
  { // remaining triangles get this texture
    pigment {Yellow}
    finish { ambient 0.2 diffuse 0.7 }
  }
  rotate y*45
}


Post a reply to this message

From: Thorsten
Subject: Re: mesh bug
Date: 23 Oct 2001 13:29:59
Message: <3BD5A81C.DD974988@ewetel.net>
Hello Tom :-))

Tom Melly:

> The following code (which is pretty much the mesh object from the insert
> menu) renders fine the first time, but on subsequent renders, there appear
> to be co-incident surfaces or similiar. I have to close pov and restart to
> get a correct render, but the problem returns on subsequent re-renders.

I can confirm this: First and second runs are ok. The problem appears in the
third run.
Everything is ok after restarting POV... But only for two runs.

Thorsten
(3.5b6, P2, w95)


Post a reply to this message

From: Tom Melly
Subject: Re: mesh bug
Date: 23 Oct 2001 14:44:00
Message: <3bd5ba70@news.povray.org>
Thorsten wrote in message <3BD5A81C.DD974988@ewetel.net>...
>
>I can confirm this: First and second runs are ok. The problem appears in
the
>third run.
>Everything is ok after restarting POV... But only for two runs.
>

Weird - I thought it must be something stupid with my machine - can't wait
to hear the explanation for this one. btw it doesn't show up on all meshes
as far as I can tell. I made a simple mesh (3 sided pyramid with a base) and
couldn't reproduce it, but I don't know if that was the simplicity or
different arrangement of textures...


Post a reply to this message

From: Tom Melly
Subject: Re: mesh bug
Date: 23 Oct 2001 15:33:28
Message: <3bd5c608@news.povray.org>
Tom Melly wrote in message <3bd59222@news.povray.org>...
>Windows 95 pov 3.5b6
>

<snip>

Just to add something to this - switching to another app and then back again
clears the problem for one render (it doesn't seem to matter whether you do
anything in the other app or not - switching to a windows explorer window
and back again will do it).


Post a reply to this message

From: Thorsten
Subject: Re: mesh bug
Date: 30 Oct 2001 06:26:34
Message: <3BDE8D51.69C4FE90@ewetel.net>
Hello Tom :-))

Tom Melly:

> Just to add something to this -

This problem seems to be partially solved...

It does not happen with 3.5.beta.7.icl.win32 :-))
But it is still present with 3.5.beta.7.msvc.win32.

Maybe this could give someone a hint to solve the problem.

Greetings :-))

Thorsten


Post a reply to this message

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