GTNewHorizons / GT-New-Horizons-Modpack

New Modpack with Gregtech, Thaumcraft and Witchery
https://www.gtnewhorizons.com/
Other
969 stars 298 forks source link

Render issue with blocks at a distance #16454

Closed Florinlego closed 4 months ago

Florinlego commented 4 months ago

Your GTNH Discord Username

Florinlego

Your Pack Version

2.6.1

Your Server

SP

Java Version

Java 8

Type of Server

Single Player

Your Expectation

I updated the pack from version 2.5.1 to 2.6.1 and ported my 2.5.1 world to this current version.

The Reality

Upon entering the world, I encountered the bug, regarding the rendering of blocks at a distance of 2-3 chunks. Dots appear on the edges of blocks. I tried to modify the graphics settings, but none of them seem to affect this bug. I attached pictures of said bug, and pictures of my settings. Pictures of bugged render: 2024-06-01_20 50 25 2024-06-03_10 57 53 (^Click on this one to see the white dots on the grass) 2024-06-01_20 30 30 Pictures of my graphics settings: image image image image

Your Proposal

I have no idea what may cause the problem, I played with the settings to no avail. If needed, I can provide additional info (specs, drivers etc)

Final Checklist

Florinlego commented 4 months ago

Update: initially, I used the CurseForge version of GT:NH, so I moved to MultiMC (according to the tutorial provided by the devs). I also tried to run the game with both java 8 and java 17 (I had some problems for java 21, as the game would refuse to start, I could not find the reason online). In both cases, running the game on MultiMC, with a different Java version (and their respective 2.6.1 zip file for the modpack), the bug would still occur and blocks would not be rendered correctly.

Glease commented 4 months ago

Try disable compact vertex format in advanced tab

Florinlego commented 4 months ago

Disabled it in both Java 17 and Java 8 version, does not resolve the problem. Also tried disabling most options in the advanced tab, but still does not fix the problem. I can't say for sure, but I think it is a problem with rendering the faces furthest away from the camera (but don't take this for granted, I have no idea what could cause this, as I can't find anyone else that has this problem).

Caedis commented 4 months ago

Does the issue occur in a new world?

Florinlego commented 4 months ago

Yes, it also persists between worlds. In both Java 8 and Java 17, I created a test world which also has this render bug.

Caedis commented 4 months ago

Can you try with this version (latest nightly)? https://github.com/GTNewHorizons/DreamAssemblerXXL/actions/runs/9360422660/artifacts/1565081977

Florinlego commented 4 months ago

Will do. I'll keep you posted after I try. Cheers!

Caedis commented 4 months ago

Dont copy anything over, try it from scratch

Florinlego commented 4 months ago

Still does not fix the issue (check attached). Tried it with and without Compact Vertex Format. I have tried it on a new world, without porting anything from the other instances.

I also want to add that the Java 8 version I have is the official one (from www.java.com) and the Java 17 version I have is downloaded from the link provided in the GT:NH website. I am pretty sure that I installed them correctly, as checking the virtual machine in MultiMC works, for both of them. However, I also want to add that in order to run GT:NH for Java 17, I have to add the following to the Java args: --illegal-access=warn -Djava.security.manager=allow -Dfile.encoding=UTF-8 --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/jdk.internal.reflect=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED,java.naming --add-opens java.desktop/sun.awt.image=ALL-UNNAMED --add-modules jdk.dynalink --add-opens jdk.dynalink/jdk.dynalink.beans=ALL-UNNAMED --add-modules java.sql.rowset --add-opens java.sql.rowset/javax.sql.rowset.serial=ALL-UNNAMED -Dfile.encoding=UTF-8 -Djava.system.class.loader=com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader -Djava

I found this way of fixing the boot-up crash by searching for the initial error messasge I got: java.lang.IllegalStateException: System classloader not overwritten, add -Djava.system.class.loader=com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader to your JVM flags

The same behavior occurs, even with the version you provided: 2024-06-04_14 31 49

Florinlego commented 4 months ago

Update: The problem does not have anything to do with the game, but with settings in the NVIDIA Control Panel. If they are left on the default settings, the game should work. I will close the ticket. Sorry for the bother and thanks!