Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Feature Request: "Offset" parameter in meta.ini? Non-globals also?

A topic by BrainSlugs83 created Aug 20, 2020 Views: 97
Viewing posts 1 to 1

When I import asset collections, sometimes they come in 10x too big, and I use a meta.ini "scale=0.1" to fix that.

I noticed it also has a "rotation=x,y,z" parameter; but there's no offset parameter.

When I scale some assets (including stuff from the Kenny Assets packs) via meta.ini, it corrects the size, but it can cause the object to be placed off center (maybe that's a bug, but maybe it's not), but it would be easy to fix if I could specify an offset -- so like if everything comes in and it's .5, 0, .5 off center, and I could just set offset=-.5,0,-.5 that would be awesome. -- Even on it's own without anything else (below) that I'm asking for, that would solve a huge headache for me.

Additionally, though -- as a second part of this feature request -- I noticed that meta.ini only seems to be using the "Main" section. -- And sometimes some objects you might want to specify a slightly different rotation or offset for, compared to the rest of the objects in the collection. -- So maybe, could you make it so that in meta.ini we could have other sections too? -- maybe just named the exact file name of the obj file? -- so like if 99% of the objs in the folder work with some specific settings, but one or two of them need some other offset or rotation, then you could have something like this:

[Main]
# these settings are applied to every object
scale=0.1
rotation=0,0,0
offset=-.5,0,-.5

[doghouse.obj]
# these settings are specific to doghouse.obj 
offset=0,0,0
rotation=0,90,0

[cannonball.obj]
# this setting is specific to cannonball.obj
offset=0,0,0

Thanks for your consideration.