Giter Site home page Giter Site logo

Comments (14)

wahn avatar wahn commented on August 27, 2024 1

Let me try something on my side and I will report back ...

# maybe this will help?
apt-get upgrade mesa-common-dev

from tetra.

17cupsofcoffee avatar 17cupsofcoffee commented on August 27, 2024 1

Ah, the joys of OpenGL...

Anyway, the shader changes don't add any extra complexity/lose us any functionality, so I've merged them into master :)

from tetra.

wahn avatar wahn commented on August 27, 2024

They do work on another machine (CentOS) though:

> cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core) 
> cargo run --example texture
   Compiling tetra v0.1.2 (/mill3d/users/jan/git/github/tetra)                                                                              
    Finished dev [unoptimized + debuginfo] target(s) in 4.58s                                                                               
     Running `target/debug/examples/texture`
OpenGL Device: Quadro 4000/PCIe/SSE2
OpenGL Driver: 4.6.0 NVIDIA 390.59
OpenGL Vendor: NVIDIA Corporation
Swap Interval: VSync

from tetra.

17cupsofcoffee avatar 17cupsofcoffee commented on August 27, 2024

Thank you for the report! I'll look into it further this evening - my work laptop has Intel integrated graphics too, so hopefully I'll be able to reproduce the issue on there. Failing that, might need to spin up a Debian VM or something...

from tetra.

17cupsofcoffee avatar 17cupsofcoffee commented on August 27, 2024

I wasn't able to replicate on my laptop, but I think I understand why - from the looks of your log output, it looks like your drivers might be using OpenGL 3.0? I've been targeting 3.2, so perhaps I've used an incompatible feature somewhere... I'll try to force it into 3.0 mode on my machine and see if it breaks :)

from tetra.

17cupsofcoffee avatar 17cupsofcoffee commented on August 27, 2024

Dang, no luck - I set the context version to 3.0 on my laptop, and it still seems to work fine for me. Perhaps it's something to do with the Mesa drivers?

from tetra.

wahn avatar wahn commented on August 27, 2024

I upgraded a couple of things (Mesa + Intel Graphics related) but it didn't fix the problem:

OpenGL Device: Mesa DRI Intel(R) Iris 6100 (Broadwell GT3)
OpenGL Driver: 3.0 Mesa 18.2.5
OpenGL Vendor: Intel Open Source Technology Center
Swap Interval: VSync

from tetra.

wahn avatar wahn commented on August 27, 2024

Anyway, don't worry, I can work on the CentOS box. Close if you want ...

from tetra.

17cupsofcoffee avatar 17cupsofcoffee commented on August 27, 2024

Strange! Thanks for the report, anyway - I'll close it for now, but hopefully I'll get chance to play around on Debian at some point and see if I can replicate.

Hope you have better luck on your CentOS box!

from tetra.

17cupsofcoffee avatar 17cupsofcoffee commented on August 27, 2024

I'm re-opening this, as @VictorKoenders seems to be having a similar issue on Ubuntu.

from tetra.

VictorKoenders avatar VictorKoenders commented on August 27, 2024
Ubuntu 18.10
libsdl2-dev: 2.0.8+dfsg1-4ubuntu1
OpenGL Device: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
OpenGL Driver: 3.0 Mesa 18.2.2
OpenGL Vendor: Intel Open Source Technology Center
Swap Interval: VSync

Also doesn't seem to work with sdl2's bundled feature. I fear it's an openGL issue.

from tetra.

17cupsofcoffee avatar 17cupsofcoffee commented on August 27, 2024

@VictorKoenders My suspicion is that the issue might be due to me using #version 330 stuff in my GLSL - could you try running the examples on the simplified-glsl branch that I've just pushed?

from tetra.

VictorKoenders avatar VictorKoenders commented on August 27, 2024

That seemed to fix it for me!
screenshot from 2018-12-14 18-09-57

from tetra.

VictorKoenders avatar VictorKoenders commented on August 27, 2024

A friend found this resource: https://stackoverflow.com/a/21567167

What they do not tell you, but indirectly imply ("Some drivers don't support all the features required in 
OpenGL 3.3."), is that in the last official release of Mesa (10.0), GL 3.3 only works on Intel hardware. This
 is one of the joys of Intel's close involvement with the Mesa project. If you want reliable GL 3.3 support
 in any form on AMD hardware, you should use fglrx (the proprietary AMD driver) for the time being.

from tetra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.