Search:

Type: Posts; User: salman86

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,220

    Can't you display the whole array and kind of...

    Can't you display the whole array and kind of path with other letter for example "P" from one X to another X?
  2. Replies
    4
    Views
    1,220

    A recursive problem?

    Hey guys,

    I have a 2 dimension 8 by 8 array which is fill with "." and 2 Xs. I need to find the shortest possible path from one X to another X recursivley. Can anyone help me to find the solution...
  3. Is there an example of picking objects using mouse?

    Hey guys,

    I was just wondering if there's an example of picking and dropping objects using mouse in OpenGL? The tutorial # 32 on Nehe isn't that helpful. I know how to rotate an object or zoom...
  4. Replies
    6
    Views
    5,827

    Reply is apperciated!! I've "vector3" not...

    Reply is apperciated!!
    I've "vector3" not "Vector3" so that's not the problem!! I think i'm stupid but not that much :o !
    Here are coordinates for gluLookAt():
    gluLookAt( 0, 20, -10, 0, 0, 0, 0,...
  5. Replies
    6
    Views
    5,827

    Thank you for everything:). I've kind of figured...

    Thank you for everything:). I've kind of figured out how to do which i wanted by using gluLookAt (). But thanks to you now i know 2 ways and it's always good to have 2 different ideas to solve one...
  6. Replies
    6
    Views
    5,827

    Thanks for lots of info. There are couple of...

    Thanks for lots of info. There are couple of things i'm confused about. First, Pos is what type of variable? Second do i really need to use GLRenderScene() method? Again, thanks for all the info.
  7. Replies
    6
    Views
    5,827

    How to set up a top view camera?

    Hey guys,

    Can someone tell me how can i set up top view camera for my scene in OpenGL? I've tried using gluLookAt() but i couldn't figure out the way i wanted. Any ideas with starting code would...
  8. Interesting!! Thanks eh. you seem fan of porn...

    Interesting!! Thanks eh. you seem fan of porn e-mails :D
    I've figured out how to do it. I simply drew a quad and then texture it with a ".bmp" file.
  9. How to load background pic/texture in OpenGl?

    Hey guys,

    Does anyone know how can i load a background picture for my OpenGL program or a texture? By deafult the background is black and i know i can change it by using following code:
    ...
  10. Replies
    9
    Views
    2,355

    Thanks guys i've figured out the porblem....

    Thanks guys i've figured out the porblem. Actually it wasn't that hard. The depth of the board was far less than the depth of the chess piece. so it was always drawn behind the chess board but i've...
  11. Replies
    9
    Views
    2,355

    I've already tried that it didn't work. Here is...

    I've already tried that it didn't work. Here is the code Jermey in the main class where everything is drawn.



    int DrawGLScene(GLvoid) {
    glClear(GL_COLOR_BUFFER_BIT |...
  12. Replies
    9
    Views
    2,355

    Here are: the screen shot and the code of how the...

    Here are: the screen shot and the code of how the chessboard is drawn, the coordinates and other stuff. In the screen shot there are 2 models the brown we can see but the blue one is drawn behind the...
  13. Replies
    9
    Views
    2,355

    Thanks for the reply now i can draw multiple...

    Thanks for the reply now i can draw multiple models :) but my 2nd problem is still not solved :( . I still can't draw the model(s) on the chess board. They are always drawn behind the board. Any...
  14. Replies
    9
    Views
    2,355

    Need help with drawing Multiple models?

    Hey guys,

    I've started learning OpenGL through Nehe's tutorial. I was playing around with the code of tutorial # 31 which basically loads and draws a model. I modfied the code and drew a...
  15. Replies
    4
    Views
    1,235

    Because it only draws one triangle which is the...

    Because it only draws one triangle which is the first one. It's reading following condition, since level is 0 when loop starts:

    else
    drawTri (a, b, c);
    I debugged the loop which does...
  16. Replies
    4
    Views
    1,235

    Thanks for the reply but i don't think that could...

    Thanks for the reply but i don't think that could be teh problem becuase if you look at this code:


    void Draw (void)
    {
    glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear Screen...
  17. Replies
    4
    Views
    1,235

    Need help with Loop?

    Hey guys,

    I made a program in open GL which draws sierpinksy triangle recursivley. Since it's based on different levels and i'm passing "level" as param. So I tried to use a loop and increase the...
  18. Replies
    1
    Views
    999

    Need help with my Class??

    Hi guys,

    I made my first Open GL program using class and objects but i'm getting whole bunch of errors " [Linker error] undefined reference to `ClassName::MethodName(params)'

    Every time when...
  19. Replies
    4
    Views
    2,194

    Problem with glaux.h

    Hey guys,

    I've problem with glaux.h. Whenever i use this header for texture maping. It asks me for glaux.dll which i can't find anywhere. Somewhere, I even read that no one supports this library...
  20. Replies
    1
    Views
    1,003

    How to creat an array function?

    Hey guys,

    Can someone please tell me how can i creat an array function? I want to draw multiple 3-D triangles in open GL. I've drew one and want drew more than one using arrays. I would apperciate...
  21. Replies
    8
    Views
    269,604

    Thanks Josh ... It worked

    Thanks Josh ... It worked
  22. Replies
    8
    Views
    269,604

    How to convert an integer to double?

    Hey guys,

    I'm beginner, Can please someone tell me how to convert an integer into double.

    Another general question: Can someone give me a link where i can find all the useful methods (library...
  23. Replies
    5
    Views
    1,358

    Never mind guys. I found the problem

    Never mind guys. I found the problem
  24. Replies
    5
    Views
    1,358

    Thanks daved I got that but would you mind...

    Thanks daved I got that but would you mind helping me to fix my other major problem?
  25. Replies
    5
    Views
    1,358

    Thanks for the reply, it didn't work though. The...

    Thanks for the reply, it didn't work though. The problem i've should be simple but somehow i can't solve it.




    #include <iostream>
    using namespace std;

    int main()
    {
Results 1 to 25 of 26
Page 1 of 2 1 2