Page 1 of 1

texture lump help

Posted: Thu Mar 25, 2010 23:56
by mathey bu
hey guys last week i was working in my own soulcube but!

i dont know to resize the image at hiresTex

so i was going to try the TEXTURE LUMP see below:
Spoiler:

Re: texture lump help

Posted: Fri Mar 26, 2010 0:17
by Enjay
Without knowing what size you want it to be, it's hard to tell, but something like this might help

Code: Select all

Sprite SLCBA0, 256, 256
{
   XScale 2.0
   YScale 2.0
   Patch SLCBA0, 0, 0
}
etc etc

The values in the first line should be the original dimensions and the scale values are how much they are scaled. Annoyingly, this works the opposite way around to DECORATE. 2.0 means that the image will be reduced to half its size.

Seeing as how this is a sprite, you may also need to use offsets.

eg

Code: Select all

Sprite SLCBA0, 256, 256
{
   XScale 2.0
   YScale 2.0
   Patch SLCBA0, 0, 0
   Offset whatever, whatever
}

Re: texture lump help

Posted: Sat Mar 27, 2010 0:03
by mathey bu
hey it is not working i put this:

Code: Select all

Sprite SLCBA0, 1024, 768
{
   XScale 0.5
   YScale 0.5
   Patch SLCBA0, 0, 0
   Offset 139, 509
}

Re: texture lump help

Posted: Sat Mar 27, 2010 0:05
by Enjay
mathey bu wrote:

Code: Select all

   XScale 0.5
   YScale 0.5
You do realise that will make your graphic 2048 x 1536 in game, right? Remember I said that scaling factors work the opposite way around to DECORATE.

Without more info or an example, it's hard to tell if you are doing anything else wrong though.

Re: texture lump help

Posted: Sat Mar 27, 2010 0:08
by mathey bu
so 0.5 is the double size?

no i want the halfsize

Re: texture lump help

Posted: Sat Mar 27, 2010 0:16
by Enjay
mathey bu wrote:so 0.5 is the double size?
Yes
mathey bu wrote:no i want the halfsize
Use 2.0 instead of 0.5

Re: texture lump help

Posted: Sat Mar 27, 2010 0:19
by mathey bu
hey it's working now, thanks enjay, now my soulcube is ready to party :)