[HelpDesk] Help!!! Cannot change Camera Settings in LPUB

Jedi jedi_agh at yahoo.com
Mon Oct 9 17:30:40 EDT 2006


You can always skip LPUB and directly edit the POV-Ray file.  It is not as hard as it may look.  Follow these instructions.
   
  1. Open the model in MLCAD
  2. Open the POV-Ray file of the model.
  (Do not be afraid of all the code you will see).
  3. In the POV-Ray file scroll towards the very bottom of the file. You will be looking for the following code:
   
  // Camera (Latitude,Longitude,Radius = 45,45,0)
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(<563.647,-686.364,-581.794> + PCT/100.0*<412.294,-583.072,-412.294>,
                       <-240397,-339973,240397>,STEREO)
 sky      -y
 right    -4/3*x
 look_at  <151.353,-103.293,-169.5> // calculated
 angle    67.3801
 rotate   <0,1e-5,0> // Prevent gap between adjecent quads
 //orthographic
}

  This code control the camera.  How if you have ever taken any pictures think about how you take them?  You stand somewhere (location) and point the camera at something (look_at).
   
  4. Comment out the location vaxis_rotate line of text.  Place "//
 in the front of the line of code and watch it turn green.  Comments lines of code DO NOT affect the file.  POV-Ray will ignore them.
  5. Go back to your LDraw model in MLcad and using your mouse find a spot on where you would like to set the camera up.  Use the TOP window panel to figure out where you want your camera.  Note how the X and Z coordinates on the lower left move when you are in the TOP view.  Write down the X and Z coordinates once you find a good camera location on a sheet of paper.
  6. Go back to POV-Ray and after the commented location line add the following:
  location <x, y, z>
  where X and Z are the coordinates you took from MLCAD.
  Y will depend on how high/low you want the camera.  Remember this is the camera (AKA you holding the camera) this is not where the camera is looking at.
  7. Now go back to MLCAD to find a spot or general area you want the camera to lok at.  Again use the TOP view to get the X and Z values. Use the FRONT or LEFT views to determine the height or Y value.  Record those on a sheet of paper.
  8. Go back to POV-Ray and edit this line:
  look_at  <151.353,-103.293,-169.5> // calculated
to
  look_at <x,y,z> and use your values.
  Save the file and render it.
   
  You may have to play a little bit with the location "y" value to get the height of the camera that you like but that is all there is too it.
   
  -Ahui
  LDraw Help Desk
mpatil <mpatil.email at gmail.com> wrote:
    Hi,
  I am holding a class at my daughters middle school and have made models using MLCAD. When I use LPUB (to create POV files and then create building instructions) and change the "Renderer"->"L3P"->"Camera" "Global" settings it always creates the model at Longitude 45. No matter what I do in the LPUB settings it always displays it at this Longitude. All I want to do is look at the model at longitude -135. This is because in one of the steps a peice of lego cannot be seen and the kids will be confused on how to build this step. 
   
  LPUB version: 2.4.8.0
  Pov-Ray version: 3.6
   
  I have tried searching all over the net but still no solution. It is now become urgent.  Now I am making a desperate bid to ask the Lego Gurus..
   
  Kindly advice....
   
  Feel free to contact me at 214-228-2460
  Manoj
_______________________________________________
HelpDesk mailing list
HelpDesk at ldraw.org
http://mail.peeron.com/mailman/listinfo/helpdesk


Visit our sites: 
  A&M Lego Place:  http://www.ozbricks.com/jediagh/ 
A&M Productions: http://www.aamproductions.biz
   

 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.peeron.com/pipermail/helpdesk/attachments/20061009/c4e77915/attachment.html


More information about the HelpDesk mailing list