124 Unanswered Topics
Remove Filter ![]() | |
Hey. I've been working on a home brew game since late last year, writing an engine in Haskell and GLSL that includes 3D graphics, basic physics and programmable game logic. The version in the second video shows the first appearance of lighting and importation of OBJ files (the cube was … | |
Hello everyone, I am trying to write an object loader in c++. Currently, I have a file that is made up of many sub objects and I am having a little difficulty figuring out how to process the data. First of all, here is an example of part of the … | |
Hi, I have a C++ code running OpenGL GUI (CEGUI), I need to wrap this window inside a C# Application. I guess I will compile the C++ as a dll, and add entry points for the C# app. What is the preffered way to do this? I thought of these … | |
import java.awt.Frame; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.media.opengl.*; import javax.media.opengl.awt.GLCanvas; import javax.media.opengl.glu.*; import com.sun.opengl.util.Animator; import com.sun.opengl.util.FPSAnimator; public class Object3D implements GLEventListener, KeyListener { GLProfile glp; GLCapabilities caps; GLCanvas canvas; GLU glu; float rotX = 0.0f; // Rotate screen on x axis float rotY = 0.0f; // … | |
i would like to develop opengl apps on windows using c++ how do i get the proper header files and linker libaries im using mingw compiler at the moment on windows 7 x64. | |
ok, so I'm kindof a complete noob when it comes to stuff dealing with windows specifically... I know it's possible to have an interactive OpenGL desktop BG in XP as [this article](http://engineering.imvu.com/2010/11/24/how-to-write-an-interactive-60-hz-desktop-application/) proves it works in C++. but I want to get it working in python and have no idea … | |
Ok so the last couple of days i have been atempting to make a voxel engine for a cube world, i am intermediate in c++ and beyond the basics in opengl, i have a basic thought as to how the engine will fucnction. the Engine: - programmed in c++ - … | |
Hi everyone, i'm working with tao framework and i trying to make animation for my models from glut libraries but animation with using glut doesn't work (after compiling program closes) :( I tried found exception by try-catch but there are not exceptions. If drawing across vertex that animation will work. … | |
i'm found this piece of code on internet about how to load multi texture in opengl es 2.0: // // Book: OpenGL(R) ES 2.0 Programming Guide // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner // ISBN-10: 0321502795 // ISBN-13: 9780321502797 // Publisher: Addison-Wesley Professional // URLs: http://safari.informit.com/9780321563835 // http://www.opengles-book.com // … | |
Hey guys, I'm trying to learn OpenGL ES 2.0, from http://developer.android.com . From 3 days, I'm trying to do the drawing shapes part, but my shape (triangle) won't draw on the screen. My Android Version is 2.3 and I'm debuging via USB. There is my project: http://www.speedyshare.com/QJcFZ/AndroidChessProject.rar I would be … | |
Hello everyone, I need OpenGL 2D War Plane Game Source Codes. If you have , write me please | |
Hello, Unfortunately I learnt OpenGL from NeHe tutorials, which means that all of my current methods for OpenGL-ing are extremely deprecated. I tried to find a more up-to-date tutorial, but all they seem to do is teach how to get really complicated stuff out of OpenGL. I just want to … | |
Can someone please help me understand what the glMatrixMode() function does? I've read the API and looked on google but I cannot understand what it does. An anology or example would help. Thanks. | |
I am trying to create a triangle in openGL 2.0 but some some reason background is shows up but no triangle. I am following this tutorial: http://developer.android.com/training/graphics/opengl/environment.html i have the same code as on tutorial but for some reason the triangle is not showing up. may be i missed some … | |
HI, I am trying to set the consecutive pixels to a specific color so as to obtain a line. Though, I know there is a built in function for drawing the line, but I am interested to do it without using any GL primitive. This is the display function as … | |
Hi guys. I'm trying to render an Image in screen & to rotate it about Z-axis. I'm not allowed to use standard glRotate() from the OpenGL because it is not available in our portable device library. I want to know how glRotate() works & i want to reflect it in … | |
Hi all, I'm about to learn OpenGL. So I want to know a good IDE that I will write my code. Also I need a good reference -like a book- to help me. any advice will be appreciated as I new in games developing world and hope to get involved … | |
Hi guys I'm trying to use WndProc as a member function, but no matter what I do, I always get a null handle. One thing I'm uncertain of is that when my StaticWndProc is called, the p_hWnd is null. Is that correct? Once it leaves the function it remains null … | |
hey guys, I am currently having problems with my OpenGL ES 2.0 application. I think I may have done my matrices wrong im not sure, but I cannot see my quad rendered to the screen. I believe it is something to do with the matrices I have set up which … | |
Hey I have a problem regarding skewness of non square objects when i scale them with respect to screen size and then rotate them in an orthographic view on the z axis. This is my code for setting it up to draw. The problem i am facing is that when … | |
I am looking to develop a small development library that will enable me to speed-up construction of architectural and environmental visualisations (landscapes, cities etc). Super Graphical realism is NOT the priority, but i would like what i do to be relatively future-proof (i know how fast things change in the … | |
I found [here](http://zach.in.tu-clausthal.de/teaching/cg_literatur/frame_buffer_objects.html) an article about how to use the Frame Buffer Object in OpenGL,the only problem is my compiler gives an error on compilation `glGenFramebuffersEXT' undeclared (first use this function) " My question is , what are the FBO functions for OpenGL version 1.3 ,if there aren't any how … | |
I'm trying to visualize a model of lenticular images virtually with opengl pov-ray seen that it is possible by making an array of semi-cylinder lens in front of the square in POV-Ray to "play" Anyone know how to do with opengl? tks | |
IM A COMPLETE TOOL PLEASE IGNORE / DELETE THIS POST Hello everybody, im currently trying to learn 3d game development (ive developed 2d games in the past, nothing this complex, i am a third year programming student). Ive been working on this project in my spare time for the past … | |
I wrote a program to simulate a simple page flip animation in opengl and now i'm trying to replicate it with two images using texture mapping so that the second image appears on the "back" of the first image during the drag of the lower left corner of the page. … | |
I am making a project where i have a rotating and moving 3d cube and on click of any face of cube, that face should be enlarged. All the six faces of cube should have different images. I searched a lot but doesn't get any working. Any help regarding this … | |
HI all. I have a problem regarding how to drawing a crescent using opengl. i recently learn this opengl so i dont have much idea how to do it, here is what i have so far. void drawCrescentTriStrip(float step,float scale,float fullness) { glBegin(GL_TRIANGLE_STRIP); glColor3f(1.0, 1.0, 0.0); // glVertex2f(0.9f,scale); const float … | |
Basically I have created a sprite sheet/tileset with dimentions of 320 x 2048, the tiles are each 32 x 32. I've been able to load individual files with textures in them but I don't seem to be able to load textures from a sprite sheet. Any help ? Here is … | |
Hello, I am trying to make an OpenGL Hearts game ( like the one from windows 7 or such) but I expected some problems. First I will show you the code that iv done untill now : Card.h: #ifndef Card_H #define Card_H //#include <GL/glut.h> //#include <SOIL.h> #include <stdlib.h> class Card … | |
I want to use opengl to draw some stuff, not to the screen but to a data buffer instead. Is this possible? IE: uint32_t *data; glSetDrawTarget(data,GL_RGBA|GL_UNSIGNED_INT_8_8_8_8);//this is the line I cannot figuro out how to do glBegin(GL_TRIANGLES); //... glEnd(); //and now my buffer is full of custom data glSetDrawTarget(NULL,NULL);//reset to … | |
How do I make the coordinate system in DirectX 11 relative to the top left of the screen? I've setup an orthographic projection matrix, so that I can use screen coordinates but it makes more sense to me to have a top left origin, since I come from working with … | |
After the program passes the following code lines GL.Begin(BeginMode.Quads); { // passing arguments separately, for performance GL.TexCoord2(0, 0); GL.Vertex2(left, top); GL.TexCoord2(0, maxV); GL.Vertex2(left, bottom); GL.TexCoord2(maxU, maxV); GL.Vertex2(right, bottom); GL.TexCoord2(maxU, 0); GL.Vertex2(right, top); } GL.End(); the alpha values of all the verteces in the program become less than 1(everything becomes transperant). … | |
I have the following code to draw a scene to opengl, but nothing shows up, just a blank screen! void glCameraDraw(const LABglCameraHANDLE h, LABglWindowHANDLE LABglGlobals) { if (!h->isProjected)//check to see if h's projection is loaded { glMatrixMode(GL_PROJECTION); glLoadIdentity(); //LABglGlobals->LABglDimensions are the screen dimensions gluPerspective(h->fov,(float)LABglGlobals->LABglDimensions.right/ (float)LABglGlobals->LABglDimensions.bottom, h->front,h->back); h->isProjected=true; } //set the … | |
Hello I am working on small 2D game with OpenGL. My qeustion is it possible to write a polygon class where user can define: shape of polygon in renderer, multiple textures for this polygon ? Thanks for advice | |
So i was simply following one of the opengl tutorials - http://nehe.gamedev.net/tutorial/loading_and_moving_through_a_3d_world/22003/ So everything works completely fine except one thing, when i load in textures with SOIL lib its not completely correct, but with GLAUX lib it works just fine but i dont prefer using GLAUX. Here is what i … | |
Hi there! I'm currently working on a school project using a Kinect device. Me and my friend decided that we wanted to create the same 3D effect as [url=http://www.youtube.com/watch?v=Jd3-eiid-Uw]this[/url] guy (Using our Kinect instead of using a Wii). We've made everything work perfectly, and we actually get a really cool … | |
Hello again.:icon_smile: My new PC Toshiba SATELITE C660 with processor intel Pentium inside with nvidia GEFORCE with CUDA and with Windows 7 is much more slower in OpenGL 3.3 programming with freeglut than my old PC Toshiba SATELITE M70 with processor intel Centrino with RADEON X700 with Windows XP in … | |
I want to add an icon to my C command line project in Xcode. Is there a way to do this? if so please tell me how. Thank you. EDIT: it is an openGL project | |
The speed of this system is incredibly high. On my computer, for example it produces 1100 fps at a 1920x1080 resolution, on the DirectX mode. Currently for Ogre3D engine. Implemented: Phases of the moon The motion of the moon and sun Changing the color of illumination Time system with a … | |
In my program you should be able to look around smoothly with the mouse, my code works, but I'm wondering if there is any better, smoother way of doing this. My code to get the mouse position as if the center of the window was 0,0 (LookAround() is the passive … | |
Been struggling with this the past hour, so need some help. I'm trying to light my screen with objects that already have set color values glColor3f... I've included the glColorMaterial and its enable within my lighting function however, it lights the scene with the last set color which is red … | |
can anyone help me in dividing the opengl viewport into two equal parts so that i display my primitives in the left and black out the right side part... | |
I was wondering if there is any way to have a chameleon effect such as in Oblivion, or "Active Camo" from the Halo series . I'm assuming GLSL will be involved. | |
I am using GL_TRIANGLE_STRIP to draw my terrain to the screen, however when I compile and run the program I get nothing. When I change GL_TRIANGLE_STRIP to GL_LINES it shows up and works. What can I do to get it working with GL_TRIANGLE_STRIP? here is my draw code: [CODE] void … | |
Dear Friends I am wirting an application for drawing a rectangle on the screen using opengl and mfc. So I implemented the OnPaint function, OnDraw function is also giving the same problem. It's drawing fine. I want to implement pan, zoom, and rotate functionalities. Now everytime the mouse moves I … | |
![]() | Hello everyone ! I want to know what have I to for make a 3D environment ? I know how to use 3D Max 2010, but, if I do a "player", what extension need to have for use it ? And what "library" (OpenGL, etc.) should I use for this … |
For our android app project, we will be developing on java eclipse I am going to use opengl for graphics part. but what data structure should I use for the gameplay? | |
I try to make the triangle move smoothly but instead the triangle is gone when I enter move button. WHY? can someone please check and tell me what is the problem? it can move without dt( in my code for elapse time).[CODE] #include <windows.h> #include <GL/gl.h> #include <GL/glut.h> #include <time.h> … | |
When I try to call wglMakeCurrent, I get an access violation. My program only runs in one thread and one window, and I've got a valid device context and rendering context, I can't see what the problem is. I'm using VC++ 2010 and am running Widows 7 64-bit. [code=c++] static … | |
I have written a code but I am getting run time error : I have introduced all the error functions , but no error comes . Debug it with gdb which says : Starting program: /home/sudhanshu/OpenGL_ES/example/cube/cube [Thread debugging using libthread_db enabled] Program exited normally. What is the problem I am … |
The End.