|
|
/*
On 01 Oct 1999 16:43:44 +0200, Thomas Willhalm wrote:
>
>Hello,
>
>some time ago, there has been a discussion about adding support of CSG
>for triangle meshes. Has this been realized? Please tell me, if such
>a patch exists or whether it's included in the superpatch.
If it's not in the current one, it'll be in the next one. I'm pretty
sure it's in UVPOV, Nathan Kopp's photon-mapping and UV-mapping patch.
>I'm even more interested in using bicubic patches. CSG with objects
>that are modeled with bicubic patches (e.g. within sPatch) would
>be really great. Furthermore, these objects should be able to serve
>as containers of media.
If you have a union of bicubic patches, and it's watertight, you should
be able to use it as a media container even in the official POV. Render
this, for example:
*/
light_source { <-20,20,-20> rgb 1}
camera {location <2,5,5> look_at 0 }
#declare xface=
bicubic_patch { type 1 flatness 0.1 u_steps 3 v_steps 3
<1,-1,-1> <1,-.5,-1> <1,.5,-1> <1,1,-1>
<1,-1,-.5> <1,-.5,-.5> <1,.5,-.5> <1,1,-.5>
<1,-1,.5> <1,-.5,.5> <1,.5,.5> <1,1,.5>
<1,-1,1> <1,-.5,1> <1,.5,1> <1,1,1>}
union {
object {xface}
object {xface rotate 90*y}
object {xface rotate 180*y}
object {xface rotate 270*y}
object {xface rotate 90*z}
object {xface rotate 270*z}
hollow
texture {
pigment {color rgbt .8 }
finish { specular .2 diffuse .3 ambient .2 roughness .2}}
interior { media { emission 1
density {bozo color_map {[.5 rgb 0][1 rgb 1]} scale .2}}}
}
#declare sm=slope_map { [0 <0,0>][.8 <0,0>][1 <1,1>]}
plane {y,-2
texture {
pigment {checker color rgb <1,1,0> color rgb <0,1,0> translate .5}
finish {specular .2 diffuse .3 ambient .3 roughness .001}
normal {average normal_map {
[.5 marble 1 slope_map {sm}]
[.5 marble 1 rotate 90*y slope_map {sm}]}}
scale <3,1,3>
}
}
Post a reply to this message
|
|
|
|
Ron Parker <par### [at] fwicom> wrote ...
> /*
> On 01 Oct 1999 16:43:44 +0200, Thomas Willhalm wrote:
> >
> >Hello,
> >
> >some time ago, there has been a discussion about adding support of CSG
> >for triangle meshes. Has this been realized? Please tell me, if such
> >a patch exists or whether it's included in the superpatch.
>
> If it's not in the current one, it'll be in the next one. I'm pretty
> sure it's in UVPOV, Nathan Kopp's photon-mapping and UV-mapping patch.
>
Yes. I did play around with that a bit. My solution is very simple and has
a number of flaws and shortcomings (which have been discussed previously in
this group), but has gotten the job done for me in a few situations where I
needed it. :-)
-Nathan
Post a reply to this message
|
|