To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 3626
3625  |  3627
Subject: 
User POV substitutions in L3P
Newsgroups: 
lugnet.cad
Date: 
Wed, 8 Mar 2000 18:08:06 GMT
Viewed: 
623 times
  
After playing with Ldraw, The first thing I wanted to do was learn the file
format and write a converter to POV.  Then I found L3P, and was delighted.
When I saw the minifigs with faceted heads, I investigated and learned about
the triangle and quad lists in the primitives.  L3P does do some primitive
substitution, but I was limited to whatever it knew about.  To address this I
have written an L3P post processor.  The basic idea is that you put
conditional compile commands and POV rendering commands in the Ldraw
primitives and parts files.  Since the commands are stored in the comment
fields, they are ignored by Ldraw and L3P, they end up in the final POV file.
The post processor, reads the L3P generated file, and writes a new file with
the POV primitive substitutions.  The new file is smaller, and better suited
for POV rendering, since huge mesh commands are replaced with simple POV
primitives.  I have been satisfied with the results. However, it does require
editing the files in your P and Parts folders.  So far I have only added
primitives to 2 parts, just for testing.

Is there any interest in this?

-Chuck Sommerville



Message has 3 Replies:
  Re: User POV substitutions in L3P
 
(...) YES! Anything that can make my life simpler and easier is a *good* thing. :-) Thanks, Franklin (25 years ago, 8-Mar-00, to lugnet.cad)
  Re: User POV substitutions in L3P
 
Chuck Sommerville skrev i meddelandet ... (...) There sure is! When can we have it? <g> -- Anders Isaksson, Sweden BlockCAD: (2 URLs) (25 years ago, 8-Mar-00, to lugnet.cad)
  Re: User POV substitutions in L3P
 
(...) Yes, definitely. What kind of commands do you add to the LDraw files? My concern would be how to hook up your stuff with the standard LDraw parts library, so we wouldn't have to maintain two separate sets of code. Steve (25 years ago, 10-Mar-00, to lugnet.cad)

8 Messages 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