Subject:
|
Re: Changing scale of an object
|
Newsgroups:
|
lugnet.cad.ray
|
Date:
|
Mon, 17 Jul 2000 04:12:40 GMT
|
Viewed:
|
1155 times
|
| |
| |
Thanks. I figured it was something like that.
Jason
In lugnet.cad.ray, Terry Keller writes:
> 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 is in Reply To:
| | Re: Changing scale of an object
|
| (...) 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 (...) (24 years ago, 17-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
|
|
|
|