Autobackgrounds sized too big

Unmonitored G-Force bug reporting

Moderators: andy55, b.dwall

Post Reply
rapanuy
Posts: 79
Joined: Mon Jan 23, 2006 3:22 pm

Autobackgrounds sized too big

Post by rapanuy »

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

User avatar
andy55
Site Admin
Posts: 569
Joined: Sat May 01, 2004 4:38 pm
Contact:

Re: Autobackgrounds sized too big

Post by andy55 »

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
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).

Andy

Guest

Post by Guest »

Hi Andy.
Thx. You want me to change something here?
/* Flags:
...
kParticleFlags_DontCrop = 1 << 3, // 8

...

Mike

Guest

Post by Guest »

This is because the default sprite behavior is to fill the G-Force frame.
What is the g-force frame?
Shouldn´t that frame be 1024x768 as itshows when i go through keyboard shortcut "M"?

Mike

rapanuy
Posts: 79
Joined: Mon Jan 23, 2006 3:22 pm

Post by rapanuy »

Andy,
I still don´t know what I have to do with the flags.

/* Flags:
...
kParticleFlags_DontCrop = 1 << 3, // 8


Mike

rapanuy
Posts: 79
Joined: Mon Jan 23, 2006 3:22 pm

Post by rapanuy »

Andy,

for the stupid one among your fans (me :-) you should put a section within your toolbar, where users can set a maximum background image size.

Because I still didn´t figure out how to work on prefs & kParticleFlags & whatever would there be necessary.
I guess I´m not into programing ;-)

Mike

rapanuy
Posts: 79
Joined: Mon Jan 23, 2006 3:22 pm

Post by rapanuy »

Hi Andy.
I at least found it.
I´m now running g-force on a 19", resolution 1280x1024.

Are the settings from above still the same there?
My images are either 1280x1024, or 1024x768 (and a couple even smaller).

Thx,
Mike

rapanuy
Posts: 79
Joined: Mon Jan 23, 2006 3:22 pm

Post by rapanuy »

I´m still searching

I have background, for example 701X1024, or 800x1024.

They are streched to 1280x1024

How can I avoid this?

Mike

User avatar
andy55
Site Admin
Posts: 569
Joined: Sat May 01, 2004 4:38 pm
Contact:

Post by andy55 »

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
It sounds like you want kParticleFlags_ShrinkToFit, kParticleFlags_EnlargeToFit, kParticleFlags_MaintainAspect, and kParticleFlags_DontCrop, which means you should have 1+2+4+8:

Flag=15

How does that look?

Andy

rapanuy
Posts: 79
Joined: Mon Jan 23, 2006 3:22 pm

Post by rapanuy »

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)

Post Reply