Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG] Particle Size in Percentage Mode loses Aspect ratio

Author
Message
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 13th Mar 2017 11:55
The particle size uses an incorrect aspect ratio for the image if you use the percentage system.

This has been like this for a while, and it's as I started on a new particle system that I remembered about it.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Mar 2017 12:09
the last version (before v2017.02.28) did not have this problem.
can you provide an example?
is your original image a square?
AGK (Steam) V2017.02.28 : Windows 10 Pro 64 Bit : AMD (17.2.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 13th Mar 2017 12:31
Narrowed it down to the rotation.

If you add the following line, your image will become a rectangle.

SetParticlesRotationRange ( p, 0,360 )

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Mar 2017 14:58
Quote: "SetParticlesRotationRange ( p, 0,360 )
"

not at 2017.01.09, but i will test at home.
AGK (Steam) V2017.02.28 : Windows 10 Pro 64 Bit : AMD (17.2.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th Mar 2017 19:04
no problem here
AGK (Steam) V2017.02.28 : Windows 10 Pro 64 Bit : AMD (17.2.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 15th Mar 2017 10:48
I missed a bit, try this..

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 15th Mar 2017 11:03 Edited at: 15th Mar 2017 11:04
doku said
Quote: "Use an aspect ratio of -1 to use the device aspect ratio (fills the whole screen without black borders, but will cause stretching and look different on every device)"

i think SetVirtualResolution is a must have.

this is square
AGK (Steam) V2017.02.28 : Windows 10 Pro 64 Bit : AMD (17.2.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 15th Mar 2017 12:26
There is still a difference in the aspect ratio of the particle if you use any Rotation setting, which is weird.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Mar 2017 17:51
Thanks, fixed for the next version. Although I highly recommend using a virtual resolution to avoid the complicated math behind the percentage based system.
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 17th Mar 2017 12:29
Thanks for the fix. I've built so much of my core stuff around the percentage system, there's no going back.

Login to post a reply

Server time is: 2024-11-24 18:39:05
Your offset time is: 2024-11-24 18:39:05