POV-Ray : Newsgroups : povray.newusers : how to make mesh solid? Server Time
4 Nov 2024 17:36:42 EST (-0500)
  how to make mesh solid? (Message 1 to 6 of 6)  
From: Connie
Subject: how to make mesh solid?
Date: 8 Aug 2003 21:15:01
Message: <web.3f3449dca31a1f5a14cc26d90@news.povray.org>
Hi, I am working on the lighting and shading of the lava, which is expressed
in mesh. The lava surface is closed and I was wondering if I can make it
solid (instead of hollow).

Thanks,
Connie


Post a reply to this message

From: Doug Eichenberg
Subject: Re: how to make mesh solid?
Date: 8 Aug 2003 21:59:39
Message: <3f34558b$1@news.povray.org>
In POV 3.5 meshes are considered as solid objects to my knowledge.  Try
adding:

inside_vector <0,0,1>

inside the mesh{} brackets (see section 6.5.2.3.1) in the POV docs for more
info on this.  With this one line added you should be able to use the mesh
in CSG operations.  Make sure it's a mesh, by the way... not a union of
triangles.  Two totally different things.

--
Doug Eichenberg
www.getinfo.net/douge
dou### [at] nlsnet


Post a reply to this message

From: Warp
Subject: Re: how to make mesh solid?
Date: 9 Aug 2003 03:47:18
Message: <3f34a706@news.povray.org>
Connie <kni### [at] umailucsbedu> wrote:
> Hi, I am working on the lighting and shading of the lava, which is expressed
> in mesh. The lava surface is closed and I was wondering if I can make it
> solid (instead of hollow).

  You should be more specific about what do you mean by solid because it's
not an unambiguous term.
  Do you mean that the surface of the mesh is partially transparent and
because of that you can see that the object is only a surface and not
thoroughly filled with substance?
  Or are you talking about CSG?

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Connie
Subject: Re: how to make mesh solid?
Date: 9 Aug 2003 12:15:02
Message: <web.3f351d7ec60b9a9614cc26d90@news.povray.org>
>  You should be more specific about what do you mean by solid because it's
>not an unambiguous term.
>  Do you mean that the surface of the mesh is partially transparent and
>because of that you can see that the object is only a surface and not
>thoroughly filled with substance?
>  Or are you talking about CSG?

I declare lava in an include file and the following is the texture,
finish...for the lava.

It turned out the object is only a surface and not thoroughly filled with
substance.

I also replaced lava by a sphere and it turned out nice.

object{ lava

  texture {
                pigment {color MediumSpringGreen transmit 0.7 }
        }
        finish{ diffuse 0.65 specular 0.35 roughness 0.02}
  interior {  ior 3.1
                media {
                        emission <0.5, 0.2, 1.0>
                                        }
        }
  double_illuminate
    }

Thanks,

Connie


Post a reply to this message

From: Ken
Subject: Re: how to make mesh solid?
Date: 9 Aug 2003 13:36:20
Message: <3F35327C.4B615DA9@pacbell.net>
Connie wrote:
> 
> >  You should be more specific about what do you mean by solid because it's
> >not an unambiguous term.
> >  Do you mean that the surface of the mesh is partially transparent and
> >because of that you can see that the object is only a surface and not
> >thoroughly filled with substance?
> >  Or are you talking about CSG?
> 
> I declare lava in an include file and the following is the texture,
> finish...for the lava.
> 
> It turned out the object is only a surface and not thoroughly filled with
> substance.
> 
> I also replaced lava by a sphere and it turned out nice.
> 
> object{ lava
> 
>   texture {
>                 pigment {color MediumSpringGreen transmit 0.7 }
>         }
>         finish{ diffuse 0.65 specular 0.35 roughness 0.02}
>   interior {  ior 3.1
>                 media {
>                         emission <0.5, 0.2, 1.0>
>                                         }
>         }
>   double_illuminate
>     hollow
>     }

You need to add 'hollow' to your lava object to enable the media (see above).
This is covered in section "6.5.9.5  Hollow" of the docs.

-- 
Ken Tyler


Post a reply to this message

From: Ken
Subject: Re: how to make mesh solid?
Date: 9 Aug 2003 13:51:58
Message: <3F353626.B8B907C2@pacbell.net>
Ken wrote:

> >   interior {  ior 3.1

P.S. you might get better results if you lower your ior value to something
a little more realistic. Say somewhere between 1.5 and 2.0.

-- 
Ken Tyler


Post a reply to this message

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