To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.faqOpen lugnet.faq in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 FAQ / 401
400  |  402
Subject: 
autoFAQpost /cad/dat-file_to_ray-traced_image.en.faq
Newsgroups: 
lugnet.faq
Date: 
Mon, 12 Jul 1999 23:27:38 GMT
Viewed: 
1374 times
  
Subject:          How can I make ray-traced images of LDraw models?
Content-Language: en
Topic-Level:      0
Revision:         Jacob Sparre Andersen, 1999-05-14
Location:         /cad/ldraw/other_tools/
Comment:          Unedited cut from the LDraw FAQ.

<P>
There are two tools for converting LDraw models to the format of the
ray-tracer <A Href="http://www.povray.org/">POV-Ray</A>.
<A Href="http://titan.informatik.uni-bonn.de/%7Euhlmann/">L2p</A> is based
on Lutz Uhlmann's very detailed parts library, LGEO. It is available for DOS
and Linux.
<A Href="http://www.netby.net/Nord/Mandelvej/Hassing/l3p.html">L3p</A> is
based on the LDraw parts library. Only available for DOS.
</P>


<H3><A Href="http://titan.informatik.uni-bonn.de/%7Euhlmann/tutorial.html">Lutz
    Uhlmann's LGEO tutorial</A></H3>

<P>
Lutz Uhlmann's LGEO tutorial can be found at
&lt;URL:<A Href="http://titan.informatik.uni-bonn.de/%7Euhlmann/tutorial.html">
http://titan.informatik.uni-bonn.de/%7Euhlmann/tutorial.html</A>&gt;.
</P>


<H3>Jacob's quick recipe for making ray-traced images of LDraw models</H3>

<P>
<OL>
<LI>Convert your LDraw .DAT files to POV-Ray .INC files with L2P:
     <Pre>
      &gt; l2p -i -v -t -l my_model.dat my_model
     </Pre>
     It is important that you process sub-models as well, because L2P
     simply converts a reference to a .DAT sub-model to a reference to a
     .INC sub-model.
<LI>Make a copy of the scene file Lutz has included in the package
     (<Code>l2p_test.pov</Code>):
     <Pre>
      &gt; copy l2p_test.pov my_model.pov
     </Pre>
<LI>Edit the fourth line in your new scene file (the one that says:
     <Code>#include&nbsp;"l2p_test.inc"</Code>). It should refer to the
     .INC file for your model instead:
     <Table Border=1 Width="80%">
      <TR>
       <TD>
        <Pre>
         #include "lg_color.inc"
         #include "lg_defs.inc"

         #include "my_model.inc"
        </Pre>
     </Table>
<LI>Run POV-Ray with the new scene file. This is how I do it in Linux.
     There are probably some minor differences when you do it in DOS:
     <Pre>
      &gt; povray +L/usr/lib/povray/include/ +Llgeo/ +Imy_model.pov
     </Pre>
     The first <Code>+L</Code> refers to the POV-Ray libraries, the second
     <Code>+L</Code> refers to the LGEO library, and the <Code>+I</Code>
     refers to the scene file.
</OL>
</P>


<H3>Bram's additions for Win95 users</H3>

<P>
In the windows version instead of writing a long command line, you need to
go to Edit Rendering Settings and add the command line options
(<Code>+L</Code>).
</P>



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR