434 Topics

Member Avatar for
Member Avatar for Labdabeta

I am using code::blocks and have written a dll. I am currently testing it but am getting tired of having to compile it, copy the DLL, DEF, H and A files into a test project, and then compiling the test project every time I need to fix something. Is there …

Member Avatar for Labdabeta
0
252
Member Avatar for nuclear

I was just wondering why do we exactly call glTranste command if its possible just to increase objects x, y or z. And its even stated in this tutorial: http://nehe.gamedev.net/tutorial/particle_engine_using_triangle_strips/21001/ that its even faster to only use Vertex3f() instead of resetting the Modelview Matrix. Anyways, maybe its just something particular …

Member Avatar for nuclear
0
264
Member Avatar for Slavrix

basically what ive got going is some transformations using my own functions, ive got them working fine still using glMultMatrix but im not allowed to use that for this. im trying to make my own matrix multiplication function and im getting stuck somewhere. the matricies are all one dimensional arrays …

Member Avatar for raptr_dflo
0
995
Member Avatar for nuclear

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 …

0
148
Member Avatar for nuclear

It seems that i dont fully comprehend how rotation works. So leys say i have a cube and i do this: x = 90.0f; rotatef(x, 1.0f, 0.0f, 0.0f); Notice that my code here may be not all correct, its like that just to symbolize what i mean. So by doing …

Member Avatar for nuclear
0
4K
Member Avatar for Labdabeta

I want to test some graphics work I am doing with the Utah Teapot model. The issue is that all the data I can find on it uses bezier patches (which I have no clue how to render) does anybody know how I could get the data in a form …

Member Avatar for Labdabeta
0
525
Member Avatar for dark_sider_1

Hi there, I feel really stupid since I'm a beginner at OpenGL with drawing. Is there something that I'm missing in the code? The line doesn't show up on the screen. Thanks! glClearColor(1.0f, 1.0f, 1.0f, 1.0f); glBegin( GL_LINES ); glColor3f( 1.0f, 0.0f, 0.0f ); glVertex3f( 100.0f, 150.0f, 0.0f ); glVertex3f( …

Member Avatar for mike_2000_17
0
978
Member Avatar for dark_sider_1

Hi there, I'm sorry if this is a vague question, but I've just been assigned to create a color animation project with GLSL, and I've never really used it before. The criteria for the assignment is that the animation should depend on object coordinates, vary over time and should use …

Member Avatar for dark_sider_1
0
281
Member Avatar for Labdabeta

I am wondering how to perform a 2D image blit with openGL. I used to use SDL and it was easy, but with opengl I end up making a rectangle with texture coords that is sunk a little into the screen. Is there any way to perform a 'real' blit? …

Member Avatar for Labdabeta
0
527
Member Avatar for Rubinder singh

I have tries run Angry Birds Game on my laptop But it says that opengl not suppoted. I use lenovo ideapad s10 with windows 7 ultimate on it. Plz Tell me the solution how can i get opengl suppot on my laptop....

Member Avatar for caperjack
0
192
Member Avatar for nuclear

Straight to the point, I am using SOIL (http://www.lonesock.net/soil.html) library to upload images into OpenGl. Loading textures works fine but there is this thing i dont fully comprehend. Lets say I load an image into OpenGL via SOIL and I want to reuse the same image over few other textures …

Member Avatar for nuclear
0
2K
Member Avatar for diamondfist

I want to load a 3D model into an opengl scene. For this I've read about the .obj format and how the vertex cord's and etc are stored. I want to parse this file, but have completely no idea what soever how to begin with. After going through couple of …

Member Avatar for Alkane
0
207
Member Avatar for creative_m

I am trying to compile NeHe code for win32 app in visual studio 2010. but this error appear: [CODE]cannot convert parameter 2 from 'const char [29]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast[/CODE] to these instructions [ICODE] if (!wglMakeCurrent(NULL,NULL)) // Are …

Member Avatar for creative_m
0
390
Member Avatar for nuclear

So the function: [CODE]glLoadIdentity();[/CODE] resets the matrix, so for instance we do this: [CODE]glMatrixMode(GL_PROJECTION); glLoadIdentity();[/CODE] how exactly does this work, it seems that we set the matrix and then just return it to the way it used to be.

Member Avatar for Labdabeta
0
225
Member Avatar for Labdabeta

I am working on a game making (or really just general program making, but my question applies to games) DLL for opengl. It is almost done but the collision detection is a little bit slow since it has to calculate bounding boxes for each object repeatedly. I was thinking of …

Member Avatar for Labdabeta
0
170
Member Avatar for Labdabeta

I recently looked at [URL="http://www.songho.ca/opengl/gl_vbo.html"]this[/URL] description of VBOs and a sample implementation of them. When I ran the executable, it was significantly faster with no VBOs than with them. I don't understand why it should be slower with the VBOs than without. Can anybody explain why?

Member Avatar for raptr_dflo
0
331
Member Avatar for emilo35

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 …

0
124
Member Avatar for Labdabeta

How do you make shadows in OpenGL. I have been using the NeHe tutorials, but I do not understand their shadow lesson. Can anybody help?

Member Avatar for mike_2000_17
0
380
Member Avatar for supidProgrammer

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 …

0
70
Member Avatar for Labdabeta

Hello, I have been working with opengl and other graphics libraries and they all require the bits per pixel of the screen on initialization of a window. My question is, is there any way to get the system's preffered bits per pixel? or that of the monitor?

Member Avatar for Labdabeta
0
910
Member Avatar for meetjatin88

Hi All, I have a doubt regarding SDL programming. Can some one please help me how can i subdivide a Image lets say into 4 parts and then store them in SDL_Surface array. I intend to animate later using these subdivided images by using SDL_BlitSurface function. I am new to …

Member Avatar for rosiebell
0
124
Member Avatar for CityThrille

Good day, geeky guys. :cool: I have some reactions and questions about DirectX and OpenGL... Suppose (for example only,) I was hired by a big game company to spearhead game developer teams then, I want the game we will produce, to make it versatile in any computer regardless of computer …

Member Avatar for BCBTP
0
255
Member Avatar for ccoder83

Hi, I have a grid, which contains cells that have several different properties. [CODE]struct fluidProperties1 { float foo; float bar; };[/CODE] and I create the grid as follows using a template [CODE]Grid2D<fluidProperties1> grid1;[/CODE] Now, I want to pass the array formed only by the values of foo, and not by …

Member Avatar for ccoder83
0
839
Member Avatar for diamondfist

I was trying to move my camera along the red cube .. so i came across the gluLookAt function, but i am not able to get through this function as to what all it requires ... the content on the Documentation didn't quite help. it will be very helpful if …

Member Avatar for Chris911
0
3K
Member Avatar for Tcll

hey... I can't seem to find any tutorials that only use PyOGL... can anyone help out?? also... I found an early thread asking the same Q, where vegaseat mislead someone about OGL back in 2008... :P I just thought I'd point out OGL development is actually thriving, but it's code-base …

Member Avatar for Tcll
0
1K
Member Avatar for Tcll

I actually have 2 Q's the files I'm working with only provide 4x3 inverse bind matrices for bones. what I first need is a function that writes the 4th row of the matrix and then I need to know PyOpenGL's matrix inversion function (since it's faster than my current function) …

Member Avatar for Tcll
0
32
Member Avatar for YourGamerMom

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 …

0
80
Member Avatar for Youg

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 …

0
99
Member Avatar for jaai

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

0
63
Member Avatar for communism

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.

0
78
Member Avatar for YourGamerMom

I am working on an OpenGL project in C using Xcode 3.2.6. It is a tutorial program and yet I am having problems with it. When I double-click Project.app, it opens for a quarter of a second then closes. The source is: [CODE]#import <Cocoa/Cocoa.h> #include <GLUT/GLUT.h> int main(int argc, char …

Member Avatar for YourGamerMom
0
338
Member Avatar for diamondfist

I managed to load the bmp file into my project, but it was giving dull and hazy kind of texture for some images .. any idea as to why this is happening ??

Member Avatar for diamondfist
0
96
Member Avatar for diamondfist

Hi , i have just started OpenGL. So i am sorry if my question is stupid, but i was trying to move a circle inside a square and was unable to do it . .can you please help me out please ?? [CODE] #include <GL/glut.h> #include <math.h> bool* keyStates = …

Member Avatar for diamondfist
0
235
Member Avatar for Dman01

Hello I already posted this on [URL="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=306688"]opengl.org[/URL], but nobody seems to have a solution. Basically I set up Opengl and when I want to draw 3D or say I want to use the z-axis by translating in this dimension, it doesn't have any effect. What I can do, is moving …

Member Avatar for daviddoria
0
318
Member Avatar for communism

I recently have been working on a GLUT project in Code:Blocks. Everything in the code compiles correctly, yet every build seems to return the same result. I narrowed it down to an OpenGL, non-GLUT function : glFrustum. I change the parameters yet the runs are all the same. It could …

Member Avatar for communism
0
297
Member Avatar for Orange9876

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 …

0
72
Member Avatar for ben1996123

I want to start learning OpenGL. Codeblocks decided to break, so I downloaded Dev-C++ instead. I've tried loads of different websites to try and figure out how to install it, and I get some type of error every time. How should I install it with dev-c++?

Member Avatar for ben1996123
0
103
Member Avatar for evaldaskowka

hello, i'm willing to learn direct3d but i can't find tutorials for it, youtube has few video tuts but they are very unclear. Do you know any free e-books or sites where i can start learning? Another question is directx better than opengl? from my experience opengl needs a lot …

Member Avatar for SasseMan
0
163
Member Avatar for ben1996123

Hi, I want to start learning OpenGL. I have searched for some tutorials and here is what I have done: 1. I downloaded the latest version of GLUT 2. I put the DLLs in C:\Windows\System32 3. I put the libs in C:\Program Files (x86)\CodeBlocks\MinGW\lib 4. Put glut.h in C:\Program Files …

Member Avatar for Moschops
0
560
Member Avatar for jaai
Member Avatar for jerl
0
150
Member Avatar for Peram

When I make an OpenGL game on this computer, it runs at normal speed. If I run it on literally any other computer, it goes really fast, making the games unplayable. Does anyone know what might be causing this?

Member Avatar for cahitburak
0
219
Member Avatar for Raik.48

Hello, I have chosen a project of developing a 2d action-adventure game with some rpg elements, in-game puzzles. I have considered developing with C++ and OpenGL. I do not have prior knowledge of these language but I had good grasp on C programming language. For C++ and OpenGL, I have …

Member Avatar for Raik.48
0
461
Member Avatar for BoBok2002

Revised Code. I have revised this code so many times that, I don't know what else to do. I posted this code a few days ago and a number of people gave me pointers which I included in my code. But it's still not working. Based on examples I saw …

Member Avatar for BoBok2002
0
1K
Member Avatar for tsy123

i,m making a 3d pool (billiard) simulation using c++ in opengl for my project. where can i get a proper source to refer as what i found on web were not very useful for me. Any links or sources from you are appreciable.

Member Avatar for apneweb
0
115
Member Avatar for Jungletoe

Ok, I found this code after searching for days, and to my delight it actually worked. It loads a TGA file into the memory... but I have no idea about how to load it into an OpenGL texture that I can use to texture a cube. I have literally spent …

Member Avatar for myk45
0
1K
Member Avatar for awesome_cool

I've been Programming in C++ for a year. I am done with Basics and all other OOP concepts(like inheritance,polymorphism and STL) I want to be a game programmer, but i don't know what to study now? I've heard about OpenGL, DirectX, GUI libraries as a result i m confused to …

Member Avatar for thines01
0
528
Member Avatar for BoBok2002

I need help. I tried to load an image using SOIL. I was having problems with it so I found another code I am using. However, it looks like I am not loading it properly. It's simple but I think I'm confusing myself. I still can't wrap my head around …

Member Avatar for BoBok2002
0
5K
Member Avatar for tyricec

I'm having a problem with my struct I believe. [CODE]struct GLPoint { int x; int y; }; int totalmarbles = 64; GLPoint midhold[64]; double dist(GLPoint a, GLPoint b) { double distance = sqrt(pow(a.x - b.x, 2) + pow(a.y - b.y, 2)); return distance; } void init(void) { glClearColor (1.0, 1.0, …

Member Avatar for Tumlee
0
575
Member Avatar for tyricec

I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't …

Member Avatar for gusano79
0
155
Member Avatar for tyricec

I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't …

Member Avatar for tyricec
0
127

The End.