782 Topics

Member Avatar for
Member Avatar for e_pech

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!

Member Avatar for Duoas
0
250
Member Avatar for prushik

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 …

Member Avatar for jephthah
0
131
Member Avatar for drichird

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 …

Member Avatar for Grigor
0
166
Member Avatar for petzoldt01

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 …

Member Avatar for petzoldt01
0
358
Member Avatar for e_pech

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 …

Member Avatar for e_pech
0
431
Member Avatar for noraantonia

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 …

Member Avatar for noraantonia
0
91
Member Avatar for noraantonia

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. …

Member Avatar for mitrmkar
0
191
Member Avatar for Clockowl

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 …

Member Avatar for Clockowl
0
102
Member Avatar for beloveds

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 …

0
195
Member Avatar for noraantonia

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(); // …

0
70
Member Avatar for noraantonia

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.

Member Avatar for wtf4096
0
242
Member Avatar for m-soft

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!

0
67
Member Avatar for naina_gill

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*

Member Avatar for naina_gill
0
132
Member Avatar for Raptoricus

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 …

Member Avatar for zandiago
0
61
Member Avatar for rok92

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 …

0
49
Member Avatar for noraantonia

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 …

0
70
Member Avatar for lizhiyuan

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. …

Member Avatar for lizhiyuan
0
89
Member Avatar for noraantonia

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; …

Member Avatar for Ancient Dragon
0
137
Member Avatar for paracavern

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 …

Member Avatar for paracavern
0
129
Member Avatar for slacke

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 …

Member Avatar for slacke
0
178
Member Avatar for lizhiyuan

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!

Member Avatar for Nick Evan
0
147
Member Avatar for Terry.Yang

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 …

Member Avatar for noraantonia
0
296
Member Avatar for noraantonia

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 : …

0
87
Member Avatar for metropolisiii

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 …

Member Avatar for Ancient Dragon
0
70
Member Avatar for bops

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) …

Member Avatar for bops
0
185
Member Avatar for madfrenzy

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); …

Member Avatar for Comrade Ogilvy
0
115
Member Avatar for midimatt

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 …

Member Avatar for zandiago
0
52
Member Avatar for midimatt

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 …

Member Avatar for midimatt
0
2K
Member Avatar for midimatt

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 …

Member Avatar for midimatt
1
356
Member Avatar for prushik

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.

Member Avatar for prushik
0
86
Member Avatar for prushik

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 …

Member Avatar for MattEvans
0
139
Member Avatar for petzoldt01

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 …

Member Avatar for Ezzaral
0
175
Member Avatar for kishjeff

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 …

Member Avatar for rick22
0
231
Member Avatar for Bushido Hacks

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 …

Member Avatar for richie513
0
121
Member Avatar for Icetigris

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. …

0
59
Member Avatar for CoolGamer48
Member Avatar for John A
0
132
Member Avatar for mjmythili

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.

Member Avatar for MattEvans
0
48
Member Avatar for venomlash

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!

Member Avatar for zhelih
0
599
Member Avatar for Jau

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 …

0
68
Member Avatar for depsch

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 …

Member Avatar for depsch
0
117
Member Avatar for jetru

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 …

Member Avatar for Salem
0
60
Member Avatar for TSeven

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, …

Member Avatar for Duoas
0
646
Member Avatar for benshums

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 …

Member Avatar for benshums
0
133
Member Avatar for Quakes

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_ …

Member Avatar for Quakes
0
131
Member Avatar for mjmythili

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

Member Avatar for FireNet
0
143
Member Avatar for likeno1

[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" …

0
63
Member Avatar for death_oclock

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 …

0
133
Member Avatar for cmoodc

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

Member Avatar for invisal
0
94
Member Avatar for Chaster

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) - …

0
62
Member Avatar for N_ss

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 …

Member Avatar for ithelp
0
86

The End.