SPRITES Help (Community)

SPRITES Help // Community

1  |  

.sharon

Aug 1, 2004, 11:16pm
A while back someone had posted a formula for sprite making made easy . It
was an accurate way to make sprite RWX using jpg size in the formula. Can
someone please post that again.

Thanks,
Sharon

eep

Aug 2, 2004, 2:56am
It's really not that hard: take the image's width and divide it by its height, then apply that ratio to a "sprite" (axis-aligned polygon)'s dimensions.

So, if an image is 160x120, the ratio is 160 / 120 = 1.3333333 (1 1/3). The sprite can be whatever size you want, say 1m wide, then the height is 1 x 1.3333333 = 1.3333333m.

[View Quote]

.sharon

Aug 2, 2004, 12:08pm
Thanks Eep but that's not exactly what I'm looking for.. I think it was
something Andras may have written .. it was the framework of a sprite RWX
set up so that we could input any values (height and width of jpg) and it
came out perfectly right every time.

eep

Aug 2, 2004, 2:16pm
Well, you can always try telegramming/emailing Andras. But, really, the ratio method IS the perfect way to do it--and it's quite basic math, too...

[View Quote]

mauz

Aug 2, 2004, 4:10pm
[View Quote] Perhaps 3danim.exe at http://www.andras.net/tools.html ?
So if you have texture test1.jpg and mask test1m.bmp, you go to
Command Prompt, give command 3danim 100 100 test1 > test.rwx
and it makes an rwx file that has like three sprites crossing at the center.

--
Mauz
http://mauz.info

.sharon

Aug 3, 2004, 1:43am
Thank You Mauz that was another good suggestion. I think you had posted this
back when I had asked for help some months ago. I didn't want to have to
use a Scale line in the RWX at the time.

I had to reformat my hd and lost this specific RWX file for the sprites that
was set up where you input values for H and W or something to that effect.

Thanks to Eep too, I know you're math is correct.

I wish the person who put what I'm looking for in previously would read
this.

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn