How to make larger items (wieldview)?

User avatar
GreenDimond
Member
 
Posts: 460
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

How to make larger items (wieldview)?

by GreenDimond » Fri Jun 10, 2016 19:30

So I would like to make a mod with more tools/items, but there is a sword I want to make that is REALLY big. I would like it to appear big with any wieldview mod, but when I try, the texture size wont matter and it is the same size as a default sword (the wielded item). How do I make it look like this?
Image
I don't really care about the 3D aspect of the sword in the image, I am fine with the way wieldview makes the swords, but I want it to be as LONG as the sword in the image. So how do I make the sword(s) look that long? Can it also look that long from the players view too? (I am hoping this is not only supported in Minecraft.)
Help appreciated!
~GreenDimond
[EDIT]: Maybe this has something to do with the item placement?
I am Green. I tend to binge-post. "All of this over a 16x16 representation of a cartoon cat ?!?! what has this world come to..." -TenPlus1, 2017.
Diz mah mods! :D ↑ github.com/minetest/minetest_game/issues/1647#issuecomment-288134572 ↑
Sand Plus - Tac Nayn - Waffles - Coming Soon: Caverealms Plus
 

User avatar
BrandonReese
Member
 
Posts: 836
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese

Re: How to make larger items (wieldview)?

by BrandonReese » Sat Jun 11, 2016 02:28

The model doesn't support something that size. You would have to update the character model. It basically has a clear "placeholder" (for lack of a better term) for the wield item, you need to make that placeholder larger so it can use a larger texture, but that might break all of the other wield item textures.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: How to make larger items (wieldview)?

by TenPlus1 » Sat Jun 11, 2016 08:54

Have a look at Stu's Wield3D mod, it attaches an entity to the player while they walk to show what is in hand... https://github.com/stujones11/wield3d
 

User avatar
GreenDimond
Member
 
Posts: 460
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: How to make larger items (wieldview)?

by GreenDimond » Sat Jun 11, 2016 12:31

BrandonReese wrote:The model doesn't support something that size. You would have to update the character model. It basically has a clear "placeholder" (for lack of a better term) for the wield item, you need to make that placeholder larger so it can use a larger texture, but that might break all of the other wield item textures.

Trying this....

TenPlus1 wrote:Have a look at Stu's Wield3D mod, it attaches an entity to the player while they walk to show what is in hand... https://github.com/stujones11/wield3d

I am currently using the 3D Armor mod which includes the wieldview, but it wont let me make the item shown bigger.
I am Green. I tend to binge-post. "All of this over a 16x16 representation of a cartoon cat ?!?! what has this world come to..." -TenPlus1, 2017.
Diz mah mods! :D ↑ github.com/minetest/minetest_game/issues/1647#issuecomment-288134572 ↑
Sand Plus - Tac Nayn - Waffles - Coming Soon: Caverealms Plus
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: How to make larger items (wieldview)?

by ExeterDad » Sat Jun 11, 2016 12:51

Wieldview in 3DArmor is actually a custom player model that replaces the default model. The model is holding a box, much the same looking as a pizza box. This box has no texture so it's invisible when no item is held. When the player is holding something, a texture of the wielditem is shown in that box. The same method is used for the shield and armor layers.
I'm not sure how to do it, but I suppose the "pizza box" could be "stretched" by somehow moving the vertices allowing for a alternate longer looking texture, without messing up the aspect ratio of the texture.
I think a more simple hack would be to override the player model yet again. This time switching it out with a model with a longer "pizza box".
Keep in mind. The pizza box example I described is very vague. It's not a box at all. It's a flat plane, duplicated many, many times and placed VERY close together. This allows for the extruded affect of the 2d texture image. Especially when viewed from a angle. The texture is basically stacked many times to give it the thickness.
I'm mentioning this because stretching the pizza box is much more then grabbing four vertices and moving them, it's more like a hundred or more.

Edit: Since neither the wield item and shield parts of the model contain "bones", I'm thinking there isn't any way (at least within the engine) to use lua to change the shape of them.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron