Open JackDotJS opened 6 years ago
The overlay textures use the same translucency mode as the main texture. Non-translucent main texture -> non-translucent overlay. Translucent main texture -> translucent overlay.
Is there a way for you to give translucency only to the overlay? If it's possible, I'd like to suggest adding that in the next/future update.
If the main texture is used as a base for the emissive overlay then translucency would not be needed. For example: start with the base texture, remove all non-emissive pixels, save as emissive.
The problem is that if there is no translucency in emissive textures, you can't make smooth transitions to the normal texture, thus you have a hard border because of the big difference between the textures' light levels, which looks terrible
Should the overlay layer be configurable per texture or general for all overlays?
I think, it is easier to add translucency in general, because artist can make non-transculent textures themselves. There's no need for the game to do that.
Translucent block overlays are slower and they need special handling in order to render in the correct order. This could be added to "emissive.properties"
force.translucent=<true|false>
Would force.translucent
enable translucency in every block overlay? If it's really that slow, maybe there should be another option to specify block IDs to enable translucency on.
Progress report on this?
You could use Custom Blocks to make redstone ore render as translucent. The overlay would then automatically be rendered as translucent. https://github.com/sp614x/optifine/blob/master/OptiFineDoc/doc/block.properties#L12
You could use Custom Blocks to make redstone ore render as translucent. The overlay would then automatically be rendered as translucent. https://github.com/sp614x/optifine/blob/master/OptiFineDoc/doc/block.properties#L12
Still very confused on this. My block.properties contains the line "layer.translucent=redstone_ore" and though the emissive texture uses alpha, it doesn't work. The overlay always renders at full opacity. I've also tried "layer.translucent=redstone_ore_e" (the emissive layer) but still no luck.
Have you checked the game output if it complains about the block properties?
The only messages I see about the block.properties files are:
[09:49:51] [Client thread/INFO] [Config]: [OptiFine] CustomBlockLayers: Loading optifine/block.properties [09:49:51] [Client thread/INFO] [Config]: [OptiFine] CustomBlockLayers: optifine/block.properties
Here's the emissive texture (a square of with an alpha of 75): Here's what I see in-game no matter what alpha the block set to:
I just started to play around with this new feature. Basically what I'm trying to achieve is partially emissive textures. This is working perfectly fine for items, but not for blocks. However, the overlay still works as it should on the dropped block item.