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 / 1113
1112  |  1114
Subject: 
POV camera positioning [was Re: 1x1 and 2x2 chess sets]
Newsgroups: 
lugnet.cad, lugnet.build
Date: 
Mon, 1 Mar 1999 07:39:50 GMT
Viewed: 
1092 times
  
On Mon, 1 Mar 1999 01:45:25 GMT, Mookie <Mookie@execpc.com> wrote:

Someone got some hints on better camera views though? I'm having one
hell of a time adjusting the camera to get the shots I really want.

Well, hopefully we will eventually get a least a simple implementation of a
Camera.dat and Lookat.dat into LDraw.

Until then, you could try using a couple of Light.dat files in your LDraw
model.

First, generate the .POV file from your dat model file.

Then go into your model.dat file and place two light.dat pieces.
Place one light.dat where you want the camera, and one where you want the
camera to look.  Save the file.

Now open your model.dat file in a text editor. Find the first light.dat line
(your "camera") and copy the coordinate numbers. Example:
x x 1810 224 40 x x x x x x x x x light.DAT
The 1810 224 40 are the coordinates.
Paste those numbers as a direct replacement for the camera "location"
coordinates in your .POV file.

Then substitute the coordinates of the second light dat for the coordinates in
the camera's "look_at" section.
x x 300 224 1090 x x x x x x x x x light.DAT

(sorry for the "x's" in the dat file lines, I am trying to do an end run around
lugnets prohibition on dat files in groups other than cad.dat.)

Note in the typical POV-Ray Camera command code sample below where the changes
are pasted in:

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 vaxis_rotate(<1810 224 40> +
PCT/100.0*<2008.64,-1640.05,-2008.64>,
                      <-3294270,-8069280,3294270>,STEREO)
sky      -y
right    -4/3*x
look_at  <300 224 1090>
angle    67.3801
//orthographic
}


Render the file using QUAL=0 to test the location and perspective.
If you need to adjust the camera or look_at coordinates, you can simple adjust
the points in your ldraw.dat model file, then copy and paste the coordinate
numbers from the dat file to the appropriate places in the .pov file.

Not a perfect way of doing things, but it works.

-- Terry K --



Message has 1 Reply:
  Re: POV camera positioning [was Re: 1x1 and 2x2 chess sets]
 
(...) What's that you say, Sonny? :o) Here are the groups that -allow- .DAT content: lugnet.cad lugnet.cad.dat lugnet.cad.dev lugnet.off-topic.test Here are the groups that -require- .DAT content: lugnet.cad.dat --Todd (25 years ago, 1-Mar-99, to lugnet.cad, lugnet.admin.general)

Message is in Reply To:
  Re: 1x1 and 2x2 chess sets
 
Looks Great Todd!! and I like how you did those chess pieces! Yes I have to admit, L3P is a great prg! Lars did a good job on it! I like the fact that you don't have to have the piece in the .inc files to use pov with it, you can use all the parts (...) (25 years ago, 1-Mar-99, to lugnet.cad, lugnet.build)

41 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