PorkStudios / FarPlaneTwo

Level-of-Detail renderer in Minecraft. Allows for render distances of millions of blocks. (Cubic Chunks-compatible) (WIP)
https://daporkchop.net/
Other
1.45k stars 49 forks source link

Requires OpenGL 4.5 or Above #46

Open WulkanAPI opened 3 years ago

WulkanAPI commented 3 years ago

I run on a pretty low-end system and my graphics card doesn't support anything above OpenGL 4.4. Under your list of goals you've stated that you're aiming to run the game on your integrated graphics, your CPU has a HD 3000 which only supports OpenGL up to version 3.1 which is under the required 4.5

So I'm hoping that you fix it or implement the feature, no pressure. Take your time.

DaMatrix commented 3 years ago

my i5-2520M can run up to gl 3.3 with Mesa drivers :P

i plan on adding multiple backwards-compatibility modes for older gl versions, which will come at the cost of performance and/or features (note that i haven't actually worked on this yet, so there might be more things i've forgotten about that would also have to change):

i have no plans to support anything older than 3.3.

StoneLabs commented 3 years ago

Considering minecraft itself now requires opengl 4.4+ why bother supporting anything below that? For older versions?

DaMatrix commented 3 years ago

i plan on supporting everything from the latest version down to 1.7.10 (and, if the stars align right, as far back as 1.4.7)

NameIsMissing commented 3 years ago

Considering minecraft itself now requires opengl 4.4+ why bother supporting anything below that? For older versions?

Minecraft says it requires OpenGL 4.4+ but I can still play the game just fine with my laptop on 1.17. The processor inside it has integrated graphics that only support up to OpenGL 4.3 (Intel HD 4600) So I believe Minecraft still allows previous OpenGL versions to run.

Ember-ruby commented 3 years ago

i plan on supporting everything from the latest version down to 1.7.10 (and, if the stars align right, as far back as 1.4.7)

FarPlaneTwo with this mod would be absolute insanity

mrcorpz commented 3 years ago

i plan on supporting everything from the latest version down to 1.7.10 (and, if the stars align right, as far back as 1.4.7)

Why go that old? Older mc version is already pretty easy to run.

DaMatrix commented 3 years ago

because tekkit classic is on 1.4.7, and even older MC versions won't magically let you use a 1 million block render distance just like that

Wachecheiro commented 3 years ago

pleaser add 2.0

WulkanAPI commented 3 years ago

I assume that you're running Minecraft on macOS. I think that going down to 2.0 would be a little too much, the creator also stated that he wouldn't go any further than 3.3.

Sorry bud.

DaMatrix commented 3 years ago

pleaser add 2.0

no. what part of "i have no plans to support anything older than 3.3." was unclear?

BlueZeeKing commented 3 years ago

What about support for Metal?

cocona20xx commented 3 years ago

Considering Metal is experimentally supported in vanilla post 1.17, even when running under Fabulous Graphics (the only part that needs 4.4+ afaik?), it should be doable? but it'll need a OpenGL <-> Metal Translation Layer which aren't always the most complete. Furthermore ARM64 Macs throw a wrench into things possibly

DaMatrix commented 3 years ago

while the mod may work on macs, i have not and do not plan on going out of my way to support them. if apple decides to throw all standards to the wind and force developers to write special rendering code for macs, then that's their choice and i feel in no way obliged to support it. that said, has mojang actually explicitly added support for metal on recent versions? i haven't looked at the code, and hadn't heard anything as to them supporting anything other than opengl.

imnotacoderlmao commented 3 years ago

my intel hd 4000 only supports up to opengl 4.0

9182736450typist commented 2 years ago

FYI, MacOS Minecraft WILL support OpenGL 4.1 on 1.17+ I assume Mojang fixed this in 21w10a (added vanilla waving plants)

GibrielS commented 2 years ago

Macs by default use 2.1, but if a higher version is requested it will do the minimum required version.

Huoi commented 2 years ago
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 4400 (HSW GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.3.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 21.3.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 21.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

As you can see my OpenGL core profile version string is 4.5, however f2p still says it requires OpenGL 4.5. Anything I can do?

Barteks2x commented 2 years ago
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 4400 (HSW GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.3.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 21.3.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 21.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

As you can see my OpenGL core profile version string is 4.5, however f2p still says it requires OpenGL 4.5. Anything I can do?

It may work on windows.

Linux i965/i915 drivers for Intel GPUs don't support compatibility profiles at all, so you can't use opengl 2.x or older together with newer opengl features.

There are newer Intel drivers on Linux that do support it but you have a Haswell (4th gen) CPU and the new drivers only support 5th gen and newer.

I have also personally confirmed that on that generation Zink (opengl implementation on top of Vulkan) allows full support for compatibility profile all the way up to opengl 4.6 but you would probably have to compile latest version from git yourself and it may have some graphical issues in main menu.

DaMatrix commented 2 years ago

As you can see my OpenGL core profile version string is 4.5,

Minecraft 1.12.2 uses the compatibility profile, not the core profile. Your OpenGL version in the compatibility profile is 3.0.

9182736450typist commented 2 years ago

However, on 1.17+, it uses core profile. Is there any mod that causes MacOS 1.16 or older to use core profile?

9182736450typist commented 2 years ago

sorry. Minecraft 1.16 or older ON MacOS

StereoMadnessss commented 2 years ago

I can't use it because my mac has outdated drivers and can only support up to 4.1

9182736450typist commented 2 years ago

Minecraft will actually run OpenGL 3.2 in 1.18 since that is the MINIMUM required version. If mojang updates to 4.0 or 4.1, many players on MacOS will be in luck since they will be able to run many shaderpacks running OpenGL 4.0/4.1 such as Nostalgia, Kappa and (with low render distance) shaders such as Continuum.

9182736450typist commented 2 years ago

So far, I can run Redhat and Chocapic v6 (requiring 3.2) on a mac.

StereoMadnessss commented 2 years ago

I can run Sildurs, Chocapic and a few others but I can't run Seus, DrDestens, MakeUp and most other shaders

9182736450typist commented 2 years ago

DrDestens actually works for me but many features like water are broken.

StereoMadnessss commented 2 years ago

Since I tried it with iris it completely failed to load

AceSardonyx commented 2 years ago

Just pushing to get this added. You really need to add this compatibility. Add it to the lowest vversion you will support because many people use devices that just can't support 4.5 and above. And better yet, some devices are forced to use a compatibility profile lower than their OpenGL core version which some operating systems do not let you change. Now if you have a workaround for this, I would for sure love to hear it because this is a great mod! Way better in the aspect that it supports 1.12.2 unlike a certain other mod, cough cough distant horizons Any who, that makes this a great mod since modding at it's finest comes in 1.12.2. So please consider this compatibility feature and I hope it gets added soon!

XboxBedrock commented 2 years ago

Before pushing how about reading what the dev said about it :D

AceSardonyx commented 2 years ago

Before pushing how about reading what the dev said about it :D

The issue is marked as open and I am showing it's importance to be finished soon in my comment. But no rush. If it takes forever, then so be it. Not sure what you are referring me to read on?

dudethis commented 7 months ago

Maybe a fork of farplane 2 would be the best way to add compatibility for older openGL versions? Just an idea, but what if the original version had all of the features, and the lite version could have all of the basic features and maximum compatibility