|
Flatland Forums
![]() Scripting
![]() Scaling: How do i do it
|
| next newest topic | next oldest topic |
| Author | Topic: Scaling: How do i do it |
|
dan goober Member |
How do i scale blocks? really need help i've got a hummer so small you can step over it. could use scaling. Hint Oh, if you want the vehicles blockset its in: http://rhteam.home.att.net/3dml/vehicles.3dml you all's |
|
xuriel Member |
Here is an example. I hope the comments provide a good explanation of what is going on. code: [This message has been edited by xuriel (edited 06-16-2002).] |
|
ReginaG Member |
thanks, xuriel. i've been wanting to know that, too. how much can you scale a block? i see the number is 4.0 (i think), and the spots only 3 levels. do those two paramenters need to corrolate in any way? |
|
xuriel Member |
The size of the map and the scale of your block only matter in how you plan on interacting with the block. The way the script works now, the block vertices are scaled by the factor you supply in <scale_x>, <scale_y>, and <scale_z>. That's block vertices, and not the 256-cube space that (most) blocks occupy. So a full block scaled by 2 would be 512 x 512 x 512, but half block scaled by 2 would be 512 x 512 x 256. That means to stand atop the scaled full cube, you'd have to build your spot at least 2 levels (512 pixels) high, while to stand atop the scaled half block, you'd have to build the spot only 1 (256 pixels) high. The 3 level spot and cube x 4 I used in the spot are incidental; I pulled the code out an existing spot. [This message has been edited by xuriel (edited 05-02-2002).] |
|
ReginaG Member |
kewl, that's making perfect sense. with this kind of elementary info it makes it more possible for us to use other's scripts. thanks... now about this two blocks occupying the same space: when does that apply? does it have to be scripted in? or does it mean when a block is part of a scripted action you can still build on the block spaces it covers (as in scaling), or it moves across (as in uni's elevator). cause i see with uni's elevator the moving block will go right thru another as if it's not there. |
|
ReginaG Member |
xuriel, just wanted to let you know i've tried this scaling script and it's amazing! i answered my own q, partially, about 2 blocks on one space, by seeing that if a block is scaled beside say a floor block oriented on it's edge, it does move into the space the floor block would normally occupy if it wasn't oriented. which opens a world of wonderful possibilites in using the floor blocks as walls. thanks, again! i'm just wondering, since i'm essentially cutting and pasting this code, if there's anything i need to look out for in placing blocks like this? it just seems sooo unnatural. |
|
xuriel Member |
Some blocks may need adjustments after scaling, depending on how your using them. For example, if you want a block to be flush with the ground on level 1 of your spot, you'll may need to set the block location like this: code: |
|
ReginaG Member |
thanks, xuriel. i'll keep that in mind. |
|
dan goober Member |
wow xuriel! thanks a lot, man. i get it! kewl! btw, what about using scaling to make a block shrink or yours |
All times are PT (US) | next newest topic | next oldest topic |
![]() |
|
(c) copyright 1998-9 Flatland Online, Inc.
Powered by: Ultimate Bulletin Board, Version 5.42
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.