POV-Ray : Newsgroups : povray.binaries.images : mesh2udo:-) Server Time
18 Nov 2024 08:16:04 EST (-0500)
  mesh2udo:-) (Message 1 to 5 of 5)  
From: Thomas Lake
Subject: mesh2udo:-)
Date: 2 May 2002 01:13:22
Message: <3cd0caf2@news.povray.org>
After more hours of work here is my 3rd app:-) I think this one is actually
useful. What it does is take any mesh defined in a file in the pov-ray mesh
standard and creates an INC and UDO file so the mesh can be imported into
moray and rendered along side anything else in moray. For example take a
look at the chess.inc file in the Pov-Ray 3.1 example scene files. This file
contains a mesh of 2 chess pieces a rook and a knight. Normally you would be
stuck if you wanted to import these into a Moray scene because there are no
converters, to my knowledge, that import pov-ray files. However my until
creates a perfectly good UDO and accompanying INC file which you can import
right into Moray. Just take a look at the images bellow. The 747 is a 3Ds
Max file I converted to a pov-ray mesh and then converted to a INC/UDO using
my app. I've also tested this on some very complex objects I created in
Rhinoceros and it works fine. Now for Rhinoceros its not of much use since
it already exports to Moray. However for those who do not have it this may
be useful. I can also see using this until to import meshes created by
pov-ray macro's, it also automatically converts the meshes from Pov-Ray's
left handed coordinate system to Moray's right handed system. As you can
tell I'm quite proud of myself with this little creation seeing as I have
almost 0 experience working with meshes and its only my 3rd or 4th
program:-) There are some limitations to this app still, seeing as I wrote
it in about 4 hours. The major ones are:

-No texture support that is it ignores all textures in the original pov-ray
mesh file, you can of course texture the mesh in Moray.
-No polygon/edge reduction. Every vertex is connected directly to the last
without checking if the edge already exists, this means my app creates 2 -3
times more edges than rhinoceros or 3dwin. This is of course only for the
UDO.
-Objects named automatically, eg Object0,Object1.... etc.

If anyone thinks my app is actually useful I can post it in p.b.u. And try
to work on some of the above.

--
----------------------------------------------------------------------------
-----------
Home Page: http://www.geocities.com/~thomaslake/
----------------------------------------------------------------------------
-----------


Post a reply to this message


Attachments:
Download 'Screenshot.jpg' (138 KB) Download 'Screenshot2.jpg' (127 KB) Download 'mesh2udo2.jpg' (23 KB) Download 'mesh2udo1.jpg' (13 KB)

Preview of image 'Screenshot.jpg'
Screenshot.jpg

Preview of image 'Screenshot2.jpg'
Screenshot2.jpg

Preview of image 'mesh2udo2.jpg'
mesh2udo2.jpg

Preview of image 'mesh2udo1.jpg'
mesh2udo1.jpg


 

From: Thomas Lake
Subject: Re: mesh2udo:-)
Date: 2 May 2002 01:14:45
Message: <3cd0cb45@news.povray.org>
Sorry for the large file size.


Post a reply to this message

From: Thomas de Groot
Subject: Re: mesh2udo:-)
Date: 2 May 2002 05:15:29
Message: <3cd103b1@news.povray.org>
Gee!! This is a good piece of work, Thomas!
I certainly think it is a useful utility, together with the Ambidex one.
So.. please post it, yes!

One question though, as I am really stupid with Java ! How do you start the
ambidex2.class utility??? And your new one when it is finished?

Thanks!!!

Thomas de Groot


"Thomas Lake" <tla### [at] REMOVE-THISshawca> schreef in bericht
news:3cd0caf2@news.povray.org...
> After more hours of work here is my 3rd app:-) I think this one is
actually
> useful. What it does is take any mesh defined in a file in the pov-ray
mesh
> standard and creates an INC and UDO file so the mesh can be imported into
> moray and rendered along side anything else in moray. For example take a
> look at the chess.inc file in the Pov-Ray 3.1 example scene files. This
file
> contains a mesh of 2 chess pieces a rook and a knight. Normally you would
be
> stuck if you wanted to import these into a Moray scene because there are
no
> converters, to my knowledge, that import pov-ray files. However my until
> creates a perfectly good UDO and accompanying INC file which you can
import
> right into Moray. Just take a look at the images bellow. The 747 is a 3Ds
> Max file I converted to a pov-ray mesh and then converted to a INC/UDO
using
> my app. I've also tested this on some very complex objects I created in
> Rhinoceros and it works fine. Now for Rhinoceros its not of much use since
> it already exports to Moray. However for those who do not have it this may
> be useful. I can also see using this until to import meshes created by
> pov-ray macro's, it also automatically converts the meshes from Pov-Ray's
> left handed coordinate system to Moray's right handed system. As you can
> tell I'm quite proud of myself with this little creation seeing as I have
> almost 0 experience working with meshes and its only my 3rd or 4th
> program:-) There are some limitations to this app still, seeing as I wrote
> it in about 4 hours. The major ones are:
>
> -No texture support that is it ignores all textures in the original
pov-ray
> mesh file, you can of course texture the mesh in Moray.
> -No polygon/edge reduction. Every vertex is connected directly to the last
> without checking if the edge already exists, this means my app creates
2 -3
> times more edges than rhinoceros or 3dwin. This is of course only for the
> UDO.
> -Objects named automatically, eg Object0,Object1.... etc.
>
> If anyone thinks my app is actually useful I can post it in p.b.u. And try
> to work on some of the above.
>
> --
> --------------------------------------------------------------------------
--
> -----------
> Home Page: http://www.geocities.com/~thomaslake/
> --------------------------------------------------------------------------
--
> -----------
>
>
>


Post a reply to this message

From: Thomas Lake
Subject: Re: mesh2udo:-)
Date: 2 May 2002 05:43:55
Message: <3cd10a5b$1@news.povray.org>
> Gee!! This is a good piece of work, Thomas!
> I certainly think it is a useful utility, together with the Ambidex one.
> So.. please post it, yes!

Thanks!:-)

> One question though, as I am really stupid with Java ! How do you start
the
> ambidex2.class utility??? And your new one when it is finished?

First you need to have the Java 2 run time environment installed:

http://java.sun.com/j2se/1.4/download.html

Now I'm assuming your running windows.

Once you have that installed I recommended adding the /bin directory of java
to your path. This is so that you have access to java.exe from anywhere on
your system. Once you have that done all you have to do is type java
programname where programname is the name of the main class of the program
to run. For example for ambidex2 if you type:

java ambidex2

you will get a very short message telling you the syntax on how to use the
program. In this case its ambidex2 <inputfilename> <outputfilename>. Just
replace inputfilename with the name of your right handed povray file and
outputfilename with the name of the file you want as output. For example:

java ambidex2 Snowman.pov SnowmanLeft.pov

This would take the Snowman.pov file you have and create a Left handed
version called SnowmanLeft.pov. One thing you have to be very careful with
my program and that is it doesn't check to see if the file already exists,
if it does it will overwrite it.<mandatorylegalnote>I'm not responsible for
anything that happens when running my app</mandatorylegalnote>;-)


Post a reply to this message

From: Thomas de Groot
Subject: Re: mesh2udo:-)
Date: 2 May 2002 07:59:19
Message: <3cd12a17@news.povray.org>
Thanks a lot. I shall get things working!!

Thomas de Groot


"Thomas Lake" <tla### [at] REMOVE-THISshawca> schreef in bericht
news:3cd10a5b$1@news.povray.org...
> > Gee!! This is a good piece of work, Thomas!
> > I certainly think it is a useful utility, together with the Ambidex one.
> > So.. please post it, yes!
>
> Thanks!:-)
>
> > One question though, as I am really stupid with Java ! How do you start
> the
> > ambidex2.class utility??? And your new one when it is finished?
>
> First you need to have the Java 2 run time environment installed:
>
> http://java.sun.com/j2se/1.4/download.html
>
> Now I'm assuming your running windows.
>
> Once you have that installed I recommended adding the /bin directory of
java
> to your path. This is so that you have access to java.exe from anywhere on
> your system. Once you have that done all you have to do is type java
> programname where programname is the name of the main class of the program
> to run. For example for ambidex2 if you type:
>
> java ambidex2
>
> you will get a very short message telling you the syntax on how to use the
> program. In this case its ambidex2 <inputfilename> <outputfilename>. Just
> replace inputfilename with the name of your right handed povray file and
> outputfilename with the name of the file you want as output. For example:
>
> java ambidex2 Snowman.pov SnowmanLeft.pov
>
> This would take the Snowman.pov file you have and create a Left handed
> version called SnowmanLeft.pov. One thing you have to be very careful with
> my program and that is it doesn't check to see if the file already exists,
> if it does it will overwrite it.<mandatorylegalnote>I'm not responsible
for
> anything that happens when running my app</mandatorylegalnote>;-)
>
>
>


Post a reply to this message

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