Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! Let me know if you need help using the site or assistance with non-technical questions.

 
Time Tested OpenGL Game Programming Solutions: 76 - 100 of 158
 
hi all, how to texture map a cylinder sphere or any arbitrary object in opengl.i want the entire commands not any LINKS. prabhu
Hello experts! Down below in the code snippet you will see that I load a texture, then bind the ID. I will complete this operation multiple times before finally using the actual id to ...
I am making a particle system with point sprites. I am using a basic texture (a white circle with a blackbackground) as the sprite textures. I cant seem to get the particles to have alpha blen...
Hi, I am porting a code written in DirectX to OpenGL. In the program, I am mapping a texture to a vertex buffer and I am using linear interpolation. The problem is that output of the Direct...
Hi, Take the following code for an example: From my own class... void Line::OnLeftMouseButtonDown(int x, int y, WPARAM status) {    m_StartPoint.x = -1.0 + ((2.0/1024.0f) * x);    ...
Basically I have written a Cube class. It has a member variable that determines the location it should be drawn in. I set the coordinates then call its Draw method. This Pushes the current mat...
I have created openGL  window using GLUT in VC++ console win32 application, but I want to add panel and push buttons to it........ I have read about GLUI ...is there any other way to solve pro...
I am seeing bizar sheduling behaviour with opengl on different types of graphics hardware. There is apparantly a big difference between nvidia and ati opengl drivers as far as blocking is con...
Hi,      I am new to OpenGl and I am stuck trying to generate a 3D Hemisphere . Can any one help ASAP.. Thanks! Anita
I am a Visual effects student. My primary tools are Maya and 3D Max. For a while I have been applying for jobs, and some companies are requiring me to give effects like fire explosion, and smo...
Hi Experts, Does anyone know of a .NET class which hosts an OpenGL window for C#?  I'll be using Visual C# .NET 2008. Thank you! Mike
Hi, i am giving 1000 point to the person who can help mi program a simple OpenGL application, complete with its source code in C/C++, capable of displaying a simple 3D model(eg. rotating cube...
I have GLUT library  in my vc++ console application... as i want to use glepolycylinder function I also added GLE.h...but  the application shows error as following Error     4     error LNK2019: un...
The following code contains working implementation of marching cubes algorithm: http://www.astronomy.swin.edu.au/~pbourke/modelling/polygonise/marchingsource.cpp This is it's short descripti...
I am trying to write a simple tweening program that takes a pumpkin graphic with a smiley face and changes it to a mean face using points from array A (my starting line drawing, smiley) and th...
Hi,  I'm trying to display polygons with antialiasing over a not-black background. At first, i've used glBlendFunc(GL_SRC_ALPHA, GL_ONE); And then everything goes well over a black backgr...
I need to create a semi sphere to map a square texture in a special way: It has to be literal mesh because I would like to map a texture on it (no glut please). The goal is to create a sphe...
I have developed an application in c#.net using taoframework and csgl....my graphical window is a tao window.......The graphical window of my application shows some errors( some disturbances i...
Hi experts, Let say i have the folowing function: void output(int x, int y, int z, char *string) {   int len, i;   glRasterPos3f(x,y,z);   len = (int) strlen(string);   for (i = 0; ...
glNormalPointer (GL_FLOAT, 0, pNormalArray); glVertexPointer(3, GL_FLOAT, 0, pVertexArray); glDrawElements(GL_QUADS, number_of_faces*4, GL_UNSIGNED_SHORT, pIndexArray); When I draw GL_QUA...
I've been doing research on various techniques and  technologies used in modern game engines, however there is one such topic I'm not sure about. In most FPS games, when you shoot a gun and...
II am using VC++ win32 console application. I want to draw some objects in the  OpenGL  window by getting the input data from the database... So If i want to edit the objects for example , Rot...
Hello, I created a 3d text in Rhino and saved it in format raw triangles text.raw. I need to read that file in my program. And display 3d text in a window. In the file is text OpenGL and I'd...
I load a bitmap into an unsigned char buffer, then (after reversing the BGR to RGB bytes) send it to glDrawPixels in the classic call: [Code]      glPixelStorei (GL_UNPACK_ALIGNMENT, 4);      glR...
I have the following code: void doSelect(int x, int y) {      GLuint buff[64] = {0};      GLint hits, view[4];      int id;      int i;      GLuint *names = buff;            //set buffer      glSelectBuffer(64, buf...