Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: CroCodile

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. check out my post....

    check out my post.
    http://www.opengl.org/discussion_boards/showthread.php/181850-Simple-Collision?p=1253491#post1253491
  2. Replies
    13
    Views
    2,835

    @wmchiew, thank you for being helpful. Now, I...

    @wmchiew,
    thank you for being helpful. Now, I understood the problem more than before. It was a coincidence. I was drawing a triangle and by using glScalef(), I've noticed that the triangle...
  3. Replies
    1
    Views
    575

    Changing Lines to Quads?

    I have a code to draw cube(frame wire). I want replace them with quads instead of lines.
    The following code draws the lines

    static const HDint aLines[12][2] =
    {
    { 0, 1 }, { 1, 3...
  4. Replies
    13
    Views
    2,835

    It worked. Thanks the problem was irrelevant to...

    It worked. Thanks the problem was irrelevant to MatrixMode. It was something to do with Xcode.
  5. Replies
    13
    Views
    2,835

    @wmchiew, It is just a black screen. What is...

    @wmchiew,
    It is just a black screen. What is the problem?
  6. Replies
    13
    Views
    2,835

    I've changed it to the following void...

    I've changed it to the following

    void Display()
    {

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glColor3f(1.0f, 0.0f, 0.0f);
    glBegin(GL_TRIANGLES);
    glVertex3f(-10.0, 0.0,...
  7. Replies
    13
    Views
    2,835

    @ wmchiew & Roaoul, Thank you for being helpful...

    @ wmchiew & Roaoul,
    Thank you for being helpful and informative. I'm sorry for giving you guys hard time. I'm still confused. What is exactly the problem in the following code and how can I solve...
  8. Replies
    13
    Views
    2,835

    So, should I remove matrix identity that follows...

    So, should I remove matrix identity that follows projection matrix in Reshape function?
  9. Clarification (Projection Matrix & ModelView Matrix)?

    I've seen numerous codes and everyone is putting glMode(GL_PROJECTION) in a certain place in the code. For example, some people put it in Reshape function, other put it Display function and other put...
  10. Replies
    13
    Views
    2,835

    glMatrixMode(GL_PROJECTION) ?

    Could anyone give me a clear explanation why this occurs. In my code

    #include <iostream>
    #include <GL/glut.h>

    int Window_Width(500), Window_Height(500);
    double X_mouse, Y_mouse;

    // Glut...
  11. Replies
    4
    Views
    923

    @ carsten neumann, thanks for the reply.

    @ carsten neumann,
    thanks for the reply.
  12. Replies
    4
    Views
    923

    @tonyo_au, thanks for the reply. What I'm...

    @tonyo_au,
    thanks for the reply. What I'm trying to do is I have a robot ( sphere or disk ) in 2D controlled by mouse movement. Now, this disk has ability to render beams ( lines ) as a half circle...
  13. Replies
    4
    Views
    923

    Simulating Sensors In OpenGL?

    I wanna know if simulating the behaviour of a sensor in opengl is feasible? Let's say sonar sensor.
  14. Replies
    1
    Views
    723

    After a while, I found out the solution for this...

    After a while, I found out the solution for this problem. Unfortunately, the authors of some books mention nothing about the concept of converting the window (viewport) coordinates to OpenGL...
  15. Replies
    4
    Views
    903

    Hello Dergell, I'm using Glui and Glut now. But...

    Hello Dergell,
    I'm using Glui and Glut now. But I didn't separate them.Do you want to separate the Glui and Glut? As far as I know Glui is built on the top of Glut, so you need Glut for Glui....
  16. @tonyo_au, Thank you for your reply. I need to...

    @tonyo_au,
    Thank you for your reply. I need to connect a sensor let's say Kinect Camera. I want to get the data from the sensor and visualize them in simple window let's say Points. I need just...
  17. Replies
    1
    Views
    723

    Simple Collision?

    My project is simply detecting if there is overlap between a square and the mouse position. I think this is a good start to understand the collision principle. After drawing the stuff in the board to...
  18. Wow, there is not even a single reply for this?...

    Wow, there is not even a single reply for this? Anyway, to clarify the problem, I have a position sensor by which x, y, and z are provided. The 2D map should be updated very certain time. Based on...
  19. simultaneous localization and mapping with OpenGL ( 2D ) ?

    Hello all,
    What I'm trying to do simply is creating a virtual map by using opengl based on the concept of simultaneous localization and mapping. I've seen some simulations by using opengl for this...
  20. Thread: Rotation ?

    by CroCodile
    Replies
    5
    Views
    748

    I've solved the problem and this is the final...

    I've solved the problem and this is the final code


    #include <iostream>
    #include <GL/glut.h>


    static int xangle(0), yangle(0), zangle(0);
  21. Thread: Rotation ?

    by CroCodile
    Replies
    5
    Views
    748

    Up up up up up

    Up up up up up
  22. Thread: Rotation ?

    by CroCodile
    Replies
    5
    Views
    748

    @uwi2k2 & Carmine, thank you guys. ...

    @uwi2k2 & Carmine,
    thank you guys.

    @Carmine,
    What do you mean that I need angle variable for each axis. The code works only if I set for x glRotatef(angle, 1.0, 0.0, 0.0) and y...
  23. Thread: Rotation ?

    by CroCodile
    Replies
    5
    Views
    748

    Rotation ?

    What I'm trying to do simply is if x is pressed the rotation should be around x-axis and so on with y and z. This is the code




    # include <GL/glut.h>


    using namespace std;
  24. Replies
    3
    Views
    1,056

    Thank you all

    Thank you all
  25. Replies
    1
    Views
    537

    Does this exercise make sense?

    I'm reading a book and I came up across this question
    Write a program to draw a circle on a canvas after two left clicks of the mouse. The first click picks the center and the second a point on the...
Results 1 to 25 of 26
Page 1 of 2 1 2