Immersive Engineering

Immersive Engineering

134M Downloads

[1.16.5] IE transparent looking blocks (charging station, garden cloche) does not let particle to see through

sarim opened this issue ยท 3 comments

commented

Description of the issue:

Charging Station, Garden Cloche calls spawnRedstoneFX to add particle to the world. Those particles should be able to be seen though transparent IE blocks. Particles can be seen via vanilla glass, so I'm guessing IE somewhere is culling those particles. Here are two screenshots.

2021-03-07_00 55 32
2021-03-07_00 55 55

When viewing from front, charging station has three green redstone particle. When player moves to the back in the 2nd screenshot, those particles should be seen through the glass of charging station, but it isn't.

How it affects garden cloche is more disruptive. Those particles are visual indicators of if garden cloche is working via electricity or not. Those particles supposed to render inside the red light in top section. But because of this culling issue, particles doesn't render at all. Making both "on" and "off" garden cloche look same as off. Here in the screenshot I edited partY = getPos().getY() + 4;, So particle render 4 blocks above the cloche in air, and as seen in screenshot that way I verified that particle is indeed trying to render, but getting culled in glass section.

Crashlog:

This is a visual bug, so no crash.

Versions & Modlist

I created a fresh instance and added only forge and IE.
Minecraft: 1.16.5
Forge: 36.0.46
Immersive Engineering: 1.16.5-4.2.2-132 (I cloned and compiled latest commit 0282c50 1.16.5 branch)

commented

This is most likely caused by the cloche and charger glass being half transparent, they are rendered differently to fully transparent stuff like normal glass. You can easily test this by placing a stained glass block between you and the particle source.

commented

stained glass block

Yes, stained glass block also blocks particles. I guess mojang changed things between 1.12 and 1.16 then. I guess IE needs to use some other way achieve the same visual effect. At least for garden cloche. I guess I'll try messing around with cloche's render function.

commented

There is nothing IE can do here.
The only thing you can try is enabling Fabolous mode, but for that you will need to disable a feature in the IE config.