Click here to Skip to main content
15,879,004 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 Score

OpenGL 

3 Apr 2022 by Carlos Jiménez de Parga
A reusable Visual C++ framework for real-time volumetric cloud rendering, animation and morphing
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
15 Jul 2014 by Vasily Tserekh
A simple 3D exploration of a plaza in OpenGL and C#
10 Sep 2010 by logicchild
An article that explains how to use this library
26 Oct 2022 by Shao Voon Wong
H264/HEVC Video Encoder for recording OpenGL rendering
23 Dec 2018 by charles922
Introduction to Orbital Mechanics - 2 Body Problem
10 May 2021 by Steffen Ploetz
Check whether ReactOS is able to run OpenGL, determine a convincing IDE and get started with the OpenGL on ReactOS.
11 Mar 2018 by Petrov Vladimir
Weiler-Atherton algorithm in 3D codes demo implementation
9 Mar 2021 by Steffen Ploetz
Box, cylinder, cone and sphere construction for OpenGL with texture and light effects
24 Oct 2001 by Chong Hin Ooi
How to draw OpenGL to a window you created in a dialog box with the resource editor without manually using CreateWindow.
12 Sep 2013 by Matt Scarpino
Using GPU Acceleration to Compute Ray-Triangle Intersection
23 Sep 2020 by EgorYusov
Introduction to amplification and mesh shaders, the new programmable stages available in modern GPUs, and how to use them to implement view frustum culling and object LOD selection on the GPU using the Diligent Engine API
15 Oct 2012 by ashcairo
How to use OpenGL and friends to write an app that targets mobile and desktop platforms.
24 Sep 2014 by pogib
Simple and PCF shadow mapping algorithms (Bonus Article - Android Wild Card Category)
26 Mar 2019 by Steffen Ploetz
Check OpenGL as a basis for appealing applications, that are not necessarily games.
30 Jan 2020 by Roman Sedaikin
SpaceVIL is a cross-platform and multilingual framework for creating GUI client applications for .NET Framework, .NET Core and JVM. This article discusses the SpaceVIL framework, its capabilities and a brief story of its creation.
12 Jul 2023 by EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.
16 May 2014 by Bartlomiej Filipek
Description of my emitter and generator module for particle system
5 Oct 2014 by Grasshopper.iics
The Simplest Graphics and Animation tutorial you ever wanted
5 Aug 2016 by Petrov Vladimir
Texture Mapping in OpenGL from any Image File in any format using Class CImage(just call the File Name).
18 Mar 2018 by Steffen Ploetz
How to run the -IntegrationSample- of the incredible feature-rich NoesisGUI, that might be the best WPF competitor, on Linux using MonoDevelop and C#.
17 Dec 2022 by Steffen Ploetz
High-end quality in text rendering concerns not only the characters, but also the character spaces - and here FreeType is not quite up to date anymore: The kerning used by FreeType is not always available (especially with newer fonts).
6 Nov 2011 by thatraja
Check this link 10 ways to earn from open source[^]
20 Jan 2015 by Android on Intel
Android* Texture Compression - a comparison study with code sample
11 Nov 2015 by Odd Marthon
A versatile visualization web browser application using standard web technologies.
25 Jun 2019 by MaximilianW
OpenGL rendering to WPF window
9 Apr 2010 by Ali BaderEddin
Attempt to visualize memory...
22 May 2011 by Espen Harlinn
It's often a good idea to take a look at how similar things have been solved previously:Chromium B.S.U.[^] is available on SourceForge.Net[^].This is a shoot-em-up arcade style game, that from a technical perspective have most of the stuff you require in place. As games go, the...
29 Sep 2011 by enhzflep
I forget right now how to get the handle of a GLUT window (if indeed GLUT includes a method to do this), though typically the following code will perform this task: long dwStyle = GetWindowLong(hwnd, GWL_STYLE);dwStyle ^= WS_MAXIMIZEBOX;SetWindowLong(hwnd, GWL_STYLE, dwStyle);1....
6 Nov 2011 by Dalek Dave
Not everyone does everything for money, some people just do things out of goodness.
16 Nov 2012 by lewax00
There's isn't a best one. Which one is right for you depends on what you want to do.If you want to make games on a mobile platform, you'll probably want to do it in the languages best suited for the platform (Java/C++ for Android, Objective C for iOS, and C# (I think) for Windows Phones,...
15 Aug 2013 by Chris Boss
OpenGL based 3D learning software
9 Jul 2014 by Bartlomiej Filipek
Description about my simple OpenGL renderer for the particle system
2 Sep 2015 by Dave_Voyles
With the advent of WebGL and asm.js, developers can now harness much of the power of their computing device from within the browser and access markets previously unavailable.
13 Nov 2015 by Dave_Voyles
This article focuses on creating your own web project which takes advantage of Emscripten, so that you can take C / C++ code and get it running inside of the browser.
25 Jan 2016 by Samuel Teixeira
Why simple if we can be complex?
18 Jan 2021 by Jon
A high level library allowing quick and easy creation of Vulkan samples
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.
6 Sep 2022 by EgorYusov
An implementation of a basic path tracer with Diligent Engine
14 Aug 2010 by Ali BaderEddin
How to draw an oval using lines or fill it using triangles?
13 Mar 2011 by Espen Harlinn
I would take a look at http://www.devmaster.net/engines/list.php[^]Finding one that supports the required 3ds features is usually a challenge - but it'll give you a way to select what engines you want to evaluate.RegardsEspen Harlinn
21 May 2011 by Christian Graus
Please read the guidelines on how to ask questions. 'Please help me' is both obvious, and useless. Asking us to do all your work without showing that you've tried anything for yourself, is also rude and won't encourage people to help you. Have you got access to books ? Google ? What have you...
22 May 2011 by OriginalGriff
And this is different from your last question Ball shooting game in opengl c++ using visual studio 2010[^] how?Please do not repost teh same question - it wastes space, time, and annoys people. This can slow a response, rather than speed it up.Give it time: it's Sunday, and the site is...
15 Jul 2011 by Pete O'Hanlon
This is such a common requirement for OpenGL that they have provided the glRect that does exactly this. Microsoft have provided several versions of this function[^] that take different data types to specify the bounds of the rectangle.
5 Oct 2011 by Stefan_Lang
Change if(this->pixel[i].r ==(uchar)255.0 && this->pixel[i].g ==(uchar)255.0 && this->pixel[i].b ==(uchar)255.0)to if(this->pixel[i].r ==255 && this->pixel[i].g ==255 && this->pixel[i].b ==255)Your mistake:You used a C-style typecast on constants of an...
26 Dec 2011 by CPallini
Have a look at the Command design pattern (you may start at related Wikipedia page[^]): you may gain some insight.
20 May 2012 by Volynsky Alex
I hope it will help you:http://www.salmonsalvo.net/blog/?p=19 http://mview.sourceforge.nethttp://www.ogre3d.org/tikiwiki/CEGUI+Mesh+Viewerhttp://www.gamedev.net/topic/586444-create-camera-controls-for-a-mesh-viewer--c/Good luck.Regards,Alex.
4 Aug 2012 by Volynsky Alex
That's just a typical microsoft products bug.I think the problem is in stdlib.h fileOne way fix is then presumably to do#include before anything else, and another and better fix to install the latest service pack.Btw., the program technically needs to include...
16 Aug 2012 by Espen Harlinn
JigLibX[^] is pretty good - it's tailored for XNA, but you should be able to get a feel for how things are done.Best regardsEspen Harlinn
19 Jun 2013 by JackDingler
Most of it can be done in OpenGL.Loading and saving images isn't an OpenGL function though.To do this you need to load the bitmap into memory.Create a destination bitmap in memory.Set Open GL to render to your destination bitmap.Apply the original bitmap as a texture to a square...
5 Feb 2014 by CPallini
Here is shown how to draw a 2D circle: 2D Drawing in OpenGL[^]. I know it is Basic4GL, however you could easily convert the circle drawing code to C++ and insert it in one of the many C++/OpenGL skeleton projects available.
3 Jul 2017 by zapsolution
Windows 10 multimedia player 64-bit
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
16 Apr 2021 by Steffen Ploetz
Basic light source approaches and related material properties handling for OpenGL
11 May 2010 by Adrian Pasik
I didnt see Your project but in most cases it is not geometry that is the problem. If You want to have realistic views get better textures, and then play a little bit with some bump mapping derivatives. (google for Parallax mapping)
7 Jun 2010 by Cedric Moonen
GPUToaster wrote:1. Why not other texture dimensions? Why it requires only textures of power two?I think it does that for optimization reasons. Not really sure why. As far as I know, loading a texture which is has not a size of power of two will work on certain computers but not on other...
10 Jun 2010 by Hans Dietrich
The header file glew.h saystypedef void (GLAPIENTRY * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);Why did you change it?
26 Oct 2010 by Anthony Mushrow
It's likely caused because your using a 16-bit depth buffer, which means that from a distance there isn't enough detail in the depth buffer to differentiate between the planet and its atmosphere so they're being drawn a little randomly.I'd like to mention that the depth buffer doesn't store...
18 May 2011 by Stefan_Lang
for(i=0;i
18 May 2011 by Sergey Alexandrovich Kryukov
Everything is hard-coded; code is not re-used; similar blocks of code are repeated. This is not what programming is all about. Don't expect success until you radically improve your coding techniques and style. Perhaps you still need much more simple exercises for beginners.—SA
18 May 2011 by Sergey Chepurin
May be this sample will help you better. It is written in Visual C++/MFC with 3D view in OpenGL. It compiles (after some effort) and at least it rotates and shuffles layers.Good luck,Sergey Chepurin.
7 Jul 2011 by fjdiewornncalwe
You'll need the opengl SDK to start with.http://www.opengl.org/sdk/[^]
17 Sep 2011 by Randor
James,The Microsoft GDI+ library gdiplus.dll will spawn worker threads within your process. I don't think there is any documented way to control this. You can probably verify this by downloading Process Explorer[^] and right-clicking your process and selecting the 'Threads' tab. If you have...
23 Oct 2011 by barneyman
The Z buffer holds a value for *every pixel* that has been rendered, not per objectApart from that, you are correct
3 Nov 2011 by OriginalGriff
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...http://www.google.co.uk/search?gcx=c&sourceid=chrome&ie=UTF-8&q=sierpinski+triangles+within+a+circle+using+c%23[^]
5 Nov 2011 by Emilio Garavaglia
A console is a ... console (something that is used to give commands to a system). It should support the less languages required to sustain a dialog towards the system, otherwise is anymore a console, but right more a "graphical application to manage text".And a "multi-platform console" risk...
6 Nov 2011 by RaisKazi
If their would be no Concept of Donating for good cause in the World, then probably their would have been no "Wikipedia" available for Information.Wikipedia DonationSame concept applies to "Open Source" Technologies. Many people around the Globe invest their Time, Effort and Money for this.
8 Nov 2011 by LanFanNinja
Well you can check this out http://content.gpwiki.org/index.php/OpenGL:Tutorials:Tutorial_Framework:MD2Animation[^]. Might I suggest that you use a graphics engine (at least until you get better at programming) some engines I know of are Irrlicht (fairly easy to get started with) and Ogre (more...
24 Jan 2012 by JackDingler
1. Use the glTranslate(-x, -y, -z) function to move the object relative to (0,0,0)2. Call glRotate() to rotate the objects, relative to (0,0,0)3. Call glTranslate(x, y, z) to move the objects back to a position relative to (x,y,z).Be sure that you draw your model relative to (0,0,0), and...
27 Feb 2012 by wizardzz
You need separate threads or processes to do this. Why the need for infinite loops? Why don't you want to use separate threads?
16 Aug 2012 by Kenneth Haugland
Seem to be a good deal of results on Google[^]. You try out some of the links and than come back if you are completely stuck, ok?Good luck :)
17 Sep 2012 by Espen Harlinn
Have a look at: http://www.opentk.com/[^]This C# library wraps OpenGL, OpenCL and OpenAL.Best regardsEspen Harlinn
27 Sep 2012 by smokindinesh
You can use SharpGL. SharpGL is a C# library that allows you to use OpenGL in your .NET Framework based application with ease! You can download the SharpGL visual studio extension and create project for both SharpGL windowsform application and SharpGL WPF application.Have a look...
25 Apr 2013 by Sergey Alexandrovich Kryukov
You were really, really close. You picked unrelated style, controlling maximize operation. Resizing by the border is controlled by another bit, WS_SIZEBOX, same as WS_THICKFRAME. You have to clear this bit. Please...
4 Jun 2013 by Santhosh G_
I suggest to do it yourself instead of using others code.If you are using windows with opengl following steps are necessary to create a digital clock application.Please use wglUseFontBitmaps to create the text items.Prepare a timer[using SetTimer] which triggers in 1 second to redraw the...
19 Sep 2013 by Santhosh G_
I hope image data available in a FrameBuffer, then you can use glReadPixels() to read pixels of the frame buffer( RGB data from the pixel buffer).glReadPixels( Left, Top, Width, Height, GL_BGR_EXT, GL_UNSIGNED_BYTE, pbyData ); // pbyData should be allocated with 3 * Width * Height to receive...
4 Feb 2014 by Santhosh G_
Hello,OpenGL is a graphics library without GUI support. OpenGL do not have any functions to show a button,list box, edit box etc.You can draw whatever you want, to the OpenGL rendering window. Therefore you have to write code to display the button.There are many gui frameworks...
19 Apr 2016 by leon de boer
Paul Bourke a lecturer from University of Western Australia has the best layman explaination and code I have seen for marching cubes.Polygonising a scalar field (Marching Cubes)[^]He shows you what is happening as well as the code. Essentially you start with a box around what is...
27 Jan 2017 by Eowind
OpenGL 4 with OpenTK in C# Part 2: Compiling Shaders and linking them
22 Feb 2018 by Asif Bahrainwala
OpenGL Compute Shader
15 Apr 2018 by Patrice T
Quote: but using function 'myellipse' makes the animation very slow You want to improve speed, that process is named 'optimization', the tool that help you to spot bottle necks is the profiler. Profiling (computer programming) - Wikipedia[^] Optimization is about being critical about your...
17 Sep 2018 by Jochen Arndt
In your example * is the Dereference operator - Wikipedia[^]. Because p is of type unsigned char * it will access the unsigned char to which p is pointing. It is similar to using p[0] and *(p+1) is similar to p[1].
13 Oct 2018 by Steffen Ploetz
How to use GL's pixel buffer object (PBO) to copy one texture to another
13 Apr 2019 by CPallini
Quote: so I guess the problem is in my lookup table function. How do I correctly do this ? I find nothing wrong with your scaling table. Of course you have to initilialize it (calling scaling) before calling makeshift. Note you are assigning a float to an unsigned char. I believe your compiled...
1 Jul 2019 by CPallini
The root of the problem is this piece of code: Quote: if(angleOfSense==-1) aom = LO + static_cast (rand()) /( static_cast (RAND_MAX/(HI-LO))); else aom = angleOfSense; It computes a random angle only the first time it executes (when angleOfSense is equal to its...
1 Jul 2019 by Stefan_Lang
On top of what Carlo said in solution 1, there are two more issues: Quote: return x == 0 || x == width || y == 0 || y == height; Never compare floating point variables using == or != . These values are prone to subtle variations due to rounding effects, and therefore a direct comparison will...
15 Jul 2019 by Stefan_Lang
This is just a guess, as the code is too long to fully analyze, but judging by your problem description this is just a corner case, and there is a piece of code in Ray::cast() that is likely to cause issues in corner cases: const float den = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);...
5 Nov 2022 by Steffen Ploetz
My way to have a first sample program running with "Texus' Graphical User Interface" (TGUI) - a cross-platform modern C++ immediate GUI, on which I use "Simple and Fast Multimedia Library" (SFML) as backend.
4 Jan 2024 by Rick York
This is rather odd. Mostly because I have worked extensively with OpenGL and this is something I have never found necessary to do. You might have better success in finding out what the errors were and fixing them. I wrote this function a while...
2 Sep 2008 by Uri91
Hello,I'm a high-school student seeking to learn about 3D programming. I have experience with C# and C++, OOP and more.I don't have any intentions of making high-grade stuff with 3D, but I do want to learn something that I might use in the...
2 Sep 2008 by John_Adams
Hi,I would suggest you to visit the following links to know the difference between WPF, DIRECTX and XNA.http://forums.xna.com/forums/t/5278.aspx[^]http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=257213&SiteID=1[^]Hope this helps ...
16 Nov 2009 by Judah Gabriel Himango
This sounds suspiciously like a homework question.We can help you with homework if you have specific questions, but we will not do your homework for you. If you have specific questions about how to do something, update your post and we might help you out. 
27 Jan 2010 by Christian Graus
I can't think of anything more useless than posting 'I also have this problem' as an ANSWER to a question.I found this[^] with a google search. Took me about 10 seconds.
8 Feb 2010 by Christian Graus
Given that it's your university assignment, it would be wrong for us to do this work for you, even if we were in the habit of writing people's projects for them, rather than just giving them some help with code they are trying to write. Given that it's due tomorrow, it seems to me that your...
8 Feb 2010 by Richard MacCutchan
kattyz wrote:Also i don't have time as submission date is 10th Feb 2010.If you think anyone could write this in time for you to implement, test, document, print and submit by tomorrow, you are living in a dream world. Try spending more time focussed on your work.
8 Feb 2010 by Christian Graus
"Sir i was seriously ill that's why i can't be able to take classes & not fulfilling my assignment.Sorry If i hurt you by asking this question but i am really in trouble.I am coming first time here on this site."This thread is obviously a joke, but in general, you should edit your post, not...
8 Feb 2010 by Christian Graus
I'm really sorry to hear that. I am sorry you were sick. But, if you missed out on a lot of classes, the only way to walk away with a graduation AND the knowledge to back it up, could well be to repeat the year. Finding some source code online may seem like an easy way out, but it's not the...
12 Mar 2010 by bala_48225
Well it occured to me this morning to change the output window to a 1:1 square shape, like 600x600 and once I did, everything was perfect, so I guess perfection has been reached, haha. Nonetheless, feel free to run something past me about gluOrtho2d and gluPerspective, because the auto-code...