 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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] netscape net>
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
"W³odzimierz ABX Skiba" <abx### [at] babilon org> wrote in message
news:ge35vtg1rm972bppjmk2efuno17q5uioi3@4ax.com...
> On Wed, 14 Nov 2001 10:03:04 -0500, "Cris Williams"
<wor### [at] netscape net>
> 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] netscape net>
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] netscape net>
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] netscape net> 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] bigfoot com> wrote in message
news:100### [at] bigfoot com...
> "Cris Williams" <wor### [at] netscape net> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Hi Ron,
Hehe.. That made me smile.. It was a joke from my side. I have no patent in
mind, just maybe a dream of "being known" for having done something useful
among some POV people.. My program should be both freeware and open source..
The rest of what I wrote was honest however.
Hugo
Ron Parker wrote
> You are aware that software patents are one of the purest forms of evil,
> right?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
No, its not anything like the software you are developing. And, um, mine's
a secret too. ;-)
Cris Williams
"Hugo" <hua### [at] post3 tele dk> wrote in message
news:3bf2e692$1@news.povray.org...
> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Cris Williams wrote:
> No, its not anything like the software you are developing. And, um, mine's
> a secret too. ;-)
>
> Cris Williams
>
And is it anything like mine?
:-)
--
Jon A. Cruz
http://www.geocities.com/joncruz/action.html
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Yes - it uses little mesh2 objects to create a mosiac image of the secret
source code from Hugo's secret software. :-)
Darn! I meant to keep that a secret! Don't tell anyone, okay?
Cris Williams
"Jon A. Cruz" <jon### [at] geocities com> wrote in message
news:3BF33D94.D0729DC3@geocities.com...
> Cris Williams wrote:
>
> > No, its not anything like the software you are developing. And, um,
mine's
> > a secret too. ;-)
> >
> > Cris Williams
> >
>
> And is it anything like mine?
>
> :-)
>
>
> --
> Jon A. Cruz
> http://www.geocities.com/joncruz/action.html
>
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Cris Williams wrote:
> Yes - it uses little mesh2 objects to create a mosiac image of
> the secret source code from Hugo's secret software. :-)
I personally suspect you are both writing the same program, not
noticing the extra lines that appear between your own editing
sessions.
--
Tim Cook
http://empyrean.scifi-fantasy.com
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Cris Williams wrote:
> Yes - it uses little mesh2 objects to create a mosiac image of the secret
> source code from Hugo's secret software. :-)
>
> Darn! I meant to keep that a secret! Don't tell anyone, okay?
Ooops. wrong program. The mosaic was just one I was maintaining for someone.
My program is YAMC
http://news.povray.org/povray.binaries.images/18811/
> Cris Williams
>
> "Jon A. Cruz" <jon### [at] geocities com> wrote in message
> news:3BF33D94.D0729DC3@geocities.com...
> > Cris Williams wrote:
> >
> > > No, its not anything like the software you are developing. And, um,
> mine's
> > > a secret too. ;-)
> > >
> > > Cris Williams
> > >
> >
> > And is it anything like mine?
> >
> > :-)
> >
> >
> > --
> > Jon A. Cruz
> > http://www.geocities.com/joncruz/action.html
> >
> >
> >
--
Jon A. Cruz
http://www.geocities.com/joncruz/action.html
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ron Parker <ron### [at] povray org> wrote:
: You are aware that software patents are one of the purest forms of evil,
: right?
And also useless. Patenting your algorithm makes sure that it will never
be popular, it will never be developed further and that it will be forgotten
for tens of years (only after the patent expires, if the algorithm is still
relevant, it *might* have some success).
This is exactly what happened with, for example, fractal compression of
images. How many programs do you know that support encoding? Or even decoding?
How much has it evolved since the idea was discovered?
In contrast, think about PNG. No patents, huge popularity boom.
--
#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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I knew that! No, it's not really like yours - in fact I'm not sure if my
software really knows what it wants to be when it grows up. Anyway, I hope
you're making good progress with YAMC. It looks pretty cool.
SPOON!!!
"Jon A. Cruz" <jon### [at] geocities com> wrote in message
news:3BF362DA.2D44E76F@geocities.com...
> Cris Williams wrote:
>
> > Yes - it uses little mesh2 objects to create a mosiac image of the
secret
> > source code from Hugo's secret software. :-)
> >
> > Darn! I meant to keep that a secret! Don't tell anyone, okay?
>
> Ooops. wrong program. The mosaic was just one I was maintaining for
someone.
>
> My program is YAMC
> http://news.povray.org/povray.binaries.images/18811/
>
>
>
> > Cris Williams
> >
> > "Jon A. Cruz" <jon### [at] geocities com> wrote in message
> > news:3BF33D94.D0729DC3@geocities.com...
> > > Cris Williams wrote:
> > >
> > > > No, its not anything like the software you are developing. And, um,
> > mine's
> > > > a secret too. ;-)
> > > >
> > > > Cris Williams
> > > >
> > >
> > > And is it anything like mine?
> > >
> > > :-)
> > >
> > >
> > > --
> > > Jon A. Cruz
> > > http://www.geocities.com/joncruz/action.html
> > >
> > >
> > >
>
> --
> Jon A. Cruz
> http://www.geocities.com/joncruz/action.html
>
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Cris Williams wrote:
> I knew that! No, it's not really like yours - in fact I'm not sure if my
> software really knows what it wants to be when it grows up.
[SNIP]
> SPOON!!!
Two things for you and Hugo to ponder:
1) If you write it in Java and use Java3D, then the exact same binary will work
on Windows (with either Direct3D or OpenGL), Linux, Solaris, Mac OS X (soon),
Irix, and many others
2) If you code in C/C++ with OpenGL and GLUT then you can re-compile your same
sources to make a separate binary for Windows (OpenGL), Mac OS X, Irix, Solaris
and others.
The more, the merrier.
--
Jon A. Cruz
http://www.geocities.com/joncruz/action.html
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |