POV-Ray : Newsgroups : povray.binaries.images : Unintended behaviour of heightfield in CSG difference? : Re: Unintended behaviour of heightfield in CSG difference? Server Time
19 Apr 2024 10:24:07 EDT (-0400)
  Re: Unintended behaviour of heightfield in CSG difference?  
From: Alain Martel
Date: 9 Oct 2019 11:17:26
Message: <5d9dfa06@news.povray.org>

> 
> So, I was trying out creating a part using an edited blueprint image, and I
> needed to use the water_level keyword to remove that bit of base plane.
> 
> Then I nearly lost my mind trying to figure out why things "weren't working"
> when I tried to difference out a cylinder for nice clean hole - and the cylinder
> was VISIBLE - but only on one side... :O
> 
> Well, apparently the water_level "deleted" section doesn't get deleted - it just
> isn't visible.   But when the cylinder gets differenced from it, that surface
> becomes visible, even if the cylinder doesn't have a texture, and the whole CSG
> gets an overall texture.
> 
> That complicates things more than you'd think, because I do a lot of scaling in
> the heightfield definition, and now I have to do that in a separate CSG
> operation to difference away a box, or intersect one, etc.
> 
> 
> What do we think?   Is this a "bug"?
> Has anyone ever seen this before?
> 

Instead of water_level, use an intersection with a box. That way, your 
height_field will get a true back side and behave correctly when you 
perform some other CSG operations.


Post a reply to this message

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