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 / 436
435  |  437
Subject: 
Re: Changing scale of an object
Newsgroups: 
lugnet.cad.ray
Date: 
Mon, 17 Jul 2000 02:33:03 GMT
Viewed: 
834 times
  
In lugnet.cad.ray, Jason Ellis writes:
Is it possible in POV-Ray to change the scale of an object, i.e. to shrink it?

Here's what I want to do.  I have a micro-fig scale space cruiser and I want
to have flying next to it a minifig scale fighters.  Since in real-life these
two models are approx. the same size, I need a way in POV-Ray to shrink the
fighter to bring it into scale with the cruiser.

Thanks

Jason
http://www.jealous37.com/lego

In lugnet.cad.ray, Jason Ellis writes:
Is it possible in POV-Ray to change the scale of an object, i.e. to shrink it?

Here's what I want to do.  I have a micro-fig scale space cruiser and I want
to have flying next to it a minifig scale fighters.  Since in real-life these
two models are approx. the same size, I need a way in POV-Ray to shrink the
fighter to bring it into scale with the cruiser.

Thanks

Jason
http://www.jealous37.com/lego

Yep. Easy.

In the POV file find your models 'object' line. In an unmodified L3P generated
file, it will be near the bottom of the file, directly above the line that
says   //background:

It will look something like this:
object { my_model_name #if (version >= 3.1) material #else texture #end {
Color7 } }

Modify it to look like this:
object { my_model_name #if (version >= 3.1) material #else texture #end {
Color7 }
scale .5
}

Notice that the scale command fits right between the last two curly brackets.
The value of .5 would make it one-half original size.

Additionaly, if you want to rotate or move the object you can add these two
commands.
object { my_model_name #if (version >= 3.1) material #else texture #end {
Color7 }
scale .05
rotate < 0.0, 0.0, 0.0>
translate < 0.0, 0.0, 0.0>
}

Note that scale should always be first, followed by rotate, then translate.
The < 0.0, 0.0, 0.0> is the X,Y,Z spatial coordinate system
All zeros just leaves it at its default 'origin' position.


-- Terry K --



Message has 1 Reply:
  Re: Changing scale of an object
 
Thanks. I figured it was something like that. Jason (...) it? (...) it? (...) (24 years ago, 17-Jul-00, to lugnet.cad.ray)

Message is in Reply To:
  Changing scale of an object
 
Is it possible in POV-Ray to change the scale of an object, i.e. to shrink it? Here's what I want to do. I have a micro-fig scale space cruiser and I want to have flying next to it a minifig scale fighters. Since in real-life these two models are (...) (24 years ago, 16-Jul-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