POV-Ray : Newsgroups : povray.unofficial.patches : Photons and meshes Server Time
8 Jul 2024 16:01:04 EDT (-0400)
  Photons and meshes (Message 1 to 3 of 3)  
From: Tom Melly
Subject: Photons and meshes
Date: 16 Jul 2001 04:17:50
Message: <3b52a32e$1@news.povray.org>
Before I re-invent the wheel, is there a known problem with meshes inside
media-containers (with the camera inside the media-container as well) losing
their textures?

I've posted a small pic to images illustrating the problem...

--
#macro G(D,E,F)#local I=array[3]{D,E,F}#local B=0;triangle{#while(
B<3)#while(I[B])A[mod(I[B],10)]+#local I[B]=div(I[B],10);#end<-5,-
2,9>#local B=B+1;#end}#end #local A=array[7]{x,x*2,x*4,y,y*2,y*4,z
}light_source{-x*6-z*9,1}mesh{G(105,10,146)G(105,246,10)G(105,56,
146)G(105,1256,246)G(1256,126,220)G(22156,2216,201)pigment{rgb 1}}//TM


Post a reply to this message

From: Bob H 
Subject: Re: Photons and meshes
Date: 16 Jul 2001 09:38:58
Message: <3b52ee72$1@news.povray.org>
"Tom Melly" <tom### [at] tomandlucouk> wrote in message
news:3b52a32e$1@news.povray.org...
> Before I re-invent the wheel, is there a known problem with meshes inside
> media-containers (with the camera inside the media-container as well)
losing
> their textures?
>
> I've posted a small pic to images illustrating the problem...

Are the dolphins CSG'd in any way at all with the container object?
Even if not, maybe it's fixable by clipping (not differencing, there might
be a problem with that) a slightly larger, inversed, copy of them away
first.  The original meshes then placed into those cutaways.

Bob H.


Post a reply to this message

From: Tom Melly
Subject: Re: Photons and meshes
Date: 16 Jul 2001 10:28:29
Message: <3b52fa0d$1@news.povray.org>
"Bob H." <omn### [at] msncom> wrote in message
news:3b52ee72$1@news.povray.org...
>
> Are the dolphins CSG'd in any way at all with the container object?
> Even if not, maybe it's fixable by clipping (not differencing, there might
> be a problem with that) a slightly larger, inversed, copy of them away
> first.  The original meshes then placed into those cutaways.
>

Yes, I thought of doing that (with a shudder). However, I'm having problems
reproducing the problem with a simpler scene (although it doesn't look like a
max_trace issue). Hopefully, when I figure out what causes the problem, I'll
figure out the solution.

Many thanks for the suggestion.


Post a reply to this message

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