texture lump help

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
mathey bu
Posts: 46
Joined: Tue Aug 25, 2009 21:49

texture lump help

Post 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:
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: texture lump help

Post 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
}
mathey bu
Posts: 46
Joined: Tue Aug 25, 2009 21:49

Re: texture lump help

Post 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
}
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: texture lump help

Post 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.
mathey bu
Posts: 46
Joined: Tue Aug 25, 2009 21:49

Re: texture lump help

Post by mathey bu »

so 0.5 is the double size?

no i want the halfsize
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: texture lump help

Post 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
mathey bu
Posts: 46
Joined: Tue Aug 25, 2009 21:49

Re: texture lump help

Post by mathey bu »

hey it's working now, thanks enjay, now my soulcube is ready to party :)
Locked

Return to “GZDoom”