782 Topics
![]() | |
I'm working with OpenGL and MFC. I'm able to output text on the view using glCallLists but I'd like to position the text on the screen. How can I do that? I'd appreciate any suggestions.. thanks! | |
I have written a few games in C++ with OpenGL, and I am working on another one now, its my biggest project. Everything works really great on my computer, but whenever I move my executable to another computer, the depth testing completely stops working. I have no idea what causes … | |
Well I made it through my first semester of an MSCS. Almost. This summer I want to build a game. I am trying to understand a little bit of the history of Windows graphics and am a bit confused. There's WinAPI. There's OpenGL. There's DirectX. As I understand it, OpenGL … | |
Im currently trying to work with a program that reads raw DV and dumps each frame in the form of a PPM file. I need to read the PPM's into OpenGL Textures and display them. But that is not the problem. The program has the ability to dump all of … | |
Hey! I'm working with MFC (SDI) and I have 3 views in the window (TreeView, FormView and OpenGL). Everything is working ok. Now I want to add a new item on the TreeView to display on the FormView the details of the selected item, however the new items belong to … | |
Hello, I have a question. I work in visual c++ in a document/view arhitecture (SDI application) and i draw some stuff with some opengl functions (cubes, cylinders) but when i hit the "New" menu from the File menu it doesn't erase or clear my drawing I don't know why. Can … | |
Hello, I have a question. I work in visual c++ in a document/view arhitecture (SDI application) and i draw some stuff with some opengl functions (cubes, cylinders) but when i hit the "New" menu from the File menu it doesn't erase or clear my drawing :( I don't know why. … | |
Hai all, I ran into a strange issue I never experienced before. Pointers are passed to function, the function allocates memory to them with calloc, and right before the return sanity checks if the pointers still != NULL. That check succeeds, but upon returning and sanity checking in the calling … | |
Hi, everybody First of all, i should say i am new at OpenGL programming and thanks to those who may help to solve my problem :) The thing is, i was developing an application which is named Articulated Robot Arm (some of you guys may familiar with this). Everything was … | |
Hi, I have a question about the glut functions in opengl. For example, glutSolidTeapot (GLdouble size) Can anyone tell me if the rendered teapot can be textured and how? I applied textures on gluCylinder or gluSphere very easily : [code] GLUquadricObj *quadratic; // Storage For Our Quadratic Objects quadratic=gluNewQuadric(); // … | |
Hello:) Can you please suggest some good opengl terrain rendering links or books(not to complicated, i am quite a beginner yet). Thanks in advance. | |
Hello, I need to make an application which have to permit to modelate sundries molecules interecative. Could you help me, please ? I never made an opengl application. Thanks! | |
I am familiar with programming culture. I want to start learning 3d games development. I want to know which language is most suitable for sustainable games development- directX or openGl or c++ or some third language??? Please guide me! Thanks & Regards *naina* | |
Hi my names Dan I live in carlisle uk and am basicly on this site because Ive started c++ and am trying to get it mastered :P I am especially interested in game design, but havent learned any openGl or openAl yet, so all the stuff Ive done is text … | |
Hi Guys, So I am trying to use C++ and openGL to create a simple robot arm that will follow a traget on the screen. I am to use Inverse Kinematics and more specifically the Cyclic Coordinate Descent Algorithm. I have found a few different ways to implement this although … | |
hello I implemented a rotating cube in opengl which rotates when the user moves the mouse. I am a beginner with opengl, so i wanted to ask you a question on rotating. here is my code for the rotation : [code] void CDiplomaView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add … | |
dear all friends i am a newcomer, i have a basic questions, i already read one book of openGL, couldn't understand well. my question is how to create a cube and map a texture to it, anyone give me some explanation of work principle to handle this? thanks a lot. … | |
hello i am building an application in Visual c++ 6 and i want to save some variable values. i tried in all ways, until i try just to save a value that i declared right in the "Serialize" function of my CDocument class : [code=cplusplus] void CDiplomaDoc::Serialize(CArchive& ar) { r=3; … | |
Hi all, This is an openGL question, i am using DEVc++ not VC++. I am assuming this is a better place to post than in the C++ section, but i will do there also. Im trying to make an accurate reconstruction of the Temple of Zeus at Nemea as a … | |
Do anybody know about this mapping in the SDL_MapRGB [CODE]SDL_MapRGB(screen->format, R, G, B)[/CODE] The screen is my SDL_Surface. Does this define only a single color. The RGB are Uint8 type and I set them As I wish from 0-256. [CODE]Uint32 color = SDL_MapRGB(screen->format, R, G, B);[/CODE] i don't understand the … | |
dear all any one know howt to use openGL with vc++? i encountered some problem.thanks a lot. why glRectf(x1,y1,x2,y2) can draw a rectangle, here (x1,y1),(x2,y2),just two points,anone can exsplain to me? thanks. sorry to ask such question.no choice! | |
Hello. First time post, please be gentle. I have a graphics card problem; I'll probably try my best to explain the problem and hope someone or anyone can help me find a solution. At any time I have a game that requires the use of OpenGL, I seem to get … | |
Using OpenGL in Visual C++: Part I #1 Jul 14th, 2004 Here is the example i also used to implement an opengl window ready for painting. But the problem is i still have flicker. How can i get rid of it ? pls help me... here is my code : … | |
Hey all. Hopefully this makes sense. I new to this C++ technique. I'm working on a project where a program will take custom html tags and convert them to openGL code that can be pasted in a C++ program. That part works well. My question is how do I take … | |
Hey, I'm relatively new to OpenGL but I have a little experience in C and I was wondering how I would set the pixel coordinates of an OpenGL windows. Its a little hard to explain what I mean but for example if I would like to instead of having (x,y) … | |
hey I'm trying to run this program on netbeans on Ubuntu #include <windows.h> #include <GL/gl.h> #include <GL/glext.h> #include <GL/glu.h> #include <GL/glut.h> void myInit(void) { glClearColor(1.0,0.0,0.0,0.0); glColor3f(0.0f, 0.0f, 1.0f); glPointSize(9.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0.0, 640.0, 0.0, 480.0); } //<<<<<<<<<<<<<<<<<<<<<<<< myDisplay >>>>>>>>>>>>>>>>> void myDisplay(void) { glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_POINTS); glVertex2i(400, 350); glVertex2i(100, 130); glVertex2i(150, 130); … | |
Hi, I'm Matt, i'm a first year BSC Student at Staffordshire University. Currently living in Stafford, but i'm originaly from near London. I'm studying Computer Games Programming. I enjoy programming in my spare time whilst not working on assignments which generally involve programming anyway, i'm currently working with C, openGL … | |
Hello again, i'm trying to make a program that draws a cube on the screen using data inside of a .txt file, this is the code that i've got so far, it compiles and runs but doesnt actualy display anything and i'm not really sure why. its probably something simple … | |
I'm getting Linker errors when trying to compile my OpenGL code with Dev C++, the code compiles perfectly on the university machines using Visual Studio. I've visited several sites that explain how to get openGL to work om Dev C++, and i've followed the steps. -Installed the Dev Pack. -added … | |
What is the easiest way to get a user input string (char array) from within an OpenGL program? It doesn't have to look good, this is just for debugging purposes. Thanks. | |
I have a triangle in my game, that flies around the screen (like a space ship) I am trying to determine collisions for that triangle based on whether or not the lines intersect. However, I am using OpenGL, so when I rotate this triangle, all I do is make a … | |
I have recently been trying to work with OpenGL in Java and decided to go with JOGL to start. I am using SWT for my visuals and I am programming inside the Eclipse IDE. I have found plenty of interesting uses for OpenGL, but once I have more than one … | |
Hi. I know some java and a fair amount of c++. I can get my hands on the free borland compiler at least. I'll be happy to use something higher level if it makes the job alot simpler. My goal/desire: write a program that can build and display a 3 … | |
Hello, I am another Missouri programmer. I have a Bachlors of Science Degree in Computer Science from Maryville University. Prior to college, I programmed HTML in high school back when high school only bought the computers to run up their electric bill rather than letting people use them. I then … | |
I'm learning OpenGL for a class and for the lulz and I'm trying to write a program that does the following: -Open a 500x500 window with a 10x10 grid of black squares with a 1 pixel white border around them. (done, works) -Make the window resize without it going wonky. … | |
Quick question: what is OpenGL? Is it an equivalent to DirectX? | |
Hii, can u plz help me how to generate and bind texture for Quadric Object like Cylinder, sphere. How to mention Texture Coordinates for this Quadrics. | |
I cannot link GL Utility Toolkit (lack know-how), so I need a way using only [ICODE]gl/gl.h[/ICODE] and [ICODE]windows.h[/ICODE] to get keyboard input. Help please! | |
Hi all on my first post! I've a little issue with my final year project, i need to "translate" some STP code (Solid Works) in a simply 3 points coordinates that can be easy understood by Opengl (x,y,z). I would know if there is some application, dll or open library … | |
I am writing a plugin for motionbuilder and need to use some opengl toolkits which are based on Glut. The problem I have is that inside motionbuilder I already have a window and an opengl context created using the SDK for motionbuilder. But with Glut it wants to create its … | |
Hey, I just started learning OpenGL. I have a problem understanding the coordinate system. [code] glVertex2d(1,2); [/code] Now obviously, the coordinates aren't in pixels. The problem is I want to mark pixels on my windows and I can't figure how to do this. How big is one unit? I tried … | |
This is a 3DS max loader in Delphi6. The program always end with an access violation in memory, somwhere in the T3DObject.Create section, when it is called from an another class. (first occur in TChunk.Load3Data when AddObject is called) Why? How can it be solved? [ICODE]unit Unit3DS_11; interface uses Windows, … | |
Aight, so I know I just posted a few hours ago but I promise that after this bug I'll not posted for a couple of days... or weeks. Aight, so I have two classes -> Connection, and SocketServer (which is inside of "socket.h" and "socket.cpp"). Inside of Connection.cpp, the code … | |
Hello there, I'm very new to C++ and I'm mainly using it for graphics using the opengl libraries. Anyway, I'm having trouble with some initialisation. I am writing a file reader class that will read a file containing vertex and face data for a series of polygons. Data.h [CODE]#ifndef _DATA_H_ … | |
hii all, I am doing a small puzzle game in glut. there i want to display numbers in Glut (opengl). can u plz help me | |
[B]How can I load an image to my code so i can make it as a background or I apply any function on it like rotate and scale only what I need is the function to load a(.jpeg or .bmp) and where to put it in my code[/B] #include "stdafx.h" … | |
I am trying to write an openGL application from a tutorial I found and tried to copy it as accurately as possible without just copy+pasting it, so I can actually learn the code. The source file from the tutorial compiles and runs perfectly, but my code fails at a call … | |
hi I have a practical exam after 1 hour and i dont know how can i write a 3D rotate function 3D scale 3D translate i need it in general form our teacher has a weak knowledge about his subject plz anyone can help me | |
Hi everyone, I created a quite complex model in 3d studio max, then I converted it to an .obj file. In 3dsm I put the textures, everything looks fine. Then, when I load the object file it's gray again. I tried the following: - read the texture file (BMP) - … | |
I am a 4th year undergraduate student following a special degree in bioinformatics/computational biology. i have 'some' programming knowledge in JAVA, javascripting, VB.net, VB6, SQL, PHP, HTML, prolog, OpenGL and someknowledge in MATLAB. im thinking of doing my project in JAVA. But i dont have a clear idea about a … |
The End.