782 Topics
![]() | |
Ok, so this is how things stand now. I've read few books about C++ console programming, C++ console game programming, I'm doing C++ on school and I can say I'm pretty good at it. Now, I'd like to move on the next step, to program in C++ with graphics, sound, … | |
Hello, I have been attempting to create a fast class for OpenGL's Vertex Buffer Objects. I finally got all the libraries to work and now i am getting a sigseg but cant see why. Can someone find my error? (I will keep looking too) [CODE]#ifndef GLMODELS_H #define GLMODELS_H #ifndef GOODGL … | |
Hi I wasn't sure if this was the right section or not How is a GUI implemented in modern operating system. Currently I use win32 code to generate a window and then use openGl with C++ to generate the application. How is explorer.exe (the windows interface) designed and built. Does … | |
Hello!... :) It's been a long time since my last visit to this forum. My question is: Why MD3 Models are divided into different parts (head, torso, legs)? I myself made a model with animations with only a part (the full model) in C++/OpenGL and worked just fine! I dont … | |
I'm not sure where this post fits, but after staggering here and there I Thought I would throw it here! I find difficult to make coordinates by hand (Not very good at x-y-z though I know the XY coordinate). Is there a tool that will allow you to draw let … | |
Ok, first of all, I'm not sure if this belongs to C section. Since WinAPI is written in C, I'll post here. I'm using OpenGL with Win32 windows (not sure how to call that). I can't switch to fullscreen mode after creating the window. I'm using Windows 7 (64-bits) and … | |
So I got curious with OpenGL and I ended up having a copy of the "redbook", as people call it. Initially when I tried relying only on online sources like tutorials and whatnot they were all written using WinMain which was a drag so that sort of put me away … | |
Hello Daniweb Community.. I'm currently pursuing Bachelor Degree in Computer Science, and currently brainstorming some ideas for my Graduation Project. My interests include Compiler Theory and Game programming. I've been using XNA for years and some OpenGL. I've came up with an idea that I'm hammering right now for flaws … | |
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 … | |
I have an JOGL based opengl program that uses textures on flat surfaces. After a texture is put on a surface, it will eventually crash. If the textures are small, it takes a while. I managed to reproduce it with a simple program: [CODE] package org.yourorghere; import com.sun.opengl.util.Animator; import com.sun.opengl.util.texture.Texture; … | |
I am developing an OpenGL application (mostly 2D Ortho) compiled in gcc. As a requirement, in order to offer remote online tech support for the application, I need to be able to view and control this application remotely from time to time using something like VNC viewer. I tried using … | |
Hi, I am writting a game engine for my fps game that uses C++ as the language and OpenGL as the renderer. I find though that the graphics are looking more like Half-Life 1 rather than Half-Life 2 (if you know what I mean). Even though both these games used … | |
Hello all! I'm having problems with running c++ on iOS. I have a iOS openGL project in Xcode 4 and an external library written in c++ that has to be a dependency to the iOS target so it can run on an Ipad. right now I'm testing with the iPad … | |
I have reinstalled my compiler successfully (finally) and got right back to work. I have created a glModel class as follows: [CODE]class glModel { private: int numv; int numn; unsigned int model; unsigned int textu; unsigned int norma; float *vars; float *norm; public: glModel():numv(0),numn(0){vex=new float[1];tex=new float[1];nex=new float[1];} glModel& Vertex(float tx, … | |
Hello World ! I have problem regarding background music in my 3D scene demo in openGL..anybody knows a simple source code to load audio files in openGL? | |
Hey I am a real amateur and I am trying to teach myself and I have been following the tutorials at [url]http://www.youtube.com/watch?v=VJGqalveGmM[/url] and I am just not able to get it to work, any help would be greatly appreciated. This is the error I am getting, I have been doing … | |
I am working on the menu of a 3D symbian3 game.I am trying to load a png image of size 91 by12 using GFloat(opengl function) vertices_of_image[ ].....but the text in the image is coming out to be wrapped around. i.e.if my text contains ROCKS...then a portion of the alphabet S … | |
Hi, I have a question and I apologize if it is too newbish. I have been for a while now trying to learn OpenGL but I cannot understand how its coordinate systems works. I know coordinate geometry as I did some math long ago as well as equations (linear, polynomial … | |
Hi, I am writing a game in C++ and OpenGL. My whole environment is based on cubes so I guessed bounding box collisions were best. I can currently move around and my program is detecting collisions (I used this tutorial: [url]http://www.3dcodingtutorial.com/Collision-Detection/Collision-Boxes.html[/url]). Now I want to make it so that when … | |
I am having some major issues with OpenGL textures. I have the following code to load a glTexture (typedef ed as a GLuint): [CODE]glTexture LoadBMP(const char *fname) { HBITMAP hBMP; BITMAP BMP; glTexture texid; glGenTextures(1, &texid); hBMP=(HBITMAP)LoadImage(GetModuleHandle(NULL), fname, IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION | LR_LOADFROMFILE ); if (!hBMP) return NULL; GetObject(hBMP, … | |
Is there any software out there that can help me create 3d models for use with OpenGL drawing of models (i.e: triangles, square and polygons in 3d space). I need to be able to make polygons in 3d and be able to access the values of the vertexes. Does anybody … | |
I decided to post this problem in a new thread. I have a simple program in OpenGL and it doesn't work. What happens is that a transparent window forms and when you hit the 'X' it says that the Release of the Device Context and Rendering Context failed. Here is … | |
ookay people, here is the code c++; im trying to read BMP image file. [CODE]#include <iostream> #include <fstream> using namespace std; void listing (void) { unsigned char pixel; int x, pix; ofstream debug("debug.txt", ios::out); ifstream inpaint( "source.bmp",ios::binary); if(!inpaint) { cout << "File not opened\n"; exit(1); } for(x=1; x<=54; x++) { … | |
Can somebody help me, I wish to learn OpenGL and I don't understand how to set it up. I am using a windows XP machine with Code::Blocks 8.2 and MingGW. How do I get OpenGL working? | |
When I put crosshair (glutSolidCube()) at screen centre..it is affected by MOdelview transformation...how to hold it at screen centre this cube...(crosshair)...help me ... | |
Hello World ! I have problem regarding displaying a text which should not be affected by model view transformation...I have to display a cross-hair at the center screen for targetting enemies...when I put cross hair in the middle of center, it gets affected by some model view trasformation...as in pC … | |
Hello everyone! I have found a really weird result when I display a 2D texture (with GL_QUAD) on the screen at a different size to what it normally is: E.G when I display a 64x32 image(texture) on the screen at 128x64 and it contains an alpha channel the pixelated borders … | |
Hello World ! How to load a Bitmap image or any other format in openGL ? I am so much confused where I need to begin my innings ? confused while studying lot of theories and concepts...plz can anyone tell me the steps from starting altough i have read some … | |
So, I've bought two books, one on DirectX 10 and one on OpenGL. The first one i bought was the directX 10 book, and NONE of the code compiled because of some LPCSTR error. So stupid me thinking it was another thing that microsoft goofed on i bought a book … | |
I am trying to render a car using OpenGL. The car has a chassis and 4 wheels. The chassis is simply a cuboid and the wheels are cylinders. I have their positions from the Bullet physics engine as openGL matrices. If I pass these matrices to glMultMatrixf() in turn and … | |
Good afternoon all! As an exercise to help keep my coding up to date, and to try new things, I figured I'd make a 2D topdown RPG. A basic dungeoncrawler. Now, I've come across a great deal of tutorials for console RPG's that do the same thing, but none of … | |
Hello world ! I am beginner in openGL and really facing difficulties while learning it. I have a question and getting confused about the usage of GL_PROJECTIOn and GL_MODELVIEW and also about glLoadIdentity(). I am struggling, this concept has consumed several hours of mine. So from World, anyone who can … | |
So I'm learning OpenGL on my own and I have to say I'm really liking it. I really have not been able to do much, you'd laugh if i told you how much i knew but are there any real techniques for drawing shapes? I'm having trouble trying to figure … | |
Hello World ! I want to move a rectangle from going one point to another point in openGl. I am reaching the position but movement is so fast when I execute the program..it already in reached state. how to add delay so that I can see moving rectangle. | |
Hi, I am writing an FPS game in C++ using OpenGL. I am trying to write the crouch system but I want to make the crouch more smooth. At the moment you press the crouch key the character immediatly moves down. Here is the code: Crouch Down: [CODE] entity[0].crouching = … | |
I am currently writing a program that uses OpenGL and so it uses the include file: #include <GL/glut.h> Now when I try to compile and run the program I get this message in the error folder: "fatal error C1083: Cannot open include file: 'glut': No such file or directory" Lastly, … | |
Hello, How can I calculate the normal vector giving a vertex on a 2D plane in OpenGL. ? All what I read was all about 3D and cross product of two vectors. the only thing that I have is that vertex and I want to construct a vector coming out … | |
I am Rishikeshan :) I am 14 years old. :) I am a student. :) I live in Trincomalee, Sri Lanka. Hair : Black. Eyes : Black. I know to program using c (opengl, libcurl, stdlib, tinythreads++), c++ (opengl, libcurl, stdlib, tinythreads++), vb, vbdos, vb.net, sql (postgresql, mysql), apache web … | |
Hello, for a project on network simulation I need to show graphical representation of the graph.Which library files can I use for the purpose?Should i switch to OpenGL.I know nothing about graphics in C++ right now.Please help. Regards. | |
Hi guys, I've got a question that hopefully someone can answer. I have a file that contains the following structure: g hub f 100 200 300 12 f 356 403 345 484 f 333 212 1203 393 g door glass f 323 9292 383 f 32 3838 3939 f 1231 … | |
I'm starting to write more intricate code that does some dynamic compilation through Lua and OpenGL. However, my code is starting to get kinda messy because I have many const char* strings and strings in sections of my code so they can be parsed together properly depending on specific conditions. … | |
Hey guys, I have a really quick and hopefully easy question for you all. I'm trying to read in and store some floating point numbers from a file into an array. The lines look like: [B]boom.txt:[/B] [CODE] v 0.000034 0.44556 0.34444 v 4.000 1.0 1.0 v 4.00056 1.2003030 4.000 [/CODE] … | |
Hi, I'd like to learn some basic graphics (2D) that would be easy to use and quick (So no OpenGL, or Direct X). Also, it NEEDs to have Linux portability. I've already tried Allegro and paintlib, neither of them could I install and they didn't look quite as easy as … | |
![]() | I'm trying to get the objects I draw on the screen when I press the up and down arrows. This is the code I have so far but I don't know how to call redrawRoom() from the keyPressed() method. [CODE=java]import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.media.opengl.*; import javax.media.opengl.awt.GLCanvas; import … |
I am a humble programmer who is about to lose his remaining sanity at trying to get FTGL and/or FreeType working with Visual Studio 2010. FTGL is version 2.1.2 and FreeType is version 2.4.4. Inside of the project directory I have freetype.dll and ftgl_dynamic_MT_d.dll, and I have linked to the … | |
Hey guys, I just started to try and use OpenGL and I wanted to run an example but I get linker errors. The code is just fine but it has linker errors says the console. Linker Errors/Console: [CODE] [Linker error] undefined reference to `glFinish@0' [Linker error] undefined reference to `wglSwapBuffers@4' … | |
Hi, I actually don't really know where I should post this question so please forgive me if it's in the wrong discussion section. Basically, I'm developing a CUDA program to calculate the FFT power spectrum of a series of images which are captured continuously and want to show the power … |
The End.