here's what i did: I made a complete game under Linux, using only cmath, cstdio, cstdlib and glut,gl,glu libraries, and it worked. Now, that I wanted to compile it for Windows(cause I need to post...
Type: Posts; User: Ther
here's what i did: I made a complete game under Linux, using only cmath, cstdio, cstdlib and glut,gl,glu libraries, and it worked. Now, that I wanted to compile it for Windows(cause I need to post...
so it could cause, cause at init you should setup, for opengl the bounding space:
gluPerspective( 45, 1, 0.1 , 100 );
why don't you set up projection matrix ?
gluLookAt( eyex, eyey, eyez, lookx, looky, lookz, 0,1,0 ) ;
you mean .obj terrain objects ?
actually if you mean it is not a very good solution, the way i do it is the make picture and then set the terrain's height to the image's brightness. It's because...
your my faithfully, not that who couldnt name this glutSetCursorPosition or something like this. Thx :D
I'm using glut, linux. I could hide the cursor ( glutSetCursor ( GLUT_CURSOR_NONE ); ), but i couldn't keep it in the middle because:
I want the watch when user's moving the cursor, but the edges...
i am on to start a project of strategy game with island,ships and heroes, and all mystic staff. Does anyone know a tutorial for how to build up the whole data for units and others?
Does anyone have some reference how to simulate dead or just falling human (or any) bodies with physics and collide. You know like you fall down and crash into a rock with your hand and you get a...
really how much diferrence is in DirectX and Opengl's speed?
if you look at gl.h
<code>
#define GL_RGBA GL_RGB
</code>
so it is weird, but good
your best choice is to go your graphics card's homepage (www.nvidia.com, etc) and download the newest driver for windows.
if you are using Linux maybe try YOU, that will find the correct and newest driver
I suggest that you should use maya and export an OBJ
file from that, because either using maya and reading OBJ file format is easy. A basic OBJ file look like:
<CODE>
v 0 0 0
v 1 0 0
v 0 1 0...
and in the main function:
glutDisplayFunc( windowDraw ); //draw
glutReshapeFunc ( windowShape ); //window resize
glutIdleFunc( windowDraw ); //draw
glutKeyboardFunc ( windowKeyPressed );...
My solution:
.......
main.cc
........
FsKeyboard keyboard; // which is extern maybe
void windowKeyPressed (unsigned char key, int x, int y) { keyboard.keyPressed ( key ); }
void...
I am a linux programer too and i would really like if other would post url's of his opengl applicition under linux. The best would be if not glut, gnome or kde library using windows would be these....
this is my source for reading one pixel of the screen, but i am read the whole screen for it.
Maybe you can use it:
//---------------------------------
int Thervl :: getColorAt ( int x , int y...
I couldnt understand what you wanted to say, but i guess i can help you. I know java, if you wanna write your applicition in it, but i suggest that you should use C++, but maybe that will make some...
this the part of my program, where i draw:
glEnable (GL_TEXTURE_2D )
glBindTexture ( ... )
glMatrixMode ( MODEL_VIEW )
glTranslate3f ( xt, yt, zt )
glCallList ( ... );
My problem is...
I think the most easier is in the case 1 -> 0.8 zoom, that you zoom for 8.0
every pixels in line became the same
color 8 pixels
and unzoom for 0.8
all 8 pixels became 1...
I don't know actually what you want to do, but maybe it works better if you rotate before you translate, because it is matter what you doing first.
I don't know, and it is an interesting question, but i think you need an other windowing api ( not glut ), and check for it on http://www.free-soft.org/guitool/ :-)
thanks for all :)
I think you should programming in 3d for mobiles (NOKIA mobiles) in Mobile3d. This is a java API.
/ don't try mobile3d.org /
My best java builder ( and compiler ) is Visual Age for Java, this is an IBM program and i think it is free, or maybe just for 3 months, but you can install again, and all the problems gone. In java...