[FIXED] Scaling issues with models added to static buffers fixed


Fixed an issue where models added to static buffers would be offset when scaled. That is now fixed. You can read more about my idiocy below. lol.

Read more about it here

THE ISSUE:

Okay, so I found an issue with scaling my vertices to buffers in my fauxton engine and I can't seem to wrap my head around what exactly is going on and how to fix it. Here is some visualizations of what is going on:

GML:

var xx = x; var yy = y;


All of them are at their respective x/y positions, but once I scale up they become exponentially off-centered ( at least I think ).
I (kind of) found a fix for #2 (2x2 scale) like so:

GML:

var xx = x - sprite_width/power(image_xscale, image_xscale); var yy = y - sprite_height/power(image_yscale, image_yscale);


The fix:


Files

Fauxton 3D ( v_2.2.2).zip 9.2 MB
Jun 06, 2021

Get Fauxton 3D

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.