Comments (4)
seems to be a bug since at least 1.20.1 (#7880)
from applied-energistics-2.
Position changes (x, y, z) affect the overlay rendering, changes in rotation/angles of the camera (yaw and pitch) do not. My guess is that somehow the rotation must be part of the poseStack. All lines in x/y direction are thus always parallel to the screen edges.
from applied-energistics-2.
In src/main/java/appeng/client/render/overlay/OverlayManager.java I've added a line that might fix the problem.
diff --git a/src/main/java/appeng/client/render/overlay/OverlayManager.java b/src/main/java/appeng/client/render/overlay/OverlayManager.java
index c0d718d8f..4a346459e 100644
--- a/src/main/java/appeng/client/render/overlay/OverlayManager.java
+++ b/src/main/java/appeng/client/render/overlay/OverlayManager.java
@@ -60,6 +60,7 @@ public void renderWorldLastEvent(RenderLevelStageEvent event) {
poseStack.pushPose();
Vec3 projectedView = minecraft.gameRenderer.getMainCamera().getPosition();
+ poseStack.mulPose(minecraft.gameRenderer.getMainCamera().rotation().invert());
poseStack.translate(-projectedView.x, -projectedView.y, -projectedView.z);
for (OverlayRenderer handler : overlayHandlers.entrySet().stream()
I'm still not entirely convinced because to me in my super flat test world it seems kinda odd because of the way the overlay goes beyond the floor all the way down to bedrock which is only a few block down in a super flat world.
from applied-energistics-2.
It gets weirder every time. I have one normal test world where clipping the overlay works and another where it doesn't. The one where it works started out as not working as well and I have no idea what fixed it. And just as I was typing this message it broke again while doing nothing at all.
The code change I posted earlier seems to work for me, I'll make a PR out of this. The clipping issue is due to the fact that BLOCK_HIGHLIGHT_FACE and BLOCK_HIGHLIGHT_LINE have setDepthTestState(NO_DEPTH_TEST) rather than setDepthTestState(RenderStateShard.LEQUAL_DEPTH_TEST). I'm not sure if that is intentional or not, thus I'll make a separate commit out of this in the same PR.
from applied-energistics-2.
Related Issues (20)
- Crash while dragging fluid from EMI to Interface HOT 5
- Fuzzy filter not working HOT 7
- Crash when I press G HOT 5
- Crash when filling grid in ME Crafting Terminal on 1.21 HOT 3
- Сrash when I enter the ME terminal. (Rendering screen) Helpp!! HOT 1
- Player inventory in Export Bus is Misaligned HOT 3
- Inscriber and processors lack their recipes
- Crash When Breaking An Enchanted Annihilation Plane HOT 2
- Wrenches Do Not Exist in The Creative Menu HOT 4
- Not enough items when autocrafting problem
- Fill recipe does not add ingredients filtered with view cells in crafting terminal
- Toggle view cells in crafting terminal
- Breaking Hud Rendering for mods. HOT 6
- i need Fabric on Minecraft 1.20.4 HOT 5
- [Bug]: Waypoints in Journeymap don't render correctly, Journeymap dev said it was AE2 (Neoforge) HOT 2
- Molecular Assembler crashes when requesting a Stonecutting Pattern recipe HOT 2
- Typing in AE2 search bar causes crash HOT 7
- Pattern Encoding Terminal duplication glitch. HOT 2
- Remove `canBeAlerted` from `TickingRequest`, make all nodes alertable. HOT 1
- Chest -> MEChest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applied-energistics-2.