I have this source code :
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glColor3f(0.2,0.2,1);
glLoadIdentity();
glTranslatef(0,0,-1);
//----2D MODE----//
Type: Posts; User: jirkamelich
I have this source code :
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glColor3f(0.2,0.2,1);
glLoadIdentity();
glTranslatef(0,0,-1);
//----2D MODE----//
I use direktx9, and when i try to compile DevIL header filee(il.h,ilu.h,ilut.h) there is some error about d3d8.h - i dont remember the header file exactly, but its foir direkt 3d 8 .
Can i fix it...
Does somebody know where can i find DevIL ?
I draw this 2D Font :
glColor3ub(40,255,40);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
gluOrtho2D(0,400,0,300);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();...
I'm 15 and i've been programming for 1.5 years. First I started with VB 6, i was doing it about 8 months, than i started with C++ Builder and maybe in one or two months i started opengl. I dont know...
I was doing VB it is really easy. But slowly for 3D graphic, because there is some library that is betwen VB and Direkt and i gues that its the same with opengl
Where can i find it plus how to use it.
But it works OK, i have just problem when i add some more parameter to the funstion.
I have following source code for loading tga files(from nehe) . But when i add some more parameter to the function so the first lines about texture(->width = ...) raises exeption EAccesViolation,...
I use gluUnProject to get 2D position of mouse in 3D position in OpenGL scene.
I use this source :
here is camera rotation and stuff
glGetDoublev(GL_MODELVIEW_MATRIX,ModelViewMatrix);...
I finally got gluUnProject working, it works great, but there is yet a little problem about it. I calculate 3d position of place where i clicked, but when i move camera the position changes.
I get...
For the first problem use 2D font and glOrtho, about glOrtho you can find something in FAQ.
I mean for instance i load texture and i would like to make every purple color transparent. How to do it. I would like to load bmp file.
The selection works, it doesnt work just when i draw the following source code (exactly just when i change matrix mode)
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();...
thats the code, i reset the matrix(glLoadIdentity), than i move camera by (glTranslatef and glRotatef) than i draw the panel(following source code) and than glInitNames();
glPushName(0);...
Does somebody know how could i make work again ? I need to change Matrix Mode
I used mipmaping in my programe , but i cant see any difference between linear and mipmap textures. Why is it so ?
Does somebody have any idea why i got error EAccesviolation always when i want to load texture :
AUX_RGBImageRec *Obr1 = auxDIBImageLoad("Data\\Zed.bmp");...
i have a problem with gluUnProject.
I have this source code :
declarations :
GLdouble winZ;
GLint y;
GLint viewport[4];
GLdouble projection[16];
GLdouble modelview[16];
POINT Mys;
Where are some tutorials about OpenGLAI ?
i would like to get position of mouse pointer in opengl scene (x,y,z)
do you join rendering context (wglMakeCurrent(Canvas->Handle,hRC) ) ? before the loading textures ?
does somebody know some link , where is any example of using gluUnProject ?
it works, but kind of wierd i think. The number which i get are not ok. Can somebody help me ?