Big entities popping in

Place to get help with not working mods / modding interface.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Big entities popping in

Post by ownlyme »

It's now the third time i'm struggling to create an entity that is so big that it causes glitches when the player moves out of the sight range.
I wish there was a parameter for rendering distance or drawing box (not this useless (?) thing: https://wiki.factorio.com/Prototype/Entity#drawing_box)
My wind turbines i had to split in 3 parts... Top, bottom and shadow... and the graphics are still plopping in.
Right now i'm working on a new version of the mushroom cloud but i have to split the animation of the explosion in at least 16 parts to even have a chance...

edit: not even that would work, as it would cause weird render layer bugs when 2 explosions run at the same time.. but maybe i could fix it with luarendering <.<
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Big entities popping in

Post by posila »

Bilka
Factorio Staff
Factorio Staff
Posts: 3415
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Big entities popping in

Post by Bilka »

Please provide reproduction steps etc etc if this is meant to be in bug reports.

If this is meant to be in modding help: The rendering depends on the collision box. Make the collision box the approximate size of your main sprite and it should work without any problems unless your shadow is like 10 tiles long. There is a lot of leeway for how close the collision box and sprite have to be, see entity_renderer_search_box_limits in utility constants.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: Big entities popping in

Post by ownlyme »

ok then its just a little bit ridiculous that we waste our collision box for that..^^
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Post Reply

Return to “Modding help”