why are nodemodels upscaled by 1,5 , if used for entity?

User avatar
Drachenbauer32
Member
 
Posts: 100
Joined: Wed Aug 28, 2019 18:11

why are nodemodels upscaled by 1,5 , if used for entity?

by Drachenbauer32 » Sat Oct 05, 2019 15:02

Hello

If i use a node-model for an entity:
Code: Select all
textures = { "hotairballoons:hotair_node_" .. name },
visual = "wielditem",

It scales the model up by 1,5 x original size.

Why this?
I think, if it keeps it´s original size, it´s easyer for the modders to work with this option (easyer to calculate own sizes and matching collisionboxes).

And why is the name of this visual-option "wielditem"?
I think, it looks mor logic, if it´s called "node_model" or something like that.
 

User avatar
paramat
Developer
 
Posts: 3455
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: why are nodemodels upscaled by 1,5 , if used for entity?

by paramat » Sun Oct 06, 2019 22:32

I'm guessing it is just an old hardcoded value used because wielditems look the right size that way, and the upscaling doesn't get disabled when an object uses the "wielditem" code.
Problem is, if we change this it will break many mods which are coded to compensate for the upscaling.
It's called "wielditem" because the object is using the code that creates the wielditem.
There is now another very similar visual called "item" https://github.com/minetest/minetest/blob/825579b43d6454cc33607ab8eff4e896b003b801/doc/lua_api.txt#L5985
 

User avatar
Drachenbauer32
Member
 
Posts: 100
Joined: Wed Aug 28, 2019 18:11
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 4 guests

cron