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:
Message is in Reply To:
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
|
|
|
|