Click here to Skip to main content
14,979,217 members
Everything / Multimedia / OpenGL

OpenGL

OpenGL

Great Reads

by Petrov Vladimir
Former NeHe OpenGL Lessons adapted to MSVS-15 pro MFC in INICODE and the samples of the Joystick implementation
by Carlos Jiménez de Parga
A reusable Visual C++ framework for real-time volumetric cloud rendering, animation and morphing
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 EgorYusov
This article introduces Diligent Engine, a modern cross-platform graphics API abstraction library and rendering framework
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.
by Steffen Ploetz
Check whether ReactOS is able to run OpenGL, determine a convincing IDE and get started with the OpenGL on ReactOS.
by Steffen Ploetz
Basic light source approaches and related material properties handling for OpenGL

All Articles

Sort by Score

OpenGL 

Please Sign up or sign in to vote.
10 May 2017
Petrov Vladimir
Former NeHe OpenGL Lessons adapted to MSVS-15 pro MFC in INICODE and the samples of the Joystick implementation
Please Sign up or sign in to vote.
27 Aug 2020
Carlos Jiménez de Parga
A reusable Visual C++ framework for real-time volumetric cloud rendering, animation and morphing
Please Sign up or sign in to vote.
15 Jul 2014
Vasily Tserekh
A simple 3D exploration of a plaza in OpenGL and C#
Please Sign up or sign in to vote.
10 Sep 2010
logicchild
An article that explains how to use this library
Please Sign up or sign in to vote.
23 Dec 2018
charles922
Introduction to Orbital Mechanics - 2 Body Problem
Please Sign up or sign in to vote.
25 Jul 2020
Shao Voon Wong
H264/HEVC Video Encoder for recording OpenGL rendering
Please Sign up or sign in to vote.
10 May 2021
Steffen Ploetz
Check whether ReactOS is able to run OpenGL, determine a convincing IDE and get started with the OpenGL on ReactOS.
Please Sign up or sign in to vote.
9 Mar 2021
Steffen Ploetz
Box, cylinder, cone and sphere construction for OpenGL with texture and light effects
Please Sign up or sign in to vote.
11 Mar 2018
Petrov Vladimir
Weiler-Atherton algorithm in 3D codes demo implementation
Please Sign up or sign in to vote.
24 Oct 2001
Chong Hin Ooi
How to draw OpenGL to a window you created in a dialog box with the resource editor without manually using CreateWindow.
Please Sign up or sign in to vote.
23 Sep 2020
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
Please Sign up or sign in to vote.
15 Oct 2012
ashcairo
How to use OpenGL and friends to write an app that targets mobile and desktop platforms.
Please Sign up or sign in to vote.
24 Sep 2014
pogib
Simple and PCF shadow mapping algorithms (Bonus Article - Android Wild Card Category)
Please Sign up or sign in to vote.
26 Mar 2019
Steffen Ploetz
Check OpenGL as a basis for appealing applications, that are not necessarily games.
Please Sign up or sign in to vote.
30 Jan 2020
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.
Please Sign up or sign in to vote.
16 May 2014
Bartlomiej Filipek
Description of my emitter and generator module for particle system
Please Sign up or sign in to vote.
5 Oct 2014
Grasshopper.iics
The Simplest Graphics and Animation tutorial you ever wanted
Please Sign up or sign in to vote.
18 Mar 2018
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#.
Please Sign up or sign in to vote.
6 Nov 2011
thatraja
Check this link 10 ways to earn from open source[^]
Please Sign up or sign in to vote.
20 Jan 2015
Android on Intel
Android* Texture Compression - a comparison study with code sample
Please Sign up or sign in to vote.
11 Nov 2015
Odd Marthon
A versatile visualization web browser application using standard web technologies.
Please Sign up or sign in to vote.
5 Aug 2016
Petrov Vladimir
Texture Mapping in OpenGL from any Image File in any format using Class CImage(just call the File Name).
Please Sign up or sign in to vote.
25 Jun 2019
MaximilianW
OpenGL rendering to WPF window
Please Sign up or sign in to vote.
9 Apr 2010
Ali BaderEddin
Attempt to visualize memory...
Please Sign up or sign in to vote.
22 May 2011
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...
Please Sign up or sign in to vote.
29 Sep 2011
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....
Please Sign up or sign in to vote.
6 Nov 2011
Dalek Dave
Not everyone does everything for money, some people just do things out of goodness.
Please Sign up or sign in to vote.
16 Nov 2012
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,...
Please Sign up or sign in to vote.
9 Jul 2014
Bartlomiej Filipek
Description about my simple OpenGL renderer for the particle system
Please Sign up or sign in to vote.
2 Sep 2015
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.
Please Sign up or sign in to vote.
13 Nov 2015
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.
Please Sign up or sign in to vote.
25 Jan 2016
Samuel Teixeira
Why simple if we can be complex?
Please Sign up or sign in to vote.
18 Jan 2021
Jon
A high level library allowing quick and easy creation of Vulkan samples
Please Sign up or sign in to vote.
15 Aug 2013
Chris Boss
OpenGL based 3D learning software
Please Sign up or sign in to vote.
14 Aug 2010
Ali BaderEddin
How to draw an oval using lines or fill it using triangles?
Please Sign up or sign in to vote.
13 Mar 2011
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
Please Sign up or sign in to vote.
22 May 2011
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...
Please Sign up or sign in to vote.
21 May 2011
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...
Please Sign up or sign in to vote.
15 Jul 2011
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.
Please Sign up or sign in to vote.
5 Oct 2011
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...
Please Sign up or sign in to vote.
26 Dec 2011
CPallini
Have a look at the Command design pattern (you may start at related Wikipedia page[^]): you may gain some insight.
Please Sign up or sign in to vote.
20 May 2012
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.
Please Sign up or sign in to vote.
4 Aug 2012
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...
Please Sign up or sign in to vote.
16 Aug 2012
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
Please Sign up or sign in to vote.
19 Jun 2013
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...
Please Sign up or sign in to vote.
5 Feb 2014
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.
Please Sign up or sign in to vote.
3 Jul 2017
zapsolution
Windows 10 multimedia player 64-bit
Please Sign up or sign in to vote.
29 Nov 2017
EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.
Please Sign up or sign in to vote.
18 Feb 2019
Steffen Ploetz
How to realize text copy functionality via inter process communication for your OpenTK based C# OpenGL application running on X11
Please Sign up or sign in to vote.
16 Apr 2021
Steffen Ploetz
Basic light source approaches and related material properties handling for OpenGL
Please Sign up or sign in to vote.
16 May 2021
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.
Please Sign up or sign in to vote.
11 May 2010
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)
Please Sign up or sign in to vote.
7 Jun 2010
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...
Please Sign up or sign in to vote.
10 Jun 2010
Hans Dietrich
The header file glew.h saystypedef void (GLAPIENTRY * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);Why did you change it?
Please Sign up or sign in to vote.
26 Oct 2010
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...
Please Sign up or sign in to vote.
18 May 2011
Stefan_Lang
for(i=0;i
Please Sign up or sign in to vote.
18 May 2011
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
Please Sign up or sign in to vote.
18 May 2011
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.
Please Sign up or sign in to vote.
7 Jul 2011
fjdiewornncalwe
You'll need the opengl SDK to start with.http://www.opengl.org/sdk/[^]
Please Sign up or sign in to vote.
17 Sep 2011
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...
Please Sign up or sign in to vote.
23 Oct 2011
barneyman
The Z buffer holds a value for *every pixel* that has been rendered, not per objectApart from that, you are correct
Please Sign up or sign in to vote.
3 Nov 2011
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[^]
Please Sign up or sign in to vote.
6 Nov 2011
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.
Please Sign up or sign in to vote.
5 Nov 2011
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...
Please Sign up or sign in to vote.
8 Nov 2011
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...
Please Sign up or sign in to vote.
24 Jan 2012
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...
Please Sign up or sign in to vote.
27 Feb 2012
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?
Please Sign up or sign in to vote.
16 Aug 2012
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 :)
Please Sign up or sign in to vote.
17 Sep 2012
Espen Harlinn
Have a look at: http://www.opentk.com/[^]This C# library wraps OpenGL, OpenCL and OpenAL.Best regardsEspen Harlinn
Please Sign up or sign in to vote.
27 Sep 2012
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...
Please Sign up or sign in to vote.
25 Apr 2013
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...
Please Sign up or sign in to vote.
4 Jun 2013
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...
Please Sign up or sign in to vote.
19 Sep 2013
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...
Please Sign up or sign in to vote.
4 Feb 2014
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...
Please Sign up or sign in to vote.
19 Apr 2016
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...
Please Sign up or sign in to vote.
27 Jan 2017
Eowind
OpenGL 4 with OpenTK in C# Part 2: Compiling Shaders and linking them
Please Sign up or sign in to vote.
22 Feb 2018
Asif Bahrainwala
OpenGL Compute Shader
Please Sign up or sign in to vote.
15 Apr 2018
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...
Please Sign up or sign in to vote.
17 Sep 2018
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].
Please Sign up or sign in to vote.
13 Oct 2018
Steffen Ploetz
How to use GL's pixel buffer object (PBO) to copy one texture to another
Please Sign up or sign in to vote.
13 Apr 2019
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...
Please Sign up or sign in to vote.
1 Jul 2019
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...
Please Sign up or sign in to vote.
1 Jul 2019
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...
Please Sign up or sign in to vote.
15 Jul 2019
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);...
Please Sign up or sign in to vote.
2 Sep 2008
Uri91
1 alternative  
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...
Please Sign up or sign in to vote.
2 Sep 2008
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 ...
Please Sign up or sign in to vote.
16 Nov 2009
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. 
Please Sign up or sign in to vote.
27 Jan 2010
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.
Please Sign up or sign in to vote.
8 Feb 2010
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...
Please Sign up or sign in to vote.
8 Feb 2010
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.
Please Sign up or sign in to vote.
8 Feb 2010
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...
Please Sign up or sign in to vote.
8 Feb 2010
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...
Please Sign up or sign in to vote.
12 Mar 2010
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...
Please Sign up or sign in to vote.
12 Jun 2010
CPallini
You may find some useful info here [^]. :)
Please Sign up or sign in to vote.
15 Jun 2010
Anthony Mushrow
In windows (I'm assuming your using windows) the origin (0,0) is at the top left of the screen, but with glReadPixels the origin is at the bottom left so you may have to adjust the mouse coords before you use them with the function.Also you may want to do something more like this:Picking...
Please Sign up or sign in to vote.
25 Sep 2010
Cedric Moonen
Take a look at DevIL[^] or FreeImage[^].If you are interested, you can have a look at the second part of my tutorial about openGL[^]. It discusses image management and uses DevIL. You'll probably need to read the part 1 in order to understand.
Please Sign up or sign in to vote.
5 Oct 2010
ely_bob
Use XNA, this has all the stuff that you need without going into the 3d portion of the API..and in the long run if you want to do things like sparkles, music, explosions.. or whatever else to augment your game you would have easy access to that stuff through XNA.GDI, and it pains me to...
Please Sign up or sign in to vote.
24 Nov 2010
CDP1802
Nothing against XNA, but WPF would be better for this. A card game may need not much of a GUI, but some may be needed and that would be a pain, especially for somebody who just got started.With WPF you get the user interface and also the cards (including transformations) with far less overhead.
Please Sign up or sign in to vote.
8 Jan 2011
Dave Kreskowiak
Noone is going to write your code for you. Anyway, this game seems simple enough to write. The game has very simple rules and the "physics" are quite easy to handle.
Please Sign up or sign in to vote.
12 Mar 2011
Yusuf
That is not hard to do. First you need to read about file IO. Here is a good introductory article http://www.cplusplus.com/doc/tutorial/files/[^]Once you are learn how to do, you need to come up with your data storage format. May be this may help. I would write in each line, the...
Please Sign up or sign in to vote.
1 Apr 2011
OriginalGriff
Surely, the place to start is not with the OpenGL implementation, but with the physics?Get your algorithm for star formation sorted first, using a random cloud of particles (or a defined initial state) and process it until you end up with a star, or something vaguely recognisable as a star....
Please Sign up or sign in to vote.
3 Apr 2011
Smithers-Jones
You (together wit your tutor) are the only one, who can decide, what would be a suitable project for you. How would others know, what's suitable for you, what your skills are, what interests you...If you can't even come up with your own project (you wrote: "i am confused to decide the topic"),...
Please Sign up or sign in to vote.
23 Apr 2011
King Boy
3 alternatives  
I have heard about OpenGL for months and run some examples using OpenGL in C++ and I see how cool it is! I have realized that I like it!Could you please tell me how to use this powerful graphics library in C# environment!Please give me complete sample projects!Thank you so much!
Please Sign up or sign in to vote.
23 Jun 2011
Cedric Moonen
This is the default behaviour and should be kept this way. You need to redraw your full "model" for each screen. This means that when the user draws a line, instead of immediately drawing, you should keep its properties in memories (along with all previous lines drawn) and trigger a refresh of...
Please Sign up or sign in to vote.
11 Jul 2011
Stefan_Lang
That's a bit too much code to analyze, but I've noticed this line: GLuint uiVBO[surftotal];Does that actually compile?? surftotal is defined as a global, non-constant int. The compiler therefore should throw an error. If it doesn't, it has no way of knowing what size this array should...
Please Sign up or sign in to vote.
19 Jul 2011
Santhosh G_
Please initialise tempX and tempY with Center values.int centerX = 200, centerY = 200;int tempX = 200, tempY= 200;When your application starts, it draws your screen with myDisplay() function.In myDisplay() one line draw code exists. Which will draw a line from Center of window to...
Please Sign up or sign in to vote.
24 Aug 2011
walterhevedeich
Please see here[^] for an explanation on why you are getting the error.As for the troubleshooting, were you able to take a look at the following...
Please Sign up or sign in to vote.
1 Oct 2011
Santhosh G_
According to MSDN glRect(x1, y1, x2, y2) is equivalent to glBegin(GL_POLYGON); glVertex2(x1, y1);glVertex2(x2, y1); glVertex2(x2, y2);glVertex2(x1, y2); glEnd( );Here 4 vertices are given without a texture coordinate.I prepared an image with different colours in four...
Please Sign up or sign in to vote.
1 Oct 2011
egultekinoglu
glBindTexture( GL_TEXTURE_2D, texture );orglGenTextures( 1, &texture );orGLuint LoadTextureRAW( const char * filename, int wrap ){ GLuint texture; int width, height; BYTE * data; FILE * file; // open texture data file = fopen( filename, "rb" ); ...
Please Sign up or sign in to vote.
1 Oct 2011
Simon Bang Terkildsen
I'm assuming we're on Windows.When you create the window make sure that the window style (dwStyle) flags doesn't include WS_THICKFRAME.Or you could handle the window message WM_SIZING to revert any changes to the size the user has made.
Please Sign up or sign in to vote.
1 Oct 2011
Chuck O'Toole
To control the x and y sizes of the window, you can handle the WM_GETMINMAXINFO message and return the smallest you are willing to accept, which can just be the size of the current window, meaning no change allowed.Bing / Google / Yahoo Search for WM_GETMINMAXINFO for details. Also, this...
Please Sign up or sign in to vote.
23 Oct 2011
Dave Kerr
Imagine a sitting cube on a mirrored surface. If depth test was enabled, when we draw the reflection, we'd see nothing - because the geometry of the reflection is BELOW the mirrored surface! We fake a reflection by re-drawing the geometry, but the reflection is an image on a surface - which is...
Please Sign up or sign in to vote.
24 Oct 2011
Richard MacCutchan
Take a look at the documentation[^].
Please Sign up or sign in to vote.
10 Nov 2011
Sander Rossel
Wow, just last week we were saying how much we get questions like these. Read the questions and answers on that question Suggest OOP project in C++[^]. You'll find that it mostly depends on your own knowledge and interests. Google around too, can be a great source of inspiration. I just found...
Please Sign up or sign in to vote.
25 Nov 2011
Tasawer Nawaz
3 alternatives  
slam,nd hi,i m using vs 2008 professional edition,i want to configure it with openGl,i m trying this,Put freeglut.h in: ‘C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL\’ (note: you'll have to create the GL folder)Put freeglut_ext.h in: ‘C:\Program Files\Microsoft Visual...
Please Sign up or sign in to vote.
25 Nov 2011
enhzflep
Please see here[^] for some suggestions.
Please Sign up or sign in to vote.
10 Dec 2011
Santhosh G_
Please include glut32.lib.Following functions are available in glut32.lib___glutCreateWindowWithExit@8___glutInitWithExit@12
Please Sign up or sign in to vote.
10 Dec 2011
Amir Mahfoozi
It is related to linking stage and it can not find glut32.lib or freeglut.lib.In VS2010 go to Project Properties > Configuration Properties > Linker > Input > Additional Dependencies Add you glut32.lib and freeglut.lib with full path to that entry.It will find them at linking...
Please Sign up or sign in to vote.
1 Jan 2012
BrainlessLabs.com
Here are the reference:1. Wikipedia Intro[^]2. Intro to Marching cubes[^]3. Marching Cube Class notes.[^]4. Visualization Library is a Graphics Library, it has a marching cube introduction. This is a reference if you want a ready made library solution.[^]
Please Sign up or sign in to vote.
26 Jan 2012
stigersh
1 alternative  
I want to write Flat, Gouraud and Phong shadings in the same application. I think it's a problem writing them in the same shader with "if" statements, because some of the variables are supposed to be uniform in flat while supposed to be varying in Phong.If I write 3 different shaders, does...
Please Sign up or sign in to vote.
27 Jan 2012
CDP1802
Starting with those three classic shaders is a good idea. I would suggest that you use three separate shaders and do not tryto integrate them into one. Shaders are like short functions which are going to be loaded into the GPU for execution. The GPU has only limited memory to store the shaders....
Please Sign up or sign in to vote.
14 Feb 2012
RanjithThrissur
hi, you are drawing the rectangle with window width and widow height -200, this will increase the rectangle width every time you re-size the window. you must have to give a hard coded value for it to keep it same.
Please Sign up or sign in to vote.
27 Feb 2012
Maximilien
glutMainLoop is the main event loop of a glut OpenGL application; you just have to call it once.You need to define a callback function (usually for the display) that will be called internally from the glutMainLoop function (with the glutDisplayFunc).You will also need to define another...
Please Sign up or sign in to vote.
8 Apr 2012
jk chan
you can create texture map containing all font characters.. then draw the font by proper texture mapping..If you don't want fixed font , you can also create a 3d file (like obj or 3ds) containing meshes of characters. then load it and render it..
Please Sign up or sign in to vote.
18 Apr 2012
enhzflep
Sorry, not really in the mood to read code and determine the required changes.Tell you what, I'll just copy/paste some code out of one of my projects. Okay for you?void myGlutBall(float radius, int numStacks, int numSides){// vec3 points[sides * (sides-1)]; GLfloat curRadius,...
Please Sign up or sign in to vote.
23 Apr 2012
enhzflep
Haven't used glDrawArrays before, though it seems the problem is that your fragmentShader program contains the following text:gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0), \n" " (0.0, 1.0 , 0.0 , 1.0),\n" " (0.0, 0.0 , 0.1 , 1.0);I can't find a single reference on the net to being...
Please Sign up or sign in to vote.
23 Apr 2012
satrio_budidharmawan
Oh, somehow I solved it last night :here's how :Instead of using this :'"attribute vec4 vPosition; \n" "void main() \n" "{ \n" " gl_Position = vPosition; \n" "} \n"; GLbyte fShaderStr[] = "precision mediump float; \n" "void main() \n" "{ \n" " gl_FragColor =...
Please Sign up or sign in to vote.
24 Apr 2012
enhzflep
Howdy.I did something like this a while back. The source is longish and it's midnight here - I'm too tired to compile a list of the steps needed to free yourself from GLUT - or more importantly, draw with openGL into your own window.You may wish to look over the files in this zip:...
Please Sign up or sign in to vote.
3 May 2012
smokindinesh
While drawing lines specify it's color with alpha value glColor4f(R,B,G,A)"A" means alpha value and define the transparency ,if it is equal to 1 then complete Opaque and if 0 then complete transparent.By changing the alpha value of lines,your problem will be solve.After collision make ...
Please Sign up or sign in to vote.
19 May 2012
Stephen Hewison
You have to use the Win32 api to get a full screen form rendering. The following is an example of how to do this:http://stackoverflow.com/questions/2382464/win32-full-screen-and-hiding-taskbar[^]
Please Sign up or sign in to vote.
20 May 2012
Member 8474189
1 alternative  
hello., im going to create memsh viewer/3d model loader and viewer (.3ds or)using openGL.so i found it can done by using windows form.i think it is better than console app. so i need to know how to begin with that. because i think coding are not same. thaks you
Please Sign up or sign in to vote.
5 Jun 2012
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 [^]
Please Sign up or sign in to vote.
14 Jun 2012
JackDingler
I would start by learning OpenGL.See the OpenGL Code Resources for examples on how to do many common OpenGL tasks.Note that there is a disclaimer that the samples have code that isn't supported in 3.1. Don't worry about that for now.I would start with getting 3D lines to intertwine...
Please Sign up or sign in to vote.
10 Aug 2012
Dave Kreskowiak
Unless you draw to some other surface that, itself, can be drawn to the screen, yes, you have to redraw everything. Why? Because if you drag another window acrossed your drawing surface everything will get overwritten on screen and have to be redrawn when the surface come back into view.It...
Please Sign up or sign in to vote.
21 Sep 2012
Santhosh G_
OnSize(UINT nType, int cx, int cy){ // Set viewport widht as cx, and height as cy glViewport( 0, 0, cx, cy ); glMatrixMode( GL_PROJECTION ); glLoadIdentity(); glOrtho( 0, cx, cy, 0, 0, 1 ); m_nWidth = cx; m_nHeight = cy;}You need to redraw all...
Please Sign up or sign in to vote.
3 Nov 2012
Sandeep Mewara
can i get opengl code...No. It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face...
Please Sign up or sign in to vote.
6 Nov 2012
Santhosh G_
I found when rectangle reach the real window width or height, it change direction rather than reach clipping width or height.In simple, the objects drawn in 3D space will be mapped to window area( viewport ). Therefore object drawing is not depend on the window size. The clipping region(...
Please Sign up or sign in to vote.
12 Nov 2012
BobJanova
I can't see where you're adding any geometry to your scene. A shader is typically applied to geometry, even if it's a pixel shader. Try drawing a quad in front of the camera and attaching the pixel shader to that.
Please Sign up or sign in to vote.
14 Dec 2012
jk chan
These are the thing coming to my mind1. Decide a texture format say RGB888 and image size but be a power of 22. assuming you know how to setup basic opengl things(creating context,seting up projection matrix)3. Now load the bitmap , and assign the pixel values to a pointer. say 'p'4....
Please Sign up or sign in to vote.
9 Jan 2013
Santhosh G_
I'm not a game developer, but I'm trying to answer your question.There are different methods to display the above scene.Before preparing your scene you can place all objects in proper place.Quote: A player shoots a bullet on it, then how do I draw the bullet texture on that wall...
Please Sign up or sign in to vote.
22 Jan 2013
Super Lloyd
My latest developments at writing a clean WinRT component exposing a clean yet complete DirectX D3D (and maybe D2D as well) API to C#.
Please Sign up or sign in to vote.
24 Jan 2013
Santhosh G_
I have two suggestions.1. GL_DEPTH_TEST is enabled, but DepthBuffer is not cleared. Please call glClear() to clear depth buffer and color buffer.glClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT );2. Please enable GL_TEXTURE_2D before texture mapping. Inside Texture class you can enable...
Please Sign up or sign in to vote.
26 Mar 2013
Kenneth Haugland
Not a real question, it is more of an request or an assignment. Please search google[^] yourself insted of asking us to do it for you.
Please Sign up or sign in to vote.
14 Apr 2013
Manfred Rudolf Bihy
Here's a short summary of your Options to Output text to a OpenGL window. Survey Of OpenGL Font Technology[^]. They even mention some of the available sample code.Regards,— Manfred
Please Sign up or sign in to vote.
14 Apr 2013
Espen Harlinn
Assuming this for quality rendering of text on an OpenGL capable device:You can start by diving into Chris Greens' Valve Paper[^]You would typically use something like freetype[^] to retrive the outlines of the glyphs used to render the text.Trivial rendering can be achieved by doing...
Please Sign up or sign in to vote.
28 May 2013
Santhosh G_
Please add glut.lib in additional dependencies.Select Project Properties Page.Configuration Properties > Linker > Input > Additional Dependencies.GLUT( OpenGL Utility toolkit is not part VisualStudio.) We need to install glut from any of its...
Please Sign up or sign in to vote.
21 Jun 2013
amsainju
2 alternatives  
Hello, Is it possible to send the gl_FragColor.a value for fragment shader dynamically on the runtime. say for example, user input the alpha value in a text box and the value will be assigned to the gl_FragColor.a variable; my fragment shader code isvoid main(){ gl_FragColor =...
Please Sign up or sign in to vote.
21 Jun 2013
Santhosh G_
Please add a uniform parameter in your glsl shader program.Then set value to this parameter using glGetUniformLocation[To get the parameter id to cpp program] and glUniform [To change the value of parameter]// This value can be changed before rendering a frame.// Whenever you need to...
Please Sign up or sign in to vote.
12 Jul 2013
Maximilien
A minimal kitchen is a simple environment, only blocks (straight surfaces).You want to manually create the scene (i.e. the kitchen) manually with OpenGL calls ? That can be difficult to realize, you will need a lot of maths and geometry background to do that and a lot of trials and...
Please Sign up or sign in to vote.
12 Jul 2013
KarstenK
here is a good starting point:CGLEnabledView - An MDI view class supporting OpenGL[^]
Please Sign up or sign in to vote.
23 Sep 2013
Member 10094479
I got it! After calling Draw function I just add callingsimpleOpenGlControl1.Draw();and now it works very well! :)
Please Sign up or sign in to vote.
26 Sep 2013
Member 10283916
#include #include //Include OpenGL header files, so that we can use OpenGL#ifdef __APPLE__#include #include #else#include #endif#include "bitmap_image.hpp"using namespace std;//Draws the 3D scenevoid drawScene(){ //Clear information from last...
Please Sign up or sign in to vote.
1 Oct 2013
Bartlomiej Filipek
glGenerateMipmap Plus SOIL library
Please Sign up or sign in to vote.
2 Nov 2013
Santhosh G_
In OpenGL ES 2.0, GL_QUADS and GL_POLYGON is not supported. Also fixed function pipeline is disabled in OpenGL ES 2.0. You need to create a shader program, and attach vertex shader and pixel shader with this program. Then set vertex data to the this program. Here is a sample code in...
Please Sign up or sign in to vote.
23 Jan 2014
Krunal Rohit
Did you look at here :Very fast screen capture using DirectX in C#[^]
Please Sign up or sign in to vote.
14 Apr 2014
Domus1919
Hi all,I have a problem.I need to redraw the 3D scene in a OpenGL window ONLY when the content of the array that contain the center of all the cubes that I need to draw, change.This happened at every step of elaboration in a main program, but I need the OpenGL window refresh content...
Please Sign up or sign in to vote.
15 May 2014
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...
Please Sign up or sign in to vote.
12 Jun 2014
Member 10881613
I am using Visual Studio 2010 with an extension of SharpGL library. am still new to this program though, not sure how to begin with. 1. How do i access bitmap image from my drive and save it as an image buffer?2. How do i render the 2D grayscale image(which i initiated into the buffer) to...
Please Sign up or sign in to vote.
25 Jul 2014
KarstenK
I want to use some bmp-texture and some YUV data on a OpenGL output. What is the best strategie: use different OpenGL-"programs" or switch the shaders at runtime.
Please Sign up or sign in to vote.
2 Aug 2014
Bartlomiej Filipek
How to start optimizing the particle system code.
Please Sign up or sign in to vote.
1 Sep 2014
KarstenK
more careful programming woul prevent such error by check pointers for valid values.AnimatedSprite *hero = 0;//use good style....//quick fix display(); glutDisplayFunc(UpdateSpriteAnimation);You better resign your code that display() only loads at startup once, and you use...
Please Sign up or sign in to vote.
19 Nov 2014
Android on Intel
This first installment introduces essential concepts and categories of game engines and middleware to help narrow your choice, including SDK versus Android Native Development Kit (NDK) development.
Please Sign up or sign in to vote.
20 Jan 2015
Android on Intel
This sample demonstrates the use of the extension GL_INTEL_fragment_shader_ordering, which is written against the OpenGL* 4.4 core profile and GLES 3.1 specifications.
Please Sign up or sign in to vote.
2 Mar 2015
Android on Intel
The Murl Engine is a fresh and free solution for cross-platform development. It is focused on games and multimedia applications and is currently supporting Android, iOS, Windows, OS X and Linux* platforms.
Please Sign up or sign in to vote.
9 Jun 2015
Member 11492419
1 alternative  
I made a method called the loadTexture() in my cubeTexture class that has all the code to add texture to the cube. I put this method in the onSurfaceCreated() of the GLSurfaceView Renderer, like this: @Override public void onSurfaceCreated(GL10 gl, EGLConfig config) { ...
Please Sign up or sign in to vote.
10 Jul 2015
Zamrony P. Juhara
Get started with OpenGL ES 2.0 shader programming on Android
Please Sign up or sign in to vote.
21 Sep 2015
Jochen Arndt
You should remove the link from your post. It will be probably counted as spam.Regarding your article you should have received information about the reason why it has not been accepted. See also the Submission Guidelines[^] and the links on top there. For further discussions please use...
Please Sign up or sign in to vote.
29 Sep 2015
CHill60
unistd.h is a unix file.This post[^] discusses windows alternatives for it.
Please Sign up or sign in to vote.
29 Sep 2015
Jochen Arndt
The header file is used on Unix systems. When using Windows, you may try to comment out the lines where it is included. You will probably get some errors then about missing functions. Check then if the missing functions are defined in other Windows specific header files and include those instead...
Please Sign up or sign in to vote.
1 Dec 2015
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.
Please Sign up or sign in to vote.
14 Jan 2016
Android on Intel
This article describes the OpenGLBox sample in the Multi-OS Engine.
Please Sign up or sign in to vote.
14 Jan 2016
Android on Intel
Icy Rocks Workload: A Real Workload for the Android Platform
Please Sign up or sign in to vote.
19 Jan 2016
Jochen Arndt
Just ask your preferred search machine using "opengl drawcircle".I have done that for you and here are some results:The two methods used to create circles in opengl · GitHub[^]How to Draw Circle in OpenGL | OpenGL Projects[^]One result shows that a similar question has been already...
Please Sign up or sign in to vote.
12 Feb 2016
dharmesh.chauhan@yahoo.com
got solution.Before calling glDeleteFramebuffers, it is required to do set current context. following code fixed problem for me: [EAGLContext setCurrentContext:self.context]; glDeleteFramebuffers(1, &defaultFBOName);
Please Sign up or sign in to vote.
18 May 2016
Richard MacCutchan
See Draw an arc opengl - Google Search[^].
Please Sign up or sign in to vote.
1 Jun 2016
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.
Please Sign up or sign in to vote.
30 May 2016
Richard MacCutchan
See OpenGL ES | Android Developers[^].
Please Sign up or sign in to vote.
2 Jan 2017
KarstenK
It looks like you scale the pics some different. Wouldnt it be better to scale them to the same (and fixed) size?Do you have Googled about this issue? (I dont believe it) because the results are fine and I would recommand toe visit the fifth link for some possible solution approaches.
Please Sign up or sign in to vote.
1 Feb 2017
Eowind
In this post, we will look at how to access buffers in OpenGL from your application code to provide your shaders with vertex data and to draw our first triangle.
Please Sign up or sign in to vote.
5 Apr 2017
Patrice T
When you don't understand what your code is doing or why it does what it does, the answer is debugger. Use the debugger to see what your code is doing. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute, it is...
Please Sign up or sign in to vote.
21 Mar 2018
CPallini
Why are you using your own implementation of double linked list when std::list[^] is available (and reliable)? If you really want to use it then you have first to make sure it reliably works, that is write test cases to check it, in isolation (that is without OpenGL interaction).
Please Sign up or sign in to vote.
11 Jul 2018
BerthaDusStuf
1 alternative  
I have around 1 month to learn OpenGL for programming in 3D. I have knowledge of C++ already, I have an alright ability to use classes. I am trying to make a program that will be an online 1v1 sniper game where you have two players on a simple map where the players and the map are built using...
Please Sign up or sign in to vote.
11 Jul 2018
KarstenK
It is a bit difficult to learn, but you can start at this outstanding OpenGL tutorial. But you have also the problems of networking and data protocol for interaction at both players. So be sure that the online features are working before you dive into some OpenGL fine tuning.
Please Sign up or sign in to vote.
23 Jul 2018
Jochen Arndt
You have to include the header file(s) where these functions and types are declared: #include The path depends on where the file has been installed. The above assumes that it is the glad sub directory of the directory where your source file is located. If it is somewhere else you...
Please Sign up or sign in to vote.
11 Sep 2018
EgorYusov
This article describes several strategies to update GPU resources in Diligent Engine (a modern low-level graphic library) as well as important internal details and performance implications related to each method.
Please Sign up or sign in to vote.
22 Dec 2018
EgorYusov
This article introduces the problem of resource state management and synchronization in modern graphics APIs such as Direct3D12 and Vulkan and describes a solution offered by Diligent Engine.
Please Sign up or sign in to vote.
12 Dec 2018
Dave Kreskowiak
You're not understanding the problem. The problem isn't the framework you're picking or the language. It's the fact that you're trying to draw 40,000,000 objects! There is no way you have a monitor with 40,000,000 pixels available, so why are you trying to draw that many objects? The solution...
Please Sign up or sign in to vote.
29 Jan 2019
User 11060979
I'm not sure what your problem exactly is, a.) OpenGL? b.) Calculations? From your question I see you recognized how to come from 3D- XYZ Space to xy(Y) space. Anyway: Here you will find a set of formulas from convert from Spectrum to XYZ on from there to xyY, sRGB, etc. and vice versa (of...
Please Sign up or sign in to vote.
12 Apr 2019
KarstenK
Rick is absolutly right that you arent accessing always the same pointers, but you need write code more carefully and use the debugger. Dont miss: unsigned char * image = NULL; unsigned char * image1 = NULL; For instance it isnt a good to load the image with a incomplete path....
Please Sign up or sign in to vote.
14 May 2019
CPallini
You are assigning double values to the int variable r (and apparently ignoring compiler warnings...).
Please Sign up or sign in to vote.
15 Nov 2019
Michael Adaixo
Loading textures - exploring multi-threading in C++
Please Sign up or sign in to vote.
29 Dec 2019
OriginalGriff
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you. So we need you to do the...
Please Sign up or sign in to vote.
7 Sep 2020
Rick York
If you know how to load a file and make a usable texture from it then you are almost all the way there. To access a texture resource, call LoadBitmap. From there, follow similar steps to what you did with the file's texture. Both methods...
Please Sign up or sign in to vote.
14 Dec 2020
Jeremy C. Ong
Texture encoders and decoders are often the most bandwidth intensive parts of a game and optimized encoding with Arm's ASTC encoder can provide a lot of benefit to runtime decoding.
Please Sign up or sign in to vote.
1 Oct 2015
Android on Intel
Thanks to an x86-based Android tablet Intel loaned me for testing, PhonoPaper has been improved and optimized.
Please Sign up or sign in to vote.
6 Oct 2014
Bartlomiej Filipek
Several code changes that made my particle system faster: SIMD, random number generator, pointer aliasing, memory alignment
Please Sign up or sign in to vote.
6 Jun 2021
OriginalGriff
Do you have any idea how much work explaining code line by line is? Every single line needs a paragraph of explanation! For example: int next = r.Next(); Create a new variable called "next" which can hold a integer value. From...
Please Sign up or sign in to vote.
10 Feb 2010
Death8U
1 alternative  
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,...
Please Sign up or sign in to vote.
7 Dec 2009
fresh_girl
2 alternatives  
please dose any one know how to put an image as a texture in jogl?
Please Sign up or sign in to vote.
22 Dec 2009
gorgeusman
1 alternative  
I need 2D snake game with OpenGL, I have a project and I don't have time, please help me...
Please Sign up or sign in to vote.
22 Dec 2009
CPallini
wrote:i have a project and i dont have timeHaving no time, have you money to buy it?I suggest you to edit your request, as it stands is pointless. :)
Please Sign up or sign in to vote.
27 Jan 2010
Majid Heidary
3 alternatives  
I have a compilation or runtime error when I try to run this code in VC 9.0. Can anybody see where I've slipped up?// Code from Figs. 3.25 3.26 3.27 3.28 // and page 101 of Hill, F.S. "Computer Graphics Using// OpenGL", 2nd edition, Prentice Hall, NJ, 2001.// Modified Sept. 2002 by B.G....
Please Sign up or sign in to vote.
27 Jan 2010
Christian Graus
You need to tell us why you can't run it. Have you installed OpenGL ? What errors do you get ?majidsaba wrote:#include#include#include These are not standard C++, as far as I recall. iostream.h is DEFINITELY not C++. VC is very standards compliant...
Please Sign up or sign in to vote.
27 Jan 2010
Majid Heidary
1 alternative  
with this formula...The “Butterfly Curve”: x-function: sin(t)*(exp(cos(t)) - 2.0*cos(4.0*t) - pow(sin(t/12.0),5.0)); y-function: cos(t)*(exp(cos(t)) - 2.0*cos(4.0*t) - pow(sin(t/12.0),5.0)). how i can render butter fly.see here if you like learn about...
Please Sign up or sign in to vote.
27 Jan 2010
Cedric Moonen
Have a look here[^] for a charting control. You'll still need to feed the points yourself to the control however.
Please Sign up or sign in to vote.
27 Jan 2010
CPallini
The reported message is not an error, it is a warning.You may have a look at both header files to check what is the inconsistency. :)
Please Sign up or sign in to vote.
27 Jan 2010
Christian Graus
majidsaba wrote:// Modified Sept. 2002 by B.G. Nickerson into more// structured C++ code.As I said, this code is not valid C++. You need to tell us1 - that you installed OpenGL2 - what the exact error message is3 - what line of code generates the error
Please Sign up or sign in to vote.
27 May 2010
stanley John
1 alternative  
The program uses GLAux (OpenGL Auxiliary Library) library, which was a part of the GLUT library and is now obsolete. We need to rewrite the program using GLUT./************************************************** solar.c Program to demonstrate how to use a local coordinate...
Please Sign up or sign in to vote.
2 Feb 2010
fresh_girl
1 alternative  
I have a frame that contains buttons ,slider ...etc and I want to add GLJPanel to it as a drawing areahow is it possible???
Please Sign up or sign in to vote.
2 Feb 2010
4277480
Everything is possible with google
Please Sign up or sign in to vote.
17 Feb 2010
archana.srikar
1 alternative  
I have used Display mode as double buffer and when i draw scene is not being displayed i have used swapbuffers, but the same when i used Single buffer is able to render scene.
Please Sign up or sign in to vote.
16 Jun 2010
rafiqsab
2 alternatives  
hi all,I am very much interested in OpenGL, please let me know where can I get OpenGL installer on windows.br/rafiq
Please Sign up or sign in to vote.
11 Mar 2010
bala_48225
7 alternatives  
Hi, I'm having a bit of trouble making a good, nice, round, filled 2D circle in OpenGL. I use GNU C compiler, CodeBlocks IDE and Windows XP. The following code produces an ellipse that looks more like a "tomato" in the sense that it is wide for how tall it is. So the problem is, how to "thin...
Please Sign up or sign in to vote.
10 Mar 2010
Saurabh.Garg
sin and cos expects angle to be in radians and not in degrees.bala_48225 wrote:for (angle=1.0f;angleTry:for(angle=0.0f ; angle-Saurabh
Please Sign up or sign in to vote.
20 Mar 2010
bala_48225
Well, I bought the book Beginning OpenGL Game Programming, 2nd edition from Borders and used the first example project (after I finally got it to compile and everything), and then took their drawing code out and put mine in and modified things like gluLookat() bit by bit and sure enough, I can...
Please Sign up or sign in to vote.
24 Mar 2010
Opul3nce
Okay..assuming you've got all the libraries, PATH and links setup for OpenCv...Build the program...so that you get an executable in the debug folder *the code is correctNow when in dos prompt, under correct location(e.g ect ect\debug) type in filename.exe imagefilename.filetypethe...
Please Sign up or sign in to vote.
23 Mar 2010
uthamanmcadba
1 alternative  
Respected Sir,First of all thank u so much for sharing very useful project. Then i executed the CadSurf project i got the link error......LINK : fatal error LNK1104: cannot open file VKGeom.libPlease tell me the solution for this problem as soon as possible.......Thanks &...
Please Sign up or sign in to vote.
23 Mar 2010
Christian Graus
uthamanmcadba wrote:Please tell me the solution for this problem as soon as possible.......Well, we're obviously going to try to help you as soon as we feel like it. That's how free help works.uthamanmcadba wrote:LINK : fatal error LNK1104: cannot open file VKGeom.libPerhaps when...
Please Sign up or sign in to vote.
26 Mar 2010
Sharjith
This is a problem commonly called as Hidden Line Removal (HRL). There there are trivial tricks to simulate HLR (in OpenGL), one of which is using polygon offset and drawing the offseted object with background color in solid mode and the original object in wireframe mode. However this will...
Please Sign up or sign in to vote.
27 Apr 2010
musaib
2 alternatives  
hello,iam doing a project in opengl called graphic plotter in 2dbut now my professor wants it to be in 3d,,,but i have only 5 days left...can anybody here help me.........i have prepare report also ..
Please Sign up or sign in to vote.
27 Apr 2010
GPUToaster™
http://www.ope...
Please Sign up or sign in to vote.
27 Apr 2010
musaib
gputoaster...c...
Please Sign up or sign in to vote.
17 May 2010
sabrin88
3 alternatives  
slt,j'ai une question qui concerne l'integration open gl dans visuel studio 2008. comment je peut realiser ça?. merciTranslation:Hi, I have a question which relates to OpenGL in Visual Studio 2008. How I can carry out that? Thank you
Please Sign up or sign in to vote.
17 May 2010
GPUToaster™
Go for GLUT, if you are a starter. You will find GLUT libraries on xmission's (Hosted by Nate Robbin) site. Or else you could get the Open Source version from http://freeglut.sourceforge.net.If you want to render your 3D application with OpenGL and don't want to go in deep with traditional...
Please Sign up or sign in to vote.
7 Jun 2010
GPUToaster™
1 alternative  
Hi,I'm trying to load a Texture in an OpenGL context using corona library. OpenGL requires a texture to be of power of two!!1. Why not other texture dimensions? Why it requires only textures of power two?2. How to convert a texture to power of two?Thanks and Regards,GPUToaster.
Please Sign up or sign in to vote.
10 Jun 2010
GPUToaster™
1 alternative  
Hi,I get a "warning C4273: 'glGenBuffersARB' : inconsistent dll linkage" at this line:typedef void (APIENTRY * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);// VBO Extension Function PointersPFNGLGENBUFFERSARBPROC glGenBuffersARB = NULL; // VBO Name Generation...
Please Sign up or sign in to vote.
11 Jun 2010
GPUToaster™
1 alternative  
Is it worth switching to OpenGL 3.0+?
Please Sign up or sign in to vote.
16 Jun 2010
thundersun
1 alternative  
I want to use glReadPixels() to select object in the scene. I gave every object in the scene a different color, but when I use the gluLookAt function to change the view, the glReadPixels() can not get the right color of the object my mouse click, Why? If I don't move,It can select the object my...
Please Sign up or sign in to vote.
16 Jun 2010
Hristo-Bojilov
There's no OpenGL SDK.It's just a standard implemented by OS vendors.It's a part of Windows SDK for example.
Please Sign up or sign in to vote.
23 Jun 2010
parthapal
2 alternatives  
Can i use OGRE3D without DirectX SDK?I want to use OGRE3D with OpenGL as i don't have DirectX SDK installed.
Please Sign up or sign in to vote.
23 Jun 2010
OriginalGriff
Wiki[^] says yes:Wikipedia wrote:OGRE is fully multi-platform, with OpenGL and Direct3D support. It can render the same content on different platforms without the content creator having to take into consideration the different capabilities of each platform. This reduces the complexity of...
Please Sign up or sign in to vote.
1 Aug 2010
King Tran
1 alternative  
glut provide some usfule api to build sphere such as glutSolidSphere() and glutWireSphere(). i want to build a 3D earth like google earth, the texture can change with diffrent resolution and can get the latitude and longitude frome the mouse move. i can not do it with only the glut api.how can...
Please Sign up or sign in to vote.
15 Aug 2010
H.Sohaib Ali
1 alternative  
how to make a menu baar and button in opengl
Please Sign up or sign in to vote.
15 Aug 2010
The Manoj Kumar
I hope that you can use GLUI/GLUT for creating menus in OpenGL. Rest you can google for them.GLUI User Interface Library[^]
Please Sign up or sign in to vote.
29 Aug 2010
EddyBeGood
1 alternative  
How to create 4 views (Half Life MapEditor - 3DSMax style) in a CView window in MFC?
Please Sign up or sign in to vote.
1 Sep 2010
shaginesh.pk
I am using bth Open GL and MFC.When on OpenGl Application is loaded ( code ..... in between )g_hDC = GetDC( g_hWnd );PixelFormat = ChoosePixelFormat( g_hDC, &pfd );SetPixelFormat( g_hDC, PixelFormat, &pfd);g_hRC = wglCreateContext( g_hDC );wglMakeCurrent( g_hDC, g_hRC );At...
Please Sign up or sign in to vote.
2 Sep 2010
Mihai Zaharescu
1 alternative  
Hi :)There is function that generates a texture: void Render(char* Img);At the init of openGL:glutInit(&argc, argv);glutInitWindowSize(w, h);glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);glutCreateWindow("triunghi");glutDisplayFunc(afis);glutIdleFunc(idle);glClearColor(0,...
Please Sign up or sign in to vote.
6 Sep 2010
Mihai Zaharescu
Sorry, the problem was in the buffer, it didn't update correctly...
Please Sign up or sign in to vote.
25 Sep 2010
XavierLee
2 alternatives  
I am begineer in openGL. I want to do deal with some image processing technique and i m using openGL as the api... Since opengl dont have the library to process and load the texture. may i know how to complete the task by include other library. I had search some library file but i dont...
Please Sign up or sign in to vote.
25 Sep 2010
buyong
I think you can begin your code with glut(OpenGL Utility Toolkit).http://www.opengl.org/resources/libraries/glut[^]
Please Sign up or sign in to vote.
3 Oct 2010
sathya_kalyan
1 alternative  
hello jain i'm new to this blog and i'm doing my pg in vlsi design.as part of my thesis i hav chosen the optical flow using L-K algorithm and i would like to hav some suggetions and if possible tutorials on how to frame codes in matlab and verilog hdl.anticipating for ur reply...
Please Sign up or sign in to vote.
4 Oct 2010
Sandeep Mewara
It looks like you want to ask this question to an author related to his/her article. I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum. Please post the same at the...
Please Sign up or sign in to vote.
5 Oct 2010
lrroberb
3 alternatives  
Hi,I want to program a simple card game in VB.NET. When I first did it in 2003 (In regular VB) I used PictureBox. But now a want a bit more advanced version were cards can rotate. The more I look into the subject the more I get confused. GDI is more advanced but does not have rotation....
Please Sign up or sign in to vote.
12 Oct 2010
Bhavana S. Mundada
2 alternatives  
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...
Please Sign up or sign in to vote.
10 Oct 2010
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...
Please Sign up or sign in to vote.
12 Oct 2010
Bhavana S. Mundada
Hi,I am new user of OpenGl Shader. I'm creating a shader for brightness and I am done with creation of shader. I also draw the image on QGlWidget but after that I'm not able to apply gl_fragColor value to Image.Please have a Look at my code and let me know how to use gl_FragColor value...
Please Sign up or sign in to vote.
12 Oct 2010
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,...
Please Sign up or sign in to vote.
19 Oct 2010
gargimails
3 alternatives  
Hello,I am making a GUI using Visual C++ 6.0 in which I have 2 dialogs and I have to draw some textures on both the dialogs using OpenGL.One is the Main Dialog which has a submenu. On clicking the submenu other dialog opens.I am finding two problems here:1) The OnCreate function of...
Please Sign up or sign in to vote.
19 Oct 2010
gargimails
1 alternative  
Hello,I am making a GUI in visual c++6.0 using openGL. For printing the characters on the openGL screen, we make use of glprint command.Is there any command which can clear off what we have printed.For example, if I give a print command in openGL;glprint(10,20,"123",0);Now if I...
Please Sign up or sign in to vote.
19 Oct 2010
dmageiras
There is no "delete" method it in the way you mean it. You just have to draw something on it.
Please Sign up or sign in to vote.
20 Oct 2010
gargimails
Thanks.But I am not much familiar with the ActiveX programming. Could you please elaborate how to go about it if you have tried it earlier?I have searched about it on net, but I am still not very clear how to proceed with its implementation.Whether any additional library or header...
Please Sign up or sign in to vote.
26 Oct 2010
Psilobe
1 alternative  
I'm trying to create a small solar system and render it uding opengl. I got several spheres rotating around origo with planetary textures on them.One of the planets got an atmosphere created by creating a slightly larger sphere at the same position with a texture with alpha...
Please Sign up or sign in to vote.
16 Nov 2010
Member 4337550
1 alternative  
Hello,I have an application that is using the TAO SimpleOpenGlControl. I am rendering surfaces, line and points with no issues into the control but when I try to call the DrawToBitmap method on the control I do not get the redered graphics - I get a solid black image (the control has a red...
Please Sign up or sign in to vote.
16 Nov 2010
Dave Kreskowiak
Your only source of information on this would be the people who made the control. Unfortunately, it doesn't look like they're around any more, so I'd say abandon development using that library and switch to something that IS supported.Since the control is not drawing to a normal Win32...
Please Sign up or sign in to vote.
19 Nov 2010
James_722
Getting the latitude and longitude from the mouse position shouldn't be too difficult. The general approach would be to use gluUnProject() twice with the mouse position as input (once at the near plane and one at the far plane) to get 2 points. use these 2 points to define a line / ray. Then...
Please Sign up or sign in to vote.
27 Nov 2010
Cedrickdeorange
Have a look at the cardgame starter kit on Microsoft. It might help, but at least you have the playing card pics.Hope it helpsRegards Zelacat