Page 1 of 1

How to make larger items (wieldview)?

PostPosted: Fri Jun 10, 2016 19:30
by GreenDimond
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?

Re: How to make larger items (wieldview)?

PostPosted: Sat Jun 11, 2016 02:28
by BrandonReese
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.

Re: How to make larger items (wieldview)?

PostPosted: Sat Jun 11, 2016 08:54
by TenPlus1
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

Re: How to make larger items (wieldview)?

PostPosted: Sat Jun 11, 2016 12:31
by GreenDimond
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.

Re: How to make larger items (wieldview)?

PostPosted: Sat Jun 11, 2016 12:51
by ExeterDad
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.