POV-Ray : Newsgroups : povray.newusers : xml-file converting to Povray? Server Time
31 Oct 2024 23:32:27 EDT (-0400)
  xml-file converting to Povray? (Message 1 to 8 of 8)  
From: Kitty
Subject: xml-file converting to Povray?
Date: 24 Nov 2006 09:38:42
Message: <456703f2$1@news.povray.org>
Hi,

I have a xml-file describing some buildings in 3D and I wanted to ask if 
there exist a possibility to convert or to import this file into Povray. I 
would like to render this xml-file with Povray. Is this possible, is there a 
software able to convert xml-files to Povray? Or what other thing could I 
do?

Thanks for your help!!


Post a reply to this message

From: Warp
Subject: Re: xml-file converting to Povray?
Date: 24 Nov 2006 10:25:51
Message: <45670efe@news.povray.org>
Kitty <kit### [at] microsoftcom> wrote:
> I have a xml-file describing some buildings in 3D and I wanted to ask if 
> there exist a possibility to convert or to import this file into Povray. I 
> would like to render this xml-file with Povray. Is this possible, is there a 
> software able to convert xml-files to Povray? Or what other thing could I 
> do?

  That's a bit like saying that you have an excel file or a mysql database
describing 3D buildings and you would want a software which converts the
data into pov format.

  Neither excel, mysql or xml are formats specific to representing 3D data.
They are more generic formats than that. They are simply formats to describe
non-specified data. Saying "3D data in XML" says nothing. You may equally
well say "3D data in ascii" and it would be exactly as useful.

  In other words, with the info you gave it's impossible to tell.

  Is the file format a popular 3D data format? If it is, then it would be
called something else than "xml" (even if it obeys the xml standard). That
would be much more helpful. If it's just some random xml file containing
some 3D data, not standardized anywhere, then I doubt any software would
exist that converts it to pov format.

-- 
                                                          - Warp


Post a reply to this message

From: Alain
Subject: Re: xml-file converting to Povray?
Date: 24 Nov 2006 16:08:26
Message: <45675f4a$1@news.povray.org>
Kitty nous apporta ses lumieres en ce 24/11/2006 09:02:
> Hi,

> I have a xml-file describing some buildings in 3D and I wanted to ask if 
> there exist a possibility to convert or to import this file into Povray. I 
> would like to render this xml-file with Povray. Is this possible, is there a 
> software able to convert xml-files to Povray? Or what other thing could I 
> do?

> Thanks for your help!! 


Do you know what modeler was used to create that file? Do you have access to the 
application? Can it export to some other, beter deffined, format?

-- 
Alain
-------------------------------------------------
Quakers: Let us not fight over this shit.


Post a reply to this message

From: Kitty
Subject: Re: xml-file converting to Povray?
Date: 27 Nov 2006 09:16:38
Message: <456af346$1@news.povray.org>
> Do you know what modeler was used to create that file? Do you have access 
> to the application? Can it export to some other, beter deffined, format?
>
> -- 
> Alain
> -------------------------------------------------
> Quakers: Let us not fight over this shit.




I know that the xml-file originally was an autocad-file - and someone 
converted it to a xml-file, but I don't know by which method...


Post a reply to this message

From: Alain
Subject: Re: xml-file converting to Povray?
Date: 28 Nov 2006 20:44:21
Message: <456ce5f5$1@news.povray.org>
Kitty nous apporta ses lumieres en ce 27/11/2006 09:16:
>> Do you know what modeler was used to create that file? Do you have access 
>> to the application? Can it export to some other, beter deffined, format?

>> -- 
>> Alain

> I know that the xml-file originally was an autocad-file - and someone 
> converted it to a xml-file, but I don't know by which method... 


If you have access to Autocad or Autocad light, try importing the file. Then, 
you can export as a DXF file that you can convert to POV-Ray using Poseray.
That's the best that I can think of.

-- 
Alain
-------------------------------------------------
All true wisdom is found on T-shirts.


Post a reply to this message

From: Kitty
Subject: Re: xml-file converting to Povray?
Date: 29 Nov 2006 08:56:57
Message: <456d91a9$1@news.povray.org>

456ce5f5$1@news.povray.org...
> Kitty nous apporta ses lumieres en ce 27/11/2006 09:16:
>>> Do you know what modeler was used to create that file? Do you have 
>>> access to the application? Can it export to some other, beter deffined, 
>>> format?
>
>>> -- 
>>> Alain
>
>> I know that the xml-file originally was an autocad-file - and someone 
>> converted it to a xml-file, but I don't know by which method...
>
>
> If you have access to Autocad or Autocad light, try importing the file. 
> Then, you can export as a DXF file that you can convert to POV-Ray using 
> Poseray.
> That's the best that I can think of.
>
> -- 
> Alain
> -------------------------------------------------
> All true wisdom is found on T-shirts.



Yes, I think this is a good solution. I will try it... thanks for help!!


Post a reply to this message

From: Manuel Mata
Subject: Re: xml-file converting to Povray?
Date: 1 Dec 2006 13:25:00
Message: <web.45707281fa762727e8c4c6630@news.povray.org>
"Kitty" <kit### [at] microsoftcom> wrote:
> Hi,
>
> I have a xml-file describing some buildings in 3D and I wanted to ask if
> there exist a possibility to convert or to import this file into Povray. I
> would like to render this xml-file with Povray. Is this possible, is there a
> software able to convert xml-files to Povray? Or what other thing could I
> do?
>
> Thanks for your help!!

Well, there is a very hard coded way to do it. You can use XSL to transform
your XML file into any text format like povray SDL, but it is hard. For
example, if you have this line into your XML file:

<box width="2" height="4" length="3"/>

You can use an XSL stylesheet like this

<xsl:template match="box">
box{0 <<xsl:value-of select="width"/>,<xsl:value-of
select="height"/>,<xsl:value-of select="length"/>>}
</xsl:template>

Then you need a tool like Xalan (free and made with Java) and it would
convert it in this SDL line.

box{0 <2,4,3>}

I know this is hard, but is another way ...

         See ya.
         www.mmata.org


Post a reply to this message

From: Lonster
Subject: Re: xml-file converting to Povray?
Date: 5 Dec 2006 09:05:00
Message: <web.45757b68fa762727ad5eb7750@news.povray.org>
"Kitty" <kit### [at] microsoftcom> wrote:
> Hi,
>
> I have a xml-file describing some buildings in 3D and I wanted to ask if
> there exist a possibility to convert or to import this file into Povray. I
> would like to render this xml-file with Povray. Is this possible, is there a
> software able to convert xml-files to Povray? Or what other thing could I
> do?
>
> Thanks for your help!!

This may help...

Importing XML Files into AutoCAD:
Use the insert comand to import a XML file. Alternatively from the menu pick
INSERT|Block. In the INSERT dialog box click BROWSE which displays SELECT
DWG FILE dialog box. Click the FILES of type dropdown list and select XML.
Select the dwg and click open Place the dwg as if you would a block.  From
there you should be able to save it in another format like .3ds and convert
to POV-SDL with PoseRay. Good Luck.

--Lonster


Post a reply to this message

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