Click here to Skip to main content
15,886,693 members
Everything / Multimedia / OpenGL

OpenGL

OpenGL

Great Reads

by Carlos Jiménez de Parga
A reusable Visual C++ framework for real-time volumetric cloud rendering, animation and morphing
by Petrov Vladimir
Former NeHe OpenGL Lessons adapted to MSVS-15 pro MFC in INICODE and the samples of the Joystick implementation
by Vasily Tserekh
A simple 3D exploration of a plaza in OpenGL and C#
by logicchild
An article that explains how to use this library

Latest Articles

by gabriel4sonic
Shows how to use OpenGL in a .NET WPF application by directly incorporating an OpenGL window as a child of the main WPF window, making it behave more like a control
by ColleagueRiley
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
by EgorYusov
This article introduces Diligent Engine, a modern cross-platform graphics API abstraction library and rendering framework
by EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.

All Articles

Sort by Title

OpenGL 

31 Oct 2013 by Maximilien
Happy monday.I'm trying to use a GIF or a 8 bpp BMP image image as a source for an OpenGL texture.The code is working well for other types of image (24, 32bits image)I'm loading the file with CImage, but I'm having problems figuring the format and type parameters of the glTexImage2D...
7 Jul 2011 by CPallini
Did you realize the following linessudhanshu2511 wrote: { memcpy(pData+i*9, triArray[surfnum][i].pt1, 3*sizeof(GLfloat)); memcpy(pData+i*9+3, triArray[surfnum][i].pt2, 3*sizeof(GLfloat)); ...
7 Jul 2011 by sudhanshu2511
333 glGenBuffers(surftotal, uiVBO);334 {335 for(surfnum=0; surfnum
1 Jun 2014 by Muhammad Taqi Hassan Bukhari
I want to create two view port in my screen window, both of half of the screen and with fill with different colors.I am new to opengl, only done basic program of drawing dots and lines. now how to achieve this task.
8 Feb 2010 by Ozgur Ozcitak
An article explaning how to create a user control for 2D shape drawing with OpenGL
28 Sep 2015 by kozmikadam
Hello everyone ,I have a school project , so i'm looking some info for this.We should be make a 3D scene , and we should be add some 3D components , like house , car , human etc. with drag and drop. Or maybe we can select from a catalog. Also some components should have some animation...
13 Oct 2015 by KarstenK
You best stick to OpenGL because it is the most widely spread technology, but it is hard to learn. You must learn about matrices, porjection and vectors mathematics and some strange commands.Here is a good starting point: Learning Modern OpenGL.Invest some time in learning as reading or...
20 May 2010 by Gaurav Kishore, Prateek Vaishnav
A 3D chess game that can be played between a computer and a human
6 Apr 2015 by QutaibaMustafa
Hi ^_^ I want to make a 3d painter using c#.First of all I want to display 3 panels - XY, XY and YZ Views. The user will paint what he wants in each panel. After that he will click on a button to combine the 3 views and get a 3d model from these panel. He also can render this model...
14 Apr 2015 by Gokulprasad05
Triangle FarPlaneDistance="100" LookDirection="-12,-11,-10" UpDirection="0,1,0" NearPlaneDistance="1" Position="11,10,9" FieldOfView="75" /> ...
14 Apr 2019 by Martin Vorbrodt
3D Engine, from GLUT to GLFW
2 Aug 2003 by Nikolai Teofilov
An ATL/STL ActiveX control based on OpenGL library for 3D data visualization
21 May 2009 by Tommi Laukkanen
A KD-Tree which stores axis aligned boxes.
26 Nov 2013 by Chris Boss
3D Sandbox with programable logic built in
15 Jul 2014 by Vasily Tserekh
A simple 3D exploration of a plaza in OpenGL and C#
20 Jan 2015 by charles922
3D programming with OpenGl and C# to create an interactive puzzle
17 Apr 2013 by Vasily Tserekh
A demo of a solar system programmed in OpenGL and C#
10 Feb 2010 by Death8U
I am trying to create a 3D spring (helix, Spiral, ...) with a specific length and number of turns. I have the code written to create a spring using a line_strip, but I want to extend it to be an actual 3d surface (look like a real spring on a car). I figure this can be done using a quad_strip,...
19 Nov 2012 by Rob Branaghan
Try these... I know you posted this in 2009.... But you never know... might still need the...
28 May 2012 by KCorazza
Hi to all,I've to start a new windows project in C# where it is necessary to view 3D data in different way. I don't know which technology use: OpenGL or DirectX ?Which technology offer the best performance ?Do you know OpenGL and DirectX wrapper that allow the programming life more...
17 Feb 2009 by MikeTheDwarf
Helper class to display 3D data
10 May 2017 by Petrov Vladimir
Former NeHe OpenGL Lessons adapted to MSVS-15 pro MFC in INICODE and the samples of the Joystick implementation
8 Jun 2017 by Petrov Vladimir
Former NeHe OpenGL Lessons adapted to MSVS-15 pro Win32 in INICODE and the samples of the Joystick implementation
1 Apr 2012 by Iron-Eagle
I am writing application that opens a window and draws openGL inside.It works fine on almost every computer, however, if I use Matrox M9140 graphic card the window is completely blank (No drawing at all).After some debugging I discovered that ::SwapBuffers throw exception (Memory...
21 Aug 2013 by ChronoCross
Hi All, I am new in Android application development but I had experience programming using C# with OpenTKI just want to load texture 2D from bitmap (or other format) (texture mapping) image in Android OpenGL in Mono (I know it using OpenTK), and I am currently using Visual Studiousually,...
4 Feb 2014 by Sergey Alexandrovich Kryukov
Please read: http://en.wikipedia.org/wiki/Bezier_curve[^].Figure out how those curves work and try to do some work.—SA
18 Apr 2013 by lxdfigo
A 3D Game Based on Ogre, ODE, 3D Max, CEGUI and so on
30 Dec 2011 by Vasily Tserekh
A Basic 3D Asteroid Game in openGL with C#
16 May 2021 by Steffen Ploetz
Creation of a basic X3DOM editor based on OpenGL with as little code as possible, that is running on ReactOS and Windows, to check out the capabilities of X3DOM.
29 May 2010 by Software_Developer
A Cessna Skyhawk Skeleton for further development in OpenGL (GLUT) using a Win32 Console
8 May 2008 by Davidwu
A Cool Vista Sidebar Gadget Style CPUInfo Animate Control! (Fixed)
24 Mar 2015 by Carlos Jiménez de Parga
Explanation of a consistent 3D graphics software architecture through a basic OpenGL application
30 Jan 2019 by SuperMiQi
Hello Everyone, I would like to ask you what could be your recommandation for an opengl c++ mooc course. I have scanned on udemy but they do not cover like text rendering and rotation of text around axis for example. My goal will be to implement a waterfall control and all usefull information...
29 Jan 2019 by Richard MacCutchan
LearnOpenGL - OpenGL[^]
30 Jan 2019 by Shao Voon Wong
I learn OpenGL 4.x from OpenGL Essentials LiveLessons (Video Training), Downloadable | InformIT[^]. The trainer, Paul Varcholik, has a PhD and also have a DX 11 course for sale. I put what I learned into writing my slide show app and its Video Encoder. See my CP article below. H264 Video...
23 Aug 2012 by Alesiani Marco
A concept-tool to create interactive documentations for C/C++ projects
20 Dec 2006 by Gabriyel
An article on integrating an OpenGL-based graph component that provides real-time updates.
26 Nov 2014 by Jeremy Falcon
Provides a base to use when programming OpenGL-enabled applications for the real world, rather than a simple hello world.
6 Oct 2009 by John Hilton
Simple yet comprehensive viewing code for OpenGL and Direct3D.
14 May 2014 by Vasily Tserekh
A new version of the asteroid game
16 Jan 2016 by Mathew_wwx
This tip will introduce a library written in C++ that wraps up a 2d polygon triangulation algorithm with time complexity of O(N*logN), the algorithm works on both self-intersected and non self-intersected polygons.
20 Sep 2013 by Member 10069493
Uasually in MFC, i simply use this way,CXXXView::OnUpdateYYYto update my toolbar and its status(enable/disable...). It always goes well without any exceptions. But recently, i code a project which uses OpenGL API and MFC, it leads to a different result.I still do it as usaul in my...
26 Dec 2010 by wonmeen
I am doing with a Open code about a game. When loading the game a exception was threw about. The exception is this:com.ardor3d.util.Ardor3dException: Error compiling GLSL shader: Vertex shader failed to compile with the following errors:ERROR: 0:29: 'mod' : signature matching...
24 Apr 2013 by Member 10010290
please give me a simple code in c which uses glui library of OpenGL.I want to explore the creation of glui windows,panels,buttons and checkboxes.
24 Apr 2013 by Richard MacCutchan
If you are interested in learning OpenGL, then please post your question in the proper place[^].
24 Apr 2013 by CHill60
A little research on this very site would have found you this article - GLUI Window Template[^]
5 Feb 2008 by erjan123
A Simple OpenGL Stipple Polygon Example using Glut.h
19 Jun 2008 by erjan123
A Simple OpenGL Window using GLUT with Win32 Console Application
1 Feb 2008 by erjan123
A simple C++ console application to create an OpenGL window using the GLUT library
29 May 2010 by Software_Developer
A Simulation of a Canadian F-86 fighter jet in Windows Forms using Visual C++ 2005
2 Jun 2010 by Software_Developer
A Star Wars Scroller Demo that moves smoothly from the bottom to the top in OpenGL (GLUT)
30 Mar 2020 by Vasily Tserekh
A simple straightforward car race game with minimum LOC.
2 Mar 2012 by manu_221b
I'm new to OpenGL. I've downloaded OpenGL application and GLUT library files. Is there anything else I would need to start programming in OpenGL? Somewhere I saw the need of MS Visual Studio. Is it true? Is there any specific system requirements? Kindly post if there's anything else I should...
14 Feb 2013 by Agustin Recoba
Hi again.. and sorry for bothering you... well, im working on a project... and I don't know if you know about a software called TempTracker, its free, and the thing that I want to do, its so save the coords... i mean, the software it's for the calibration of a pair of glasses, but when you hint...
1 Feb 2012 by stigersh
Hi,I'm writing a Phong shader with multiple lights. I send a uniform array to both vertex and fragment shaders. Let's say one of the arrays isuniform vec3 lights[8];then I loop over it in the program, for example:vec3 color=0;for (i=0;i
9 Jun 2003 by Pierre Alliez
This article explains how to generate resolution independent versions of 3D meshes rendered by OpenGL/MFC programs, i.e. how to export the rendering results to vectorial formats such as encapsulated postscript (EPS) and Windows enhanced metafile (EMF) formats. The main goal consists of being able to
1 Dec 2015 by Android on Intel
As a follow-up to Adaptive Volumetric Shadow Maps for DirectX 11, we present a port of the same algorithm adapted for Android devices that support OpenGL ES 3.1 and the GL_INTEL_fragment_shader_ordering OpenGL extension.
18 Feb 2019 by Steffen Ploetz
How to realize text past functionality via inter process communication for your OpenTK based C# OpenGL application running on X11
18 Feb 2019 by Steffen Ploetz
How to realize text copy functionality via inter process communication for your OpenTK based C# OpenGL application running on X11
28 Nov 2013 by Saideep_Kasam
How to Add Sound to your code in opengl , can any one provide me with a tutorial link please when i googled it shows to use openAL but i cant find how to use openAL and add a music file to my opengl code.thank you
28 Nov 2013 by Fredrik Bornander
OpenGL is an Open Graphics Library, you don't use it to create audio.OpenAL[^] is an Open Audio Library, and it is something you can use to do audio.OpenAL Soft[^] is a cool implementation of the standard that is open.It's related to OpenGL in the sense that it's a 3D audio API and...
25 Mar 2014 by Rajeev Kumar Singh
why can't we use the sndPlaySound("sound filename.extension",SND_ASYNC); This simple and easy to get sound in OpenGL
16 Oct 2014 by Tim_Duncan
In this article, we’ll explore the strides Adobe engineers have made over the last few years to enhance Photoshop using OpenGL* and OpenCL™ to increase hardware utilization.
20 Mar 2012 by Abbath1349
Hello. Can u say me alhoritms for find mate, stalemate and check in chess?
24 Apr 2014 by Yaknan-John
I am trying to use OpenGL to display the result of my rendering engine but I get a blank screen with no display. Below is my main c++ file with OpenGL calls and the file with the rendering engine. Please what am I doing wrongly. The original raytracing by Jacco Bikker displays the result alright...
15 May 2014 by Member 10799280
I'm a student from a university of technology and I'm doing my final project using OpenGL to simulate a robot arm. I found a formal project through google search in this link:http://www.leniel.net/2008/02/robot-arm-with-opengl-in-csharp.html#sthash.EB03Qcsd.dpbsWhen I run it, it show up...
15 May 2014 by Dave Kreskowiak
Go into your projects Properties page, found in Solution Explorer, and click on the Build tab. There you'll find "Platform target". Change it to x86 and recompile your project. This will force your project to run as 32-bit only.If you leave it as "Any CPU", your code will run as a 32-bit app...
22 Oct 2013 by machenxi
Hi,I have wrote a MFC project and I have compile and debuged the project.But the output result is not right. I am a freshman on computer programming.Please help me solve this problem.Thank you! This is the part of the "practiceView.cpp".void CpracticeView::OnDraw(CDC*...
17 Nov 2014 by Android on Intel
In this post I'm going to start exploring the topic of blur filters.
21 Jan 2015 by Android on Intel
In this blog post I'm going to start exploring the topic of blur filters.
13 Sep 2007 by Ruiying WANG
A tutorial on how a Firefox plugin does OpenGL rendering
26 Jul 2012 by monerajesh
hi every one, I want to place a listview on top of a open gl surface, which I did correctly, now the real problem is that I want the list view to be exactly bound by the edges of the circle as in attached image. I can do that for one screen size but when I test application on other screen the...
25 Apr 2012 by Niklas L
It looks like you are nesting the functions. onTouchEvent() is placed within the function HelloOpenGLES10SurfaceView(). It needs to be placed in a class directly, either the main class, or a nested class.
25 Apr 2012 by satrio_budidharmawan
Hi there,I'm now trying to mastering OpenGL for mobile gaming, so I'll need to ask a boxes of question about it. Here's my current problem now.Specification :- android SDK API 6 (android 2.1)- using command line to create new project, build, and install- using emulator (AVD) to run...
12 Jan 2016 by Member 12011271
Hi am developing an android wear using the service of Gles2WatchFaceService.I need to draw an image and make animation on it can anyone help me
20 Jan 2015 by Android on Intel
Android* Texture Compression - a comparison study with code sample
11 Jun 2012 by Iron-Eagle
Hello!I am trying to draw text string to string with openGL. I generate string to texture and then I draw the texture. Despite the fact that I setting ANTIALIASED_QUALITY fonts still pixelate and ugly.ExampleHere is the code I use: HFONT m_font =...
11 Jun 2012 by nv3
First check whether your font "Compress" allows anti-aliasing, e.g. being a TrueType font.The operating system also plays a role in the game. The MSDN documentation of the LOGFONT structure contains the following hint:Windows 95 Plus!, Windows 98/Me: The display must greater than 8-bit...
12 Jun 2012 by Iron-Eagle
Everything works fine. It was another bug in our system. Thanks everyone, sorry.
5 Jun 2012 by Member 8474189
im trying to implement 3d object viewer using tao framework. i cant find any advance tutorials.help me. thanks.
5 Jun 2012 by Prasad_Kulkarni
Please refer some good CP articles on same:OpenGL One Window 6 Views With Tao and C# (Multiple Views)[^]OpenGL 3D Navigation with Tao and C#[^]Arcball OpenGL in C#[^]OpenGL:Tutorials [^]
6 Jun 2012 by Member 8474189
thanks prasad. thanks for links..
24 Jul 2005 by Mircea Puiu
anyTex - a class for non-restrictive textures in OpenGL.
1 Jun 2016 by Android on Intel
A tutorial for writing applications using Vulkan. I will share my thoughts and experiences as someone who knows OpenGL and would like to “migrate” to its successor.
31 Jul 2015 by Android on Intel
This paper describes how to create an x86 player app using the NexPlayer SDK.
12 Oct 2010 by Bhavana S. Mundada
Hi all..I am GLSL beginner. I am using shader with Qt's OGL module.I have created a shader and have drawn an image on the QGLWidget but stuck about how to apply the shader to the image object.e.g. I have created a shader for brightness, but how to apply gl_fragcolor value to the...
10 Oct 2010 by GPUToaster™
I'm not sure what QT syntax is...But in general a GLSL is compiled and Attached to an object. In this case,1. create an object which will point to your shader program.2. look out for an attach() method. (may be like widget->attach(ShaderObject *)).In this way you can attach shader...
12 Oct 2010 by Bhavana S. Mundada
Please Hv a Look at my code and let me know how to use gl_FragColor Value while Updating the image in paintGL() Function.void GLWidget::initializeGL(){ //***************Shader for Brightness************************// QGLShader *vshader1 = new QGLShader(QGLShader::Vertex,...
17 May 2012 by Jeremy Shin Woo
I drew a wireSphere using Opengl.Then I added texture to it. It show in this machine. But I don't show the texture in another machine. It show only the wire sphere without texturing. I can't imagine the reason.Please help me..
1 Jun 2018 by TomasRiker2
Texturing problems are often caused by textures with a width/height that is not a power of 2 - especially in OpenGL. I experienced this myself, even on modern hardware. Try a texture size such as 1024x1024!
5 Jun 2016 by Steffen Ploetz
How to implement modal windows with OpenTK on Linux, that behave like dialog boxes on Windows
11 Jan 2008 by Kam
Arcball module using Tao.OpenGL in C#.
28 Mar 2008 by Kam
An Arcball module using CsGL in C#.
8 Jan 2013 by Member 9731806
I've been working through an openGL tutorial that simply renders a shape. I think all my code is correct however when i compile and run the code there is no shape rendered. Is every version of GLSL compatible with every version of OpenGL?
5 Oct 2014 by Grasshopper.iics
The Simplest Graphics and Animation tutorial you ever wanted