To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 1101
1100  |  1102
Subject: 
Re: LDGLite orientation matrix (l3p enhancement requests?)
Newsgroups: 
lugnet.cad.dev, lugnet.cad.ray
Date: 
Thu, 10 Jan 2002 22:41:44 GMT
Viewed: 
99 times
  
Jacob recently asked for an ldglite enhancement to dump ldglite command
line args and POV camera settings which reproduce the current view.
I assume he means l3p compatible camera settings.  I think I have it
working (except for my question about the STEREO thing).  In the next
release of ldglite you should get something like this by pressing the
F12 key.

  l3glite -s4 -a-0.39,-0.05,0.91,0.63,0.70,0.31,-0.66,0.70,-0.24 m6040.dat

  camera {
        #declare PCT = 0; // Percentage further away
        #declare STEREO = 0; // Normal view
        //#declare STEREO =  degrees(atan2(1,12))/2; // Left view
        //#declare STEREO = -degrees(atan2(1,12))/2; // Right view
        location <153.501,-190.465,55.321>
  +PCT/100.0*<166.18,-176.325,61.5904>
        sky <-0.15849,-0.176746,-0.0783673>
        right    -4/3*x
        look_at <-12.6792,-14.1397,-6.26938>
        angle 35.4894
        rotate   <0,1e-5,0> // Prevent gap between adjecent quads
        orthographic
  }

  l3p -cc153.501,-190.465,55.321 -cla-12.6792,-14.1397,-6.26938
      -ca35.4894 m6040.dat -b15

I added the last part because I thought it might be better to just
dump an l3p command line.  But I have a few problems with this.

1.  I could use an orthographic option on command line.  Is there one?
    This is handy for generating POV versions of assembly instructions
    like these:  http://www.brickshelf.com/cgi-bin/gallery.cgi?i=94099

2.  I could also use a way to set the sky vector on the command line.

3.  It'd be handy to set PCT on the command line, but if this is too much
    of a chore I can continue to scale by moving the camera location.

4.  POV doesn't like a negative value for angle but you can enter one with
    -ca on the l3p command line.


Sorry if I've got this all wrong somehow, but I just started playing
with POV.  It's been about 10 years since I did any ray tracing.  Seems
a lot faster now...

Don



Message has 2 Replies:
  Re: LDGLite orientation matrix (l3p enhancement requests?)
 
(...) [...] This sounds exactly like what I asked for. I look forward to the next LDGLite release. Jacob (23 years ago, 11-Jan-02, to lugnet.cad.dev, lugnet.cad.ray)
  Re: LDGLite orientation matrix (l3p enhancement requests?)
 
Don Heyse wrote... (...) See examples in (URL) POV's orthographic keyword in the camera definition would require another way of calculating the optimum camera position. I think one of the great features about L3P is that you always get a good view (...) (23 years ago, 18-Jan-02, to lugnet.cad.dev, lugnet.cad.ray)

Message is in Reply To:
  Re: Can LDGLite print the current orientation matrix? (feature request)
 
(...) Ok the current copy of main.c in CVS has a function that does part A. I have most of part B working, but I don't completely understand the STEREO stuff in the location part of an l3p camera setting. Can you or somebody explain it? I can create (...) (23 years ago, 8-Jan-02, to lugnet.cad.dev)

13 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