|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I'm looking for a Mesh2 file that uses all of the Mesh2 features. I am
playing around with writing a program to manipulate meshes and I'd like to
thoroughly check my parser code. Does anyone have a Mesh2 file like this on
a web site that I can download? Thanks.
Cris Williams
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 14 Nov 2001 10:03:04 -0500, "Cris Williams" <wor### [at] netscapenet>
wrote:
> I'm looking for a Mesh2 file that uses all of the Mesh2 features. I am
> playing around with writing a program to manipulate meshes and I'd like to
> thoroughly check my parser code. Does anyone have a Mesh2 file like this on
> a web site that I can download? Thanks.
Check this:
#version 3.5;
camera {
location <0.0, 0.5, -4.0>
direction 1.5*z
right x*image_width/image_height
look_at 0
}
light_source { <-30, 30, -30> color rgb 1 }
#local Texture1=texture{pigment{color green 1}}
mesh2{
vertex_vectors{
8
(x+z+y) (x-z+y) (-x-z+y) (-x+z+y)
(x+z-y) (x-z-y) (-x-z-y) (-x+z-y)
}
normal_vectors{
3
x y z
}
uv_vectors{
4
<0,0><0,1><1,1><1,0>
}
texture_list{
3,
texture { Texture1 },
texture { pigment{color red 1} }
texture { pigment{color blue 1} }
}
face_indices{
4,
<4,5,6>,0,
<4,6,7>,0,1,2,
<0,1,2>,
<0,2,3>,
}
normal_indices{
1
<0,1,2>
}
uv_indices{
4,
<0,1,2>
<0,2,3>
<0,1,2>
<0,2,3>
}
texture{pigment{color rgb 1}}
rotate y*30
rotate -x*10
scale .5
}
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks, but I was actually looking for a good-sized Mesh2 (.inc?) file that
I can try to import into my program.
Cris Williams
news:ge35vtg1rm972bppjmk2efuno17q5uioi3@4ax.com...
> On Wed, 14 Nov 2001 10:03:04 -0500, "Cris Williams"
<wor### [at] netscapenet>
> wrote:
>
> > I'm looking for a Mesh2 file that uses all of the Mesh2 features. I am
> > playing around with writing a program to manipulate meshes and I'd like
to
> > thoroughly check my parser code. Does anyone have a Mesh2 file like
this on
> > a web site that I can download? Thanks.
>
> Check this:
>
> #version 3.5;
>
> camera {
> location <0.0, 0.5, -4.0>
> direction 1.5*z
> right x*image_width/image_height
> look_at 0
> }
>
> light_source { <-30, 30, -30> color rgb 1 }
>
> #local Texture1=texture{pigment{color green 1}}
>
> mesh2{
> vertex_vectors{
> 8
> (x+z+y) (x-z+y) (-x-z+y) (-x+z+y)
> (x+z-y) (x-z-y) (-x-z-y) (-x+z-y)
> }
> normal_vectors{
> 3
> x y z
> }
> uv_vectors{
> 4
> <0,0><0,1><1,1><1,0>
> }
> texture_list{
> 3,
> texture { Texture1 },
> texture { pigment{color red 1} }
> texture { pigment{color blue 1} }
> }
> face_indices{
> 4,
> <4,5,6>,0,
> <4,6,7>,0,1,2,
> <0,1,2>,
> <0,2,3>,
> }
> normal_indices{
> 1
> <0,1,2>
> }
> uv_indices{
> 4,
> <0,1,2>
> <0,2,3>
> <0,1,2>
> <0,2,3>
> }
> texture{pigment{color rgb 1}}
> rotate y*30
> rotate -x*10
> scale .5
> }
>
> ABX
> --
> #declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb
1}}
> union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{
//ABX
>
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)
}
> contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient
1}}//POV35
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 14 Nov 2001 11:06:07 -0500, "Cris Williams" <wor### [at] netscapenet>
wrote:
> Thanks, but I was actually looking for a good-sized Mesh2 (.inc?) file that
> I can try to import into my program.
I don't understand what's wrong with my example? Just remove other components
like light and camera and write mesh2 to include file. I don't understand word
"good-sized". Showed mesh2 is completly right according to mesh2 specification
at http://www.povray.org/working-docs/id000165.html#6_5_2_4 .
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
There is nothing wrong with your example. I'm just not expressing myself
clearly enough. Ideally what I would like to find is a mesh2 (preferably
closed, but not necessarily) of some recognizable shape and with a triangle
count of at least 500. Something like an ice cream cone, or a hammer, or a
tree, or an apple, or a ... :-)
I have already created my own small meshes to test my import code. Now I'd
like to try importing someone else's large mesh.
Cris Williams
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 14 Nov 2001 11:53:26 -0500, "Cris Williams" <wor### [at] netscapenet>
wrote:
> Something like an ice cream cone, or a hammer, or a
> tree, or an apple, or a ... :-)
... two flying rectangles ? ;-)
> I have already created my own small meshes to test my import code.
But how my example works with your parser ?
> Now I'd
> like to try importing someone else's large mesh.
Have you checked http://www.stmuc.com/thbaier/products.html and some large free
models from net libraries ?
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Cris Williams" <wor### [at] netscapenet> wrote...
>I'm looking for a Mesh2 file that uses all of the Mesh2 features.
Here's a simple little 'cherry' for you to play with 595 faces and UV
-mapped
http://homepage.ntlworld.com/vargol/Archive.zip
Dave
--
Posted By NewsBe 1.6.4
http://www.vargol.freeserve.co.uk/newsbe/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thank you!
"David Burnett" <var### [at] bigfootcom> wrote in message
news:100### [at] bigfootcom...
> "Cris Williams" <wor### [at] netscapenet> wrote...
> >I'm looking for a Mesh2 file that uses all of the Mesh2 features.
>
> Here's a simple little 'cherry' for you to play with 595 faces and UV
> -mapped
>
> http://homepage.ntlworld.com/vargol/Archive.zip
>
> Dave
>
> --
> Posted By NewsBe 1.6.4
> http://www.vargol.freeserve.co.uk/newsbe/
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi Cris,
You're not writing the same kind of program as I am, are you? I thought I
could patent my idea and fill a gap in everyones POV experience.. Well.. At
least I'm struggling with math these days, reading and thinking, to get up
on the level I need for my things to work.. I'm interested in knowing what
you are trying to make? Maybe we could cooperate. Though, for now my plans
are secret, in case I do have something unique in mind, that I can develop.
Regards,
Hugo
Cris wrote
> I'm looking for a Mesh2 file that uses all of the Mesh2 features. I am
> playing around with writing a program to manipulate meshes and I'd like to
> thoroughly check my parser code
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 14 Nov 2001 22:51:02 +0100, Hugo wrote:
> You're not writing the same kind of program as I am, are you? I thought I
> could patent my idea and fill a gap in everyones POV experience.. Well.. At
You are aware that software patents are one of the purest forms of evil,
right?
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|