Page 1 of 1

Rotate inventory image

PostPosted: Tue Oct 21, 2014 14:45
by Don
I would like to see the ability to rotate an inventory cube image. Instead of the cube showing top,front,right, allow modders to choose the sides. This will allow better veiws of different nobeboxes such as those in noncubic or cnc machine. Also with Rubenwardy's awesome NodeBox Editor there are many new nodeboxes now.
Example
x = 1 (right side)
x = -1 (left side)
y = 1 (top)
y = -1 (bottom)
z = 1 (front)
z = -1 (back)
Something like this,
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
inventory_image = {x = 1, y = 1, z = 1}

Re: Rotate inventory image

PostPosted: Tue Oct 21, 2014 17:21
by Krock
Mostly, the nodeboxes are designed, so they will be displayed correctly in the inventory.
I don't see a big use in that new feature.

Re: Rotate inventory image

PostPosted: Tue Oct 21, 2014 18:07
by Don
Krock wrote:Mostly, the nodeboxes are designed, so they will be displayed correctly in the inventory.
I don't see a big use in that new feature.

If you look at things like upper corners, they don't look all that great. If it showed the front,right and bottom you would be able to see the shape better.
Also, if you make a nodebox the wrong way you can easily change the inventory cube without having to re do the nodebox. As an example, I made a few nodeboxes and I made them with the back and right side as the faces that you don't see. I understand that this is slopy of me but it happens. The inventory cube looks bad. now I have to change the nodeboxes so they look right.
This is not something that I think is a big deal, just something I think would improve modding a bit.

If you look at noncubic or the cnc machine you will see what I mean.

Re: Rotate inventory image

PostPosted: Tue Oct 21, 2014 21:28
by rubenwardy
Isn't there a function that allows you to do this like Minetest.inventory_cube?

Re: Rotate inventory image

PostPosted: Tue Oct 21, 2014 22:29
by Don
rubenwardy wrote:Isn't there a function that allows you to do this like Minetest.inventory_cube?

inventory_cube is used to add images to the cube. It would work for regular cubes but not for nodeboxes. You can also use inventory_image to change the image.

I think it would be useful but not a priority. I was just putting the idea out there. Besides, even if it was decided to add it, I still have to fix my nodeboxes. Made them when I was still half asleep.

Re: Rotate inventory image

PostPosted: Tue Nov 04, 2014 18:59
by Hybrid Dog
You could spawn a cubic entity behind your inventory slot where you have the item.

Re: Rotate inventory image

PostPosted: Tue Nov 04, 2014 21:47
by Don
Not sure what you mean?

Re: Rotate inventory image

PostPosted: Wed Nov 05, 2014 18:07
by Hybrid Dog
Don wrote:Not sure what you mean?
Image

Re: Rotate inventory image

PostPosted: Wed Nov 05, 2014 18:47
by Don
What I am referring to I how the cube is displayed in the inventory no spawning behind. It would help to show the cube better in the inventory.
An inventory image will be good enough