Autobackgrounds sized too big
Autobackgrounds sized too big
Hi together.
I use G-force 3.1.3, running on XP SP2, in a 15" secondary monitor with a resolution of 1024x768 (primary monitor is a 17" with 1240x1024).
My backgrounds are maximum 1024x768 or smaller.
Why , when the backgrounds appear, are heads cut off, feet gone, and my skys somewhere in my bookshelf.
This means: all backgrounds are sized bigger than my original resolution.
Any idea?
Thx,
Mike
I use G-force 3.1.3, running on XP SP2, in a 15" secondary monitor with a resolution of 1024x768 (primary monitor is a 17" with 1240x1024).
My backgrounds are maximum 1024x768 or smaller.
Why , when the backgrounds appear, are heads cut off, feet gone, and my skys somewhere in my bookshelf.
This means: all backgrounds are sized bigger than my original resolution.
Any idea?
Thx,
Mike
Re: Autobackgrounds sized too big
This is because the default sprite behavior is to fill the G-Force frame. If you specify the kParticleFlags_DontCrop flag, you won't have this problem. Open the file G-Force/Sprites/(Default).txt and edit Flag=7 to Flag="1 + 2 + 4 + 8" and sprites will no longer be cropped (note how the 8 is the don't drop flag).rapanuy wrote:Hi together.
I use G-force 3.1.3, running on XP SP2, in a 15" secondary monitor with a resolution of 1024x768 (primary monitor is a 17" with 1240x1024).
My backgrounds are maximum 1024x768 or smaller.
Why , when the backgrounds appear, are heads cut off, feet gone, and my skys somewhere in my bookshelf.
This means: all backgrounds are sized bigger than my original resolution.
Any idea?
Thx,
Mike
Andy
It sounds like you want kParticleFlags_ShrinkToFit, kParticleFlags_EnlargeToFit, kParticleFlags_MaintainAspect, and kParticleFlags_DontCrop, which means you should have 1+2+4+8:rapanuy wrote:I´m still searching
I have background, for example 701X1024, or 800x1024.
They are streched to 1280x1024
How can I avoid this?
Mike
Flag=15
How does that look?
Andy
Oki. Over again.
My monitor is a 17", 1280x1024.
My backgrounds are not bigger than max. 1280x1024
My default.txt looks like this:
/* Flags:
kParticleFlags_ShrinkToFit = 1 << 0, // 1
kParticleFlags_EnlargeToFit = 1 << 1, // 2
kParticleFlags_MaintainAspect = 1 << 2, // 4
kParticleFlags_DontCrop = 1 << 3, // 8
kParticleFlags_Invert = 1 << 4, // 16
kParticleFlags_ThesholdCopy = 1 << 10, // 1024
kParticleFlags_AdditveBlend = 1 << 11, // 2048
kParticleFlags_SelectiveBlend = 1 << 12, // 4096
kParticleFlags_AlphaMask = 1 << 13, // 8192
kParticleFlags_AlphaBlend = 1 << 14, // 16384
Here's a brief decription of flags...
When a particle starts as a result of the automatic slideshow (or triggered manually), 'Flag' is an integer containing a number of bit flags. Bit flags can be added together, in effect, allowing multiple flags to be specified via a single integer value. For example, if you wanted the flags kParticleFlags_MaintainAspect and kParticleFlags_Invert, you'd put Flags=20. If a sprite is started via a StartSprite(), call, the flags specified override the flags specified in 'Flag' (ie, 'Flag' is ignored). */
Flag=15
As you can see I changed Flags=7 to Flags=15.
My backgrounds (not all) are still overstretched.
Could it be that just some special sizes are overstretched?
*grmpf*
Mike
Edit: ok, I found out that for example a background 565x857 or 709x1000 is overstreched.
I guess G-Force tries to fit them to whereever (widen them to 1024, and therefore also stretches them into a height I don´t want)
My monitor is a 17", 1280x1024.
My backgrounds are not bigger than max. 1280x1024
My default.txt looks like this:
/* Flags:
kParticleFlags_ShrinkToFit = 1 << 0, // 1
kParticleFlags_EnlargeToFit = 1 << 1, // 2
kParticleFlags_MaintainAspect = 1 << 2, // 4
kParticleFlags_DontCrop = 1 << 3, // 8
kParticleFlags_Invert = 1 << 4, // 16
kParticleFlags_ThesholdCopy = 1 << 10, // 1024
kParticleFlags_AdditveBlend = 1 << 11, // 2048
kParticleFlags_SelectiveBlend = 1 << 12, // 4096
kParticleFlags_AlphaMask = 1 << 13, // 8192
kParticleFlags_AlphaBlend = 1 << 14, // 16384
Here's a brief decription of flags...
When a particle starts as a result of the automatic slideshow (or triggered manually), 'Flag' is an integer containing a number of bit flags. Bit flags can be added together, in effect, allowing multiple flags to be specified via a single integer value. For example, if you wanted the flags kParticleFlags_MaintainAspect and kParticleFlags_Invert, you'd put Flags=20. If a sprite is started via a StartSprite(), call, the flags specified override the flags specified in 'Flag' (ie, 'Flag' is ignored). */
Flag=15
As you can see I changed Flags=7 to Flags=15.
My backgrounds (not all) are still overstretched.
Could it be that just some special sizes are overstretched?
*grmpf*
Mike
Edit: ok, I found out that for example a background 565x857 or 709x1000 is overstreched.
I guess G-Force tries to fit them to whereever (widen them to 1024, and therefore also stretches them into a height I don´t want)