Alienhead Posted April 7 Posted April 7 When switching sprite view mode to billboard, the sprite no longer retains scale. Quote Alienhead Components and Software
Josh Posted April 7 Posted April 7 The reason this is so, is I was not 100% sure how this should be handled. Entity scale is a 3D factor and sprite size is a 2D factor. The shader does not have access to the sprite's local orientation, just its global 4x4 matrix. It could extract the global scale on the X and Y axes and use that to resize the sprite, but if it is parented to another entity, it is possible that the parent entity's scale could skew that in strange ways. Perhaps instead of using scale, there should be a sprite:SetSize() command that modifies the sprite mesh? Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Alienhead Posted April 8 Author Posted April 8 yes SetSize would cure the illness. 1 Quote Alienhead Components and Software
Josh Posted April 8 Posted April 8 Okay, downloads system is pretty much done and I will be back to bug fixing starting tomorrow. Thank you for your patience. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Solution Josh Posted April 8 Solution Posted April 8 Sprites have been revised and an adjustable size is now available, in code and in the entity properties in the editor. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.