POV-Ray : Newsgroups : povray.advanced-users : mesh and media Server Time
29 Jul 2024 18:17:10 EDT (-0400)
  mesh and media (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: paul jones
Subject: mesh and media
Date: 19 Nov 2001 08:24:15
Message: <3BF907C6.51F7B63C@psu.edu>
Hi folks,

I am having difficulty filling a closed mesh (made in Rhino v1.1,
exported as "pov-mesh") with media of any kind. Am I missing something?
I have checked the docs and there is no mention (that I can find) of
this issue.

thanks,

paul


Post a reply to this message

From: Warp
Subject: Re: mesh and media
Date: 19 Nov 2001 09:02:19
Message: <3bf910ea@news.povray.org>
paul jones <pdj### [at] psuedu> wrote:
: I am having difficulty filling a closed mesh (made in Rhino v1.1,
: exported as "pov-mesh") with media of any kind. Am I missing something?

  Meshes have no inside, which means they have no interior, which means
they can't have media.

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


Post a reply to this message

From: paul jones
Subject: Re: mesh and media
Date: 19 Nov 2001 09:25:05
Message: <3BF91607.3CBA1E25@psu.edu>
well, that is no good.... :-(

thanks!

paul

Warp wrote:

> paul jones <pdj### [at] psuedu> wrote:
> : I am having difficulty filling a closed mesh (made in Rhino v1.1,
> : exported as "pov-mesh") with media of any kind. Am I missing something?
>
>   Meshes have no inside, which means they have no interior, which means
> they can't have media.
>
> --
> #macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
> rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
> ],13),8)-3,10>#end blob{N(array[6]{11117333955,
> 7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Chris Colefax
Subject: Re: mesh and media
Date: 19 Nov 2001 09:25:37
Message: <3bf91661@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>   Meshes have no inside, which means they have no interior, which means
> they can't have media.

Almost right - except a quick experiment reveals that media can indeed be
placed inside a closed mesh, provided the hollow keyword is specified for
the mesh object (3.1 and 3.5).


Post a reply to this message

From: Jan Walzer
Subject: Re: mesh and media
Date: 19 Nov 2001 10:27:27
Message: <3bf924df$1@news.povray.org>
made hollow ?

--
Jan Walzer <jan### [at] lzernet>


Post a reply to this message

From: JRG
Subject: Re: mesh and media
Date: 19 Nov 2001 13:57:18
Message: <3bf9560e@news.povray.org>
Which means that Gilles is a god.

--
Jonathan.

"Warp" <war### [at] tagpovrayorg> ha scritto nel messaggio
news:3bf910ea@news.povray.org...
> paul jones <pdj### [at] psuedu> wrote:
> : I am having difficulty filling a closed mesh (made in Rhino v1.1,
> : exported as "pov-mesh") with media of any kind. Am I missing something?
>
>   Meshes have no inside, which means they have no interior, which means
> they can't have media.
>
> --
> #macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
> rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
> ],13),8)-3,10>#end blob{N(array[6]{11117333955,
> 7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Ron Parker
Subject: Re: mesh and media
Date: 19 Nov 2001 14:18:53
Message: <slrn9vimou.n0g.ron.parker@fwi.com>
On 19 Nov 2001 09:02:19 -0500, Warp wrote:
> paul jones <pdj### [at] psuedu> wrote:
>: I am having difficulty filling a closed mesh (made in Rhino v1.1,
>: exported as "pov-mesh") with media of any kind. Am I missing something?
> 
>   Meshes have no inside, which means they have no interior, which means
> they can't have media.

This is one of those oft-misunderstood things.  Patch objects do have an
interior, because none of the interior effects (media, IOR, attenuation, etc.)
care about whether a point is inside or outside the object.  I've demonstrated
this before, but just for the heck of it...

#include "textures.inc"
plane {-z,-5
  pigment {Hex_Tiles_Ptrn() color_map {[.1 rgb 1][.1 rgb 0]} rotate 90*x
            scale .5}
  finish {ambient 1}
}

union {
  bicubic_patch {type 1 u_steps 3 v_steps 3
    <-1,-1,0> <-1,-.5,0> <-1,.5,0> <-1,1,0>
    <-.5,-1,0> <-.5,-.5,.5> <-.5,.5,.5> <-.5,1,0>
    <.5,-1,0> <.5,-.5,.5> <.5,.5,.5> <.5,1,0>
    <1,-1,0> <1,-.5,0> <1,.5,0> <1,1,0>
  }
  bicubic_patch {type 1 u_steps 3 v_steps 3
    <-1,-1,0> <-1,-.5,0> <-1,.5,0> <-1,1,0>
    <-.5,-1,0> <-.5,-.5,-.5> <-.5,.5,-.5> <-.5,1,0>
    <.5,-1,0> <.5,-.5,-.5> <.5,.5,-.5> <.5,1,0>
    <1,-1,0> <1,-.5,0> <1,.5,0> <1,1,0>
  }
  pigment {color rgbt 1}
  interior {ior 1.5}
}

camera {location -5*z look_at 0}



-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

From: Gilles Tran
Subject: Re: mesh and media
Date: 19 Nov 2001 16:41:48
Message: <3bf97c9c$1@news.povray.org>

3bf910ea@news.povray.org...
>   Meshes have no inside, which means they have no interior, which means
> they can't have media.

Media work very well with meshes, even non closed ones. There's really
nothing special here.
See my (and other people's) subsurface scattering posts in p.b.i. of some
weeks ago. The head is an open mesh. Yep, it looks funky where the mesh is
open but nobody's obliged to look there.

Now repeat after me : "Test first, then answer, Test first, then answer..."
;-)

G.

--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


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


Post a reply to this message

From: Jan Walzer
Subject: Re: mesh and media
Date: 19 Nov 2001 17:13:49
Message: <3bf9841d@news.povray.org>
> Now repeat after me : "Test first, then answer, Test first, then answer..."
> ;-)

*LoL*

--
Jan Walzer <jan### [at] lzernet>


Post a reply to this message

From: Warp
Subject: Re: mesh and media
Date: 20 Nov 2001 06:57:02
Message: <3bfa450e@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: This is one of those oft-misunderstood things.

  No-one is perfect. Not even me. :P

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


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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