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 / 322
321  |  323
Subject: 
Re: Moving an object in a scene
Newsgroups: 
lugnet.cad.ray
Date: 
Sun, 30 Apr 2000 23:41:37 GMT
Viewed: 
588 times
  
Thanks, I'll give that a try.

Jason

In lugnet.cad.ray, Bram Lambrecht writes:
"Jason Ellis" <jae@interwrx.com.nospam> writes:
In POV-Ray how does one go about changing the position of a model in
the scene.  I've figured out how to move the camera around, but can't
figure out how to move an object.  Any help would be appreciated.

Apparently, you already discovered that the
object { my_model_dot_dat ... }
line is the line that places the object.  You can add all sorts of
scaling, rotation, and translation to this line by adding "scale"
"rotate" and "translate" modifiers.  For example,
object { my_model_dot_dat ... translate <100,-24,50> }
would move the model 100 LDU in +X, 24 LDU up, and 50 LDU in +Z.
You can also translate in only one direction (eg, 100 +X) like this:
translate <100,0,0>
or like this:
translate x*100
scale and rotate work the same way (although I'm not sure in which order
the rotations are carried out, so I generally use the x*, y*, and z*
notation for rotations.
HTH,
--Bram


Bram Lambrecht           / o   o \           BramL@juno.com
-------------------oooo-----(_)-----oooo-------------------
   WWW:   http://www.chuh.org/Students/Bram-Lambrecht/
-----------------------------------------------------------



Message is in Reply To:
  Re: Moving an object in a scene
 
(...) Apparently, you already discovered that the object { my_model_dot_dat ... } line is the line that places the object. You can add all sorts of scaling, rotation, and translation to this line by adding "scale" "rotate" and "translate" modifiers. (...) (25 years ago, 30-Apr-00, to lugnet.cad.ray)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR