Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL & GLSL 3.3 on an HD Graphics 4000 under Ubuntu 12.04

I'm running that configuration :

  • Ubuntu 12.04
  • Intel HD Graphics 4000

glxinfo give me that parameters:

OpenGL renderer string: Mesa X11
OpenGL version string: 2.1 Mesa 8.0.4
OpenGL shading language version string: 1.20
OpenGL extensions:

My goal was to run OpenGL 3.3 (and so GLSL 3.3). If I'm easy with development issues, I'm lost in hardware and drivers, so does someone knows a way to achieve that with my configuration?

like image 851
T3e Avatar asked Jan 02 '13 14:01

T3e


People also ask

What is OpenGL used for?

OpenGL (Open Graphics Library) is a standard specification defining a cross-language cross-platform API for writing applications that produce 3D computer graphics (and 2D computer graphics as well).

Is OpenGL good for NVIDIA?

Originally developed by Silicon Graphics in the early '90s, OpenGL® has become the most widely-used open graphics standard in the world. NVIDIA supports OpenGL and a complete set of OpenGL extensions, designed to give you maximum performance on our GPUs.

What is OpenGL in GPU?

What is OpenGL? OpenGL is a widely used software library for drawing 3D graphics and is used by KISSsoft and KISSsys to draw 3D visualizations. This OpenGL library is usually provided by your graphics card driver and makes use of your computer's graphics card.

Is Vulkan better than OpenGL?

Vulkan is intended to offer higher performance and more efficient CPU and GPU usage compared to older OpenGL and Direct3D 11 APIs. It provides a considerably lower-level API for the application than the older APIs, making Vulkan comparable to Apple's Metal API and Microsoft's Direct3D 12.


1 Answers

Great News!!!

Mesa 10 is out which means support for Opengl 3.3 and GLSL 3.3!

This is tested on my 4th Generation Core i5 Mobile Processor with an HD 4400 Graphics chipset.

Modern OpenGL development is now possible on integrated intel chipsets in linux! this is a huge step forward. Note that ubuntu 15.04 ship with Mesa 10.5

Here's me rendering a triangle using a GLSL 3.3 Shader :)

glsl 3.3 shader

Ok so in order to get the experimental drivers to make this work on Ubuntu 13.10 you're going to need to do a few things:

# Note this will take awhile!
1.) Add the PPA Repository
  $ sudo add-apt-repository ppa:oibaf/graphics-drivers
2.) Update sources
  $ sudo apt-get update
3.) Dist-upgrade (rebuilds many packages)
  $ sudo apt-get dist-upgrade
4.) Reboot!

In your code make sure you request a Opengl 3.3 context!

Run this command glxinfo | grep OpenGL you should get something like...

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.0-devel (git-f9cfe5c     saucy-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

Source Articles

http://www.phoronix.com/scan.php?page=news_item&px=MTQ5OTk

https://launchpad.net/~oibaf/+archive/graphics-drivers/

like image 182
Ben DeMott Avatar answered Nov 06 '22 06:11

Ben DeMott