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 / 321
320  |  322
Subject: 
Re: Moving an object in a scene
Newsgroups: 
lugnet.cad.ray
Date: 
Sun, 30 Apr 2000 20:33:05 GMT
Viewed: 
496 times
  
"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 has 2 Replies:
  Re: Moving an object in a scene
 
Thanks, I'll give that a try. Jason (...) (24 years ago, 30-Apr-00, to lugnet.cad.ray)
  Re: Moving an object in a scene
 
I got around to trying your tips Brams and they worked like a charm. The result can be seen here (URL) again (...) (24 years ago, 1-May-00, to lugnet.cad.ray)

Message is in Reply To:
  Moving an object in a scene
 
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. Also what do I need to do to add a 2nd model (...) (24 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

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