To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9919
9918  |  9920
Subject: 
Re: LDGlite and LPub
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 25 Oct 2004 16:59:12 GMT
Viewed: 
1795 times
  
In lugnet.cad.dev, Kevin L. Clague wrote:

I just wasn't sure what to do with -z and -Z.  LPub has to manage
ROTSTEPS and such, so it pre-rotates the model into the desired view
angle.  It also centers the model in the process.  The default value
of -z10 clips the front of the car off.  Nice feature it that is
what you want.  I was able to back this toward the camera a bit, but
when I was getting all white image with 60000, I thought there
was an issue with clippping planes.

I'd rather not have to specify them at all.

Yeah, me too, but opengl requires it.  I didn't make them automatic
because the ldlite parser draws as it parses, so it doesn't have access
to the bounding box of the model.  I'll fix it for the l3 parser to
default the clipping planes just outside the bounding box.

Also, when I specify -i2 (PNG with alpha channel), is the background
written out as transparent?  I need this to happen for POV-Ray
compatibility.

It works for me with -i2 (clipped) and -i-2 (unclipped).  I used
Travis' red background to test it in mozilla.

<HTML><HEAD></HEAD><BODY BGCOLOR="#FF0000"><IMG SRC="car.png"></BODY></HTML>

Umm, watch out for antialiased -q lines in the released version of
ldglite.  They come out partially transparent.  It's fixed in the
current sources, so when I make those other two patches you're looking
for, I'll try to make a new release.

The current source code also supports the -mf and -mF command line
options so you can just generate the final image and put it wherever
you want.  (try -mFc:\images\car.png for example).

Don



Message has 1 Reply:
  Re: LDGlite and LPub
 
(...) <snip> (...) Ooooohhhhh. Thanks for that one..... that will make my code smaller. (...) Kevin (20 years ago, 25-Oct-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDGlite and LPub
 
(...) I just wasn't sure what to do with -z and -Z. LPub has to manage ROTSTEPS and such, so it pre-rotates the model into the desired view angle. It also centers the model in the process. The default value of -z10 clips the front of the car off. (...) (20 years ago, 25-Oct-04, to lugnet.cad.dev)

52 Messages in This Thread:













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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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