POV-Ray : Newsgroups : povray.general : blobs inside Server Time
16 Nov 2024 17:25:49 EST (-0500)
  blobs inside (Message 1 to 3 of 3)  
From: Siegmar Kardinal
Subject: blobs inside
Date: 28 May 1998 08:39:14
Message: <356D5AF2.41C6@methin.orc.univie.ac.at>
hi,

when I put a blob inside a hollow glass object the colours of the
blob parts are no longer smoothly changed but switched somewhere
in the middle. the following input lines and the jpeg image (so they
are properly attached) show the effect by
comparing a blob inside and outside the glas object.

Do I make a mistake here?


many thanks in advance and best wishes from vienna

siegmar


Post a reply to this message


Attachments:
Download 'us-ascii' (3 KB) Download 'blob.jpg' (4 KB)

Preview of image 'blob.jpg'
blob.jpg


 

From: Nathan Kopp
Subject: Re: blobs inside
Date: 29 May 1998 09:45:30
Message: <356EBBFA.2EF075C3@ltu.edu>
You made no mistake.  This is what appears to be a previously undiscovered bug
in POV-Ray.  I found the problem in POV's code: POV-Ray depends on a few global
texture and weight lists for multi-textured objects like blobs.  Unfortunately,
when it computes textures during shadow testing, it forgets to push the values
onto a stack and subsequently mangles the list.

Therefore, your temporary fix is to add the "no_shadow" keyword to the "merge"
object that the blob is in.  This will cause POV to skip the shadow test and
protect your blob's texture and weight lists.

   merge { 
      sphere { 
         <-0.5, 0., 0.> 
         C_VDW_Radius 
      } 
      sphere { 
         <0.5, 0., 0.> 
         C_VDW_Radius 
      } 
      texture { _T_VDW } 
      hollow 
      no_shadow // this will fix your problem
   } 

I'll tell the POV team about the bug and also how to fix it.

-Nathan Kopp

Siegmar Kardinal wrote:
> 
> hi,
> 
> when I put a blob inside a hollow glass object the colours of the
> blob parts are no longer smoothly changed but switched somewhere
> in the middle. the following input lines and the jpeg image (so they
> are properly attached) show the effect by
> comparing a blob inside and outside the glas object.
> 
> Do I make a mistake here?


Post a reply to this message

From: Siegmar Kardinal
Subject: Re: blobs inside
Date: 2 Jun 1998 06:41:11
Message: <3573D6C7.41C6@methin.orc.univie.ac.at>
Great, it works fine. Thanks a lot!

I would never have found that solution myself.

siegmar

Nathan Kopp wrote:
> 
> You made no mistake.  This is what appears to be a previously undiscovered bug
> in POV-Ray.  I found the problem in POV's code: POV-Ray depends on a few global
> texture and weight lists for multi-textured objects like blobs.  Unfortunately,
> when it computes textures during shadow testing, it forgets to push the values
> onto a stack and subsequently mangles the list.
> 
> Therefore, your temporary fix is to add the "no_shadow" keyword to the "merge"
> object that the blob is in.  This will cause POV to skip the shadow test and
> protect your blob's texture and weight lists.
> 
>    merge {
>       sphere {
>          <-0.5, 0., 0.>
>          C_VDW_Radius
>       }
>       sphere {
>          <0.5, 0., 0.>
>          C_VDW_Radius
>       }
>       texture { _T_VDW }
>       hollow
>       no_shadow // this will fix your problem
>    }
> 
> I'll tell the POV team about the bug and also how to fix it.
> 
> -Nathan Kopp
>


Post a reply to this message

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