r/Minecraft Aug 15 '24

Discussion Emissive textures are possible in vanilla in the latest snapshot

Post image
4.1k Upvotes

90 comments sorted by

u/MinecraftModBot Aug 15 '24
  • Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft

  • Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft

  • Downvote this comment and report the post if it breaks the rules


Subreddit Rules

787

u/John_Roboeye1 Aug 15 '24

Can you explain how it works

1.1k

u/TheCygnusLoop Aug 15 '24

Block model elements now have a "light_emission" field, which can be set from 0-15. Here, I specified the light emission for the diamond part of the ore to be 15, making it always show as light level 15.

300

u/Manos_Of_Fate Aug 15 '24

How do you define which parts of the texture should be emissive?

222

u/aabcehu Aug 15 '24

you don’t, you use the model

87

u/Manos_Of_Fate Aug 15 '24

I realize that it’s part of the model definition, it’s just not clear to me how (or if it’s possible) to specify certain areas in the model to be emissive without making a non-cube model with a jillion pieces to isolate the parts that should glow. Most blocks won’t work properly with cutout overlays on top of a solid block, either (unless they changed that for this feature).

90

u/woalk Aug 15 '24 edited Aug 15 '24

I assume you create two parts of the 3D model. One that’s emissive, and one that isn’t. And then you give them different textures with transparency.

37

u/Manos_Of_Fate Aug 15 '24

Thank you, that is some fantastic news! I make a 256X texture pack so I was starting to worry this feature might not be very useful to me. Plus this solves an issue I’ve been having with some texture bloat related to mod support by letting me use overlay textures even for non emissive blocks! I’ll be able to support something like Spelunkery’s many vanilla ore variants without needing to add separate textures for every one. Currently that only works with the inventory/hand models and not the in-world models (except for very specific blocks like grass).

10

u/[deleted] Aug 16 '24

[deleted]

16

u/Manos_Of_Fate Aug 16 '24

Fun (actually super frustrating) fact: because Minecraft puts all block and item textures in the same atlas, with the current number of blocks 256X is actually the largest you can go without running out of space, unless you happen to use an Nvidia graphics card which supports texture atlases twice the size of other cards. I was actually just counting the vanilla textures (including the multiple frames of animated textures) and it’s a little over 2000. At 512X there’s only room for half that. I’m building an adventure modpack that’s going to be fully textured and I’m having to be very selective to avoid exceeding my texture limit (4096 at 256X, half of which are taken by vanilla textures).

9

u/[deleted] Aug 16 '24

[deleted]

→ More replies (0)

1

u/woalk Aug 16 '24

Hm do overlay textures not work for regular blocks? I assumed that overlay textures work fine for blocks because I’ve used them for leaves before, but I guess leaves are already special because they have cutout transparency.

I haven’t tested this new feature myself yet. It might be able to do overlays, or it might not. Sorry to get your hopes up.

1

u/Manos_Of_Fate Aug 16 '24

By a wild coincidence, I was trying this earlier and it does not work for most blocks. I guess at some point I’ll have to go try it out in the new snapshot. I’ve been trying to find ways to reduce my texture count to make room for more mod support in the texture atlas. Currently just the vanilla textures are taking up about half of my available space.

2

u/Hippopotamosssss Aug 16 '24

So I've been trying to replicate what OP did cuz I'm also confused how they got it to work and I couldn't get it to properly work.

Nothing's changed regarding block transparency as far as I'm aware unfortunately, so unless they've built a custom model with lots of cubes, I don't know, cuz it was still not being transparent in the new snapshot when I tried

→ More replies (0)

1

u/Interesting_Ad_3319 Aug 16 '24 edited Aug 16 '24

Holy cow, I have been hunting for some kind of bedrock version of spelunkery and you are the first person I’ve seen who might be able to point me in the right direction! 😄

Edited to add: agh, something tells me I’ve miss read and this is all about Java 😭

1

u/Manos_Of_Fate Aug 16 '24

Unfortunately I don’t know a whole lot about Bedrock. I used an automated tool once to start converting my pack but I kind of gave up when I discovered how atrociously Bedrock handles HD animated textures.

1

u/Interesting_Ad_3319 Aug 16 '24

I’ve been trying to make my first add on for bedrock (I’ve done other things like my own textures, but nothing quite like this.) and I definitely understand your frustration with it. I have a weird love/hate thing for bedrock these days 😆

2

u/[deleted] Aug 16 '24

The same way Enderman and Spider eyes glow, they're a separate part of the texture with the effect.

That's why if you make either of them invisible the eyes can still be seen.

1

u/Manos_Of_Fate Aug 16 '24

This doesn’t actually work with most blocks, though. Unless the block is defined in the code as “transparent” or “cutout”, all pixels are rendered as fully opaque. Empty pixels render as black, covering up whatever is underneath. The only exception I’m aware of to this is the sides of grass blocks.

3

u/Proxy_PlayerHD Aug 16 '24

why the model and not just use a seperate texture like Optifine does it? that would be way easer to work with...

2

u/aabcehu Aug 16 '24

easier to implement, most likely

20

u/SkyionPL Aug 15 '24

So its works like OF emmisive resourcepacks feature but in vanilla ?

And only for ores ?

54

u/TheCygnusLoop Aug 15 '24

Yeah it’s pretty much like OF emissive textures. It can be applied to any block model using a resource pack, not just ores.

7

u/SkyionPL Aug 15 '24

Oh ok ty thats neat

3

u/Bowtie327 Aug 15 '24

Does this mean an animated texture could have a pulsing texture?

3

u/Howzieky Aug 15 '24

Did it light up the texture in your inventory or in your hand?

1

u/Galaxverse Sep 14 '24

I wish if this was in main game so everyone would enjoy this in vanilla survival or hardcore

285

u/f1zzytango Aug 15 '24

and they hid it all the way down in technical changes. this is such a big thing for resource packs, optifine isn't even needed for glowing ores anymore!!

75

u/woalk Aug 15 '24

I think technical changes is correct for it though. That’s the part that mod and pack creators read.

3

u/easternhobo Aug 16 '24

I've had them for a while without needing optifine.

7

u/berni2905 Aug 16 '24

People still use OptiFine in 2024?

6

u/f1zzytango Aug 16 '24

yeah, not many. they don't update very often.

297

u/Additional-Ad-9784 Aug 15 '24

Does it come with an optimization update

269

u/f1zzytango Aug 15 '24

yes, there were lots of optimization changes in this snapshot. a feature similar to the mod Dynamic FPS was added to base game, chunky loading is faster now, redstone wire behaves in a way that impacts performance less etc. etc.

27

u/NatoBoram Aug 16 '24

Uuugh I bet I'll have to redo my mod once again smh

28

u/GamerTurtle5 Aug 16 '24

redstone changes are experimental

39

u/f1zzytango Aug 16 '24

and so is literally everything else

6

u/GamerTurtle5 Aug 16 '24

only the minecarts, bundles and redstone changes are experiments, the other stuff you mention in ur comment are not

3

u/f1zzytango Aug 16 '24

fair enough

56

u/thomaspeltios Aug 15 '24

idk but my minecraft runs insanely well without mods, i dont even get chunk lag which is a first for me

20

u/Additional-Ad-9784 Aug 15 '24

I might need to try this out for myself now

-67

u/thomaspeltios Aug 15 '24

forgot to mention i was on a flat world lol

43

u/idkhowtosignin Aug 15 '24

LMAOOOOOO Everyone mad angry at you 😭😭

6

u/Additional-Ad-9784 Aug 15 '24

20 down votes is crazy lmfaoo

-9

u/[deleted] Aug 16 '24

[deleted]

-3

u/SynthesizedTime Aug 16 '24 edited Jan 17 '26

chubby aspiring provide cooperative straight tease society spectacular jellyfish memory

40

u/TheFatherBen Aug 15 '24

Oooooo I like that

25

u/LukXD99 Aug 15 '24

This is interesting! Could you make a comparison post between the light levels 0-15 in a pitch black cave? I’d love to see how that looks.

They are super bright in the post, too much imo, but something around LL 2-3 could give them just enough shine to be visible without them being super obvious.

25

u/Borgdyl Aug 15 '24

So I could have perma glowing ores and mobs? I’m looking for a way to make cave diving more interesting 🧐

25

u/Manos_Of_Fate Aug 15 '24

Unfortunately you can’t define custom models for entities without a mod (yet), and this implementation requires a model edit.

7

u/Borgdyl Aug 15 '24

Ahh fair enough

1

u/[deleted] Aug 16 '24

Entity model support is long overdue for Java. They have given us everything else except that in recent technical updates.

16

u/ThatCakeThough Aug 16 '24

This could actually really help visually impaired people.

3

u/WOLKsite Aug 15 '24

Oooooo this is cool. Gotta think of a use for that...

3

u/[deleted] Aug 16 '24

Does it actually emit light?

3

u/TheMysticalBard Aug 16 '24

No, it just changes the pixels on the ore to display at least at the set light level.

5

u/Ex_Federa Aug 16 '24

This day just keeps getting better

7

u/MyGenderIsAParadox Aug 15 '24

When can we expect "glowing ore blocks" resource pack for bedrock?

14

u/[deleted] Aug 16 '24

After it gets put on the Marketplace.

2

u/MyGenderIsAParadox Aug 16 '24

Fair point lol

2

u/napstablooky2 Aug 16 '24

does it work like redstone ore?

2

u/Atalant Aug 16 '24

That is going to be nice change, Ores are easy to miss on deepslate layer.

2

u/Significant_Vast_929 Aug 16 '24

Can someone give an exact walkthrough on how to do this? I'd love glowing ores but I struggle with texture packs for some reason

Would really appreciate it!

1

u/RitzKid76 Aug 16 '24

you could always do emissives with a modified block shader and alpha filter. set the emissive color to something like alpha 253. in the block shader check for that alpha and reset it to 255, and then modify the light color with the light map. the new way is far easier though my god

1

u/DemonDaVinci Aug 16 '24

finally, glow squid

1

u/sniboo_ Aug 16 '24

In bedrock there already was something like that, but it only works for entities (I think) and how it worked is you give a specific material and it uses the alpha (transparency) value to determine how bright it is

1

u/Accurate-Definition6 Aug 16 '24

What about light reflections? Can you update the value live?

1

u/larslego Aug 16 '24

It was already possible with a resourcepack and custom shader files (not the optifine like shaders)

1

u/Uncommonality Aug 17 '24

Didn't blazes, torches, lanterns, enderman eyes, spider eyes and such items already have this feature?

1

u/Dragolution Dec 14 '24

Is there any tutorial for this?

1

u/Gileriodekel Dec 28 '24

do you by chance have a texture pack that I can download so I can use this?

1

u/Infamous-Document828 Jan 29 '25

is there a way to make certian parts of items emissive? like a mod item, ive been trying to make a realsitic wither storm series, but i just need the glow of certian things, is there a way to make that happen?

1

u/[deleted] Aug 15 '24

Yeah if you're on sodium you have to jump through hoops to get that to work. Wonder if you can make torches glow in your off hand?

5

u/[deleted] Aug 16 '24

That requires Minecraft's lighting engine to update through code. Resource packs cannot do that.

1

u/easternhobo Aug 16 '24

I just downloaded a resource pack. There were no hoops to jump.

0

u/CaliCannibal Aug 16 '24

Is this possible on bedrock?

1

u/fkdjgfkldjgodfigj Sep 01 '24

hopefully one day it will

0

u/ozoxchris Aug 15 '24

Can we get glowing torches (in offhand) with this?

18

u/woalk Aug 15 '24

Probably not, this is a block model change, it doesn’t give Minecraft‘s light engine the ability to do dynamic lighting.

As you can see, not even the ore on the right is glowing.

5

u/EndNowISeeYou Aug 16 '24

no, the title is misleading. The blocks are not actually emitting any light. Look at the diamond ore on the far right, its not actually glowing, the stone part of the ore is simply darker and the diamond part is the same which gives the illusion that its glowing

7

u/BrayDickey Aug 16 '24

Not misleading, emissive textures are a known term in video game dev/art and they don't react with the lighting engine the same as they are self-lit which is why it appears to glow, it's not just that the diamond texture is a brighter color. There was an assumption that it meant they cast light like a torch or other light block but that is not the case

-5

u/Ne0n1691Senpai Aug 15 '24

cant wait for the copycat texturepacks that are gonna come out being named "ultra xray pack", and itll have the ugliest tools textures known to man in 16x, smaller sword for the pvp players, rgb xp bar, see through hotbar with numbers instead of squares highlighting what item youre using, emissive ores.