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 / 9914
9913  |  9915
Subject: 
Re: LDGlite and LPub
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 25 Oct 2004 13:39:41 GMT
Viewed: 
1619 times
  
In lugnet.cad.dev, Kevin L. Clague wrote:
  Thanks for the help.  I run L3P like this:

set PATH=C:\LDRAW;
set LDRAWDIR=C:\LDRAW
l3p.exe -stdout -ca1.000000 -cg30.000000,45.000000,60000.000000 -q2
-b0x02ffffff -o LDraw\CAR.DAT POV\CAR.pov

and I get this result rendering at 800x600

http://www.brickshelf.com/gallery/kclague/temp/car.bmp

I run ldglite like this:
set PATH=C:\LDRAW\ldgliteexe1_0_7;
set LDRAWDIR=C:\LDRAW
ldglite.exe -l3 -mS -i2 -Z100000 -j -ca1 -cg0,0,60000.000000
-v800,600 -fh -w1 -q C:\LDRAW\MODELS\LDraw\CAR_l.dat

and I get this result:

http://www.brickshelf.com/gallery/kclague/temp/car_l1.png

I'm using a lense angle of 1 to approximate orthographic.

Ok, now we're getting closer to the problem, I think.  The ldglite
image is blank, so I changed a few things to see what's up.  I switched
-mS to -ms so I could see it on screen and got a car facing forward.
Does the offscreen windows rendering -mS work for you?  I made some
changes in the code the other day so I may have broken mine.

Anyhow, I switched the -cg to -cg30,45,60000 to get the same
viewing angle as the l3p command line and got an image much closer
to the pov output.  However the car was a bit smaller.  Nuts!
I noticed if I use a larger screen height in ldglite the car comes
out bigger.  A setting of -v5 gives a much closer match, so maybe I
botched the pov aspect ratio calculation.  768 is close to 800 so
perhaps I reversed the x and y.  I'll have to take a look at that.
-v800,800 looks very close in size to the pov output.

Don



Message has 2 Replies:
  Re: LDGlite and LPub
 
(...) <snip> (...) Hi Don, Thanks for the help. I was able to make -mS work, but only if I backed way off on the 60000 number. By the time LPub presents the car model to ldglite to render, LPub has alrealy applied ROTSTEP to the model, assuming the (...) (20 years ago, 25-Oct-04, to lugnet.cad.dev)
  Re: LDGlite and LPub
 
(...) Please note that L3P's field of view is the horizontal field of view, and OpenGL's is the vertical field of view. You have to convert if you want the same result. You can check real quick by doing a square image in each. If they look the same, (...) (20 years ago, 25-Oct-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDGlite and LPub
 
(...) Don, Thanks for the help. I run L3P like this: set PATH=C:\LDRAW; set LDRAWDIR=C:\LDRAW l3p.exe -stdout -ca1.000000 -cg30.000000,45.0000...000.000000 -q2 -b0x02ffffff -o LDraw\CAR.DAT POV\CAR.pov and I get this result rendering at 800x600 (...) (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