POV-Ray : Newsgroups : povray.advanced-users : Constructing a geometry : Re: Constructing a geometry Server Time
3 Jul 2024 05:02:47 EDT (-0400)
  Re: Constructing a geometry  
From: Mike Williams
Date: 5 Feb 2009 04:54:41
Message: <CCTW2oABbriJFweS@econym.demon.co.uk>
Wasn't it Amir_ni who wrote:
>Hi Mike, Thanks! I am new to this site, so it seems I have posted my 
>question in
>two different places. Is it possible to make the shape of that cavity as an
>independent object like a sphere so that I can use illumination features? I
>mean, when I use """  finish{ambient 0.3 specular 0.5 reflection 0.4}  """
>inside the difference command block, I think it doesn't illuminates the new
>shape, but it first illuminates the sphere and then make a geometrical
>subtraction (though I may be wrong). I want to do some illumination effect on
>the object so that when I turn the camera, the gloss and other effect can be
>observed.

You can apply a finish to a difference in exactly the same way as you 
would to a primitive object. The only thing that's different is that if 
one of your spheres also has its own texture or part of a texture (i.e. 
pigment, finish or normal), the texture applied to the sphere is used, 
rather than any part of the texture attached to the difference that 
contains it.

The logic is that that allows you to create CSG shapes that have 
different textures on different parts. [It's most logical if you think 
of a union of differently textured objects].

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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