#2D sprite in the GUI and 3D model in the hand

57 messages · Page 1 of 1 (latest)

lavish valley
#

I'm making a mace model and I wanted it to be 2D in the GUI and also on the item frame, how do I do this?

spring trenchBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

twin wagon
lavish valley
#

the trident did it, and also I've seen some texture packs doing it

#

but thanks for the link

#

I'll try it!

twin wagon
lavish valley
#

oh, makes sense

twin wagon
#

(Possible using the CorePerspectiveModels shader by ShockMicro, which was updated by asdru22)
which is exactly what I linked

lavish valley
#

right, I figured

#

thanks

#

err, how do I change an 'alpha value' of the textures?

twin wagon
#

rightlcick the texture, click "Enable Layers", then adjust the oppacity to whatever 253/255 is (or 254/255 or whichever value you need)

#

correction, you can just type in 253/255*100 in there if you don't wanna use a calculator

lavish valley
#

tysm

lavish valley
#

its not working

#

when I put the shaders and changed the opacity, it said resources failed to load

#

I changed the opacity by typing "253/255 * 100" in mace 2d texture layer and "254/255 * 100" in mace 3d textures

twin wagon
#

Not sure if anything shader related changed in 1.21 for example (but that would explain it if you use that version)

lavish valley
#

1.21

#

other packs did it on 1.21 so

twin wagon
#

hmm, maybe there is a more up-to-date version of that shader pack 🤔?

lavish valley
#

ohh there is

#

i think

#

yep

#

found it

#

and it works!

twin wagon
#

ahh, good to know
thought asdru made a push request to the main respository for that, but maybe ShockMicro is no longer working on it in general 🤷‍♂️ (or didn't have time to look over it yet)

lavish valley
#

yeah

#

there are 2 problems though

#

I want it to work on an item frame

#

and

#

it's dark on the GUI for some reason

twin wagon
spring trenchBOT
# twin wagon !faq item-dark-in-gui
FAQ
Java: Item Dark In Gui

To fix this in 1.15 or later:

  1. Go to the Display tab in the top right.
  2. Go to the gui display settings and there should now be a drop down menu at the top saying Side Light.
  3. Change it to Front Light.
    PS: If the dropdown menu isn't there, click on ⠇and click Reset, then it should be there.
lavish valley
#

alr

#

for the item frame I think I made a mistake, give me a sec

lavish valley
#

it's not working anymore? huh? all I did was change it to front light, and resize the item frame

#

now it's showing up like this

twin wagon
#

did the texture oppacity reset to 100 again somehow 🤔 ?

lavish valley
#

no, it looks translucent

#

I can barely see through it

#

maybe something with the shaders?

twin wagon
# lavish valley I can barely see through it

maybe it's too translucent now 🤔 ?
that or the pack was updated to 1.20.X but not 1.21 yet, and it just hasn't crashed yet, but stuff might have changed that broke the intended behaviour?

Though you said you have seen packs that do work in 1.21, correct?

lavish valley
#

yea

lavish valley
#

heya I'm back at this thread, finally fixed it, is there any way to make it appear 2d when dropped and on an item frame?

#

like the trident

twin wagon
#

I don't think so
I think there was a different shader that had more oppacity values for different displays, but I can't remember the name right now and it might not be updated

lavish valley
#

awe, rip

twin wagon
#

https://cdn.discordapp.com/attachments/157097006500806656/996446571178754189/PerspectiveModelsWithDynamicEmissives_119.zip?ex=667aea2f&is=667998af&hm=3ca3e0d0d45a91cf68f0dbf284043f7a53590f395815675e227a9c7361974290&

This resource pack modifies whether the item will be emssive and where it will be rendered.

(You can make 3d model that is gun with hands. but in thirdperson screen, there's no hands model. Also in GUI, the gun can be 2D item.)

The transparency of the texture can be adjusted to set as below:
255 : Default
254 : GUI O | FirstPerson O | ThirdPerson O | Emissive O
253 : GUI O | FirstPerson O | ThirdPerson X | Emissive X
252 : GUI O | FirstPerson O | ThirdPerson X | Emissive O
251 : GUI O | FirstPerson X | ThirdPerson O | Emissive X
250 : GUI O | FirstPerson X | ThirdPerson O | Emissive O
249 : GUI X | FirstPerson O | ThirdPerson O | Emissive X
248 : GUI X | FirstPerson O | ThirdPerson O | Emissive O
247 : GUI X | FirstPerson O | ThirdPerson X | Emissive X
246 : GUI X | FirstPerson O | ThirdPerson X | Emissive O
245 : GUI X | FirstPerson X | ThirdPerson O | Emissive X
244 : GUI X | FirstPerson X | ThirdPerson O | Emissive O
243 : GUI O | FirstPerson X | ThirdPerson X | Emissive - (only GUI don't need emissive setting)
242 : Emissive for placed block, particle, entity, entity model item, etc

Basic util.glsl code form Shock Micro.

It works on 1.18.2 1.19 1.19.1

(copied from the MinecraftCommands Discord)

#

but yeah, I don't think there is a more up-to date version of that

#

and I guess it only affects ThirdPerson additionally, not all displays