Search:

Type: Posts; User: evildotaing

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,894

    How should I do it?

    How should I do it?
  2. Replies
    1
    Views
    634

    simple openGL help

    WE all know that when we want user input in openGL, we can key in such as 'w', 'a', 's', 'd', but how about if we want user to keep input like up-arrow, down-arrow, left-arrow, right-arrow in our...
  3. Replies
    4
    Views
    3,894

    help

    help
  4. Replies
    4
    Views
    3,894

    This is the code that make the enemy placed...

    This is the code that make the enemy placed randomly instead of moving randomly.


    glPushMatrix();
    glTranslatef(rand() % 750 , rand() % 550, 0);
    drawEnemy();
    ...
  5. Replies
    4
    Views
    3,894

    openGL random function help

    #include <windows.h>
    #include <iostream>
    #include "gl/freeglut.h"
    #include "myenigne.h"
    #include "time.h"
    #include "stdlib.h"
    #include "math.h"
    //#pragma comment( linker,...
  6. Replies
    5
    Views
    6,190

    Your code for the background moved for right to...

    Your code for the background moved for right to left, how should I move from left to right. And how should I put a stopped for the image when it reach a certain limit so the background map would...
  7. Replies
    5
    Views
    6,190

    How should I set the value for someYOffset?

    How should I set the value for someYOffset?
  8. Replies
    5
    Views
    6,190

    openGL background scrolling

    I want to make the background to scroll from left to right, right now my background image is in the openGL file, but how should I make it to move. My code for the background image.


    /*...
  9. Replies
    10
    Views
    1,924

    I got this error doing making renderScene static....

    I got this error doing making renderScene static. 1>h:\game protype project\game_v4\dm2231_lab_v4\dm2231_lab\myapplication.cpp(238) : error C2724: 'myApplication::renderScene' : 'static' should not...
  10. Replies
    10
    Views
    1,924

    I make the function to static void(renderScene);...

    I make the function to static void(renderScene); but still not working.
  11. Replies
    10
    Views
    1,924

    How to do it. Help? Example of some code, I am...

    How to do it. Help? Example of some code, I am very confused.
  12. Replies
    10
    Views
    1,924

    I code what you are saying but now I got new...

    I code what you are saying but now I got new error again. error C2664: 'glutDisplayFunc' : cannot convert parameter 1 from 'void (__thiscall myApplication::* )(void)' to 'void (__cdecl *)(void)'...
  13. Replies
    10
    Views
    1,924

    Some help for openGL

    I know that if I wan to use print something in openGL, I would used this


    glutDisplayFunc(renderScene);


    But now the problem is in my code, if I wan to display something in the screen, I use...
  14. Replies
    4
    Views
    1,222

    So, is there any difference between the 2...

    So, is there any difference between the 2 functions. I want to use the time to count the amount of seconds for projectile to be launch from a gun.
  15. Replies
    4
    Views
    1,222

    Help!!!!!!!!!!!!!!

    Help!!!!!!!!!!!!!!
  16. Replies
    4
    Views
    1,222

    Get real timing in openGL

    i want to have real timing in openGL such as when I file a projectiles, it would shoot for 3 seconds before disappeared. I serach the web but unsure how to do it. Which function should I used to get...
  17. So, if my code for if (((Position.z

    So, if my code for if (((Position.z <= 0 && Position.z >= -380) && (Position.y >= 0 && Position.y <= 20)) && (Position.x <= 195 && Position.x >= -195)) is wrong? A bit weird that Position.z and...
  18. The skybox is a piece of walls and I am inside a...

    The skybox is a piece of walls and I am inside a house. So I am using boundary checking for preventing camera to move outside of the skybox. Just that I got problem and the camera can still moved out...
  19. Replies
    3
    Views
    1,835

    How to code like that using the look vector?

    How to code like that using the look vector?
  20. Replies
    3
    Views
    1,835

    Projectiles in openGL(need help)

    I want to launch a projectile in openGL where when I click my left mouse button, it would shoot a sphere to the position where I am facing. BUt I already confused about the distance to launch. I use...
  21. My codes have no problem staying in skybox except...

    My codes have no problem staying in skybox except the x-value. I have already check the values, it is definitely right. What is the correct way to use && when I had to make sure the 6 positions is...
  22. All of the codes have no problem expect the last...

    All of the codes have no problem expect the last part where I still can move out of the skybox by pressing button ''a' or 'd'. Is my && wrong. I not really good in comparing 6 position using &&.
  23. Pls help -openGL boundary checking in skybox

    I am doing a boundary checking in skybox where the camera cannot move out of skybox. But using this code:


    if (((Position.z <= 0 && Position.z >= -380) && (Position.y >= 0 && Position.y <= 20))...
  24. Replies
    0
    Views
    2,360

    Please help openGL program -camera

    Camera.h


    #include "gl/freeglut.h"
    #include "Vector3D.h"
    #pragma once

    class Camera {
    public:
    enum CAM_TYPE { LAND_CAM, AIR_CAM };
  25. For beginner: How to start first c++ programming(Guide)

    1. Download and install microsoft visual C++ studio 2008 express edition. It is free
    2. Open visual studio c++ 2008
    3. Go to File ->New Project ->
    4. In project types, set it to win32, set win32...
Results 1 to 25 of 135
Page 1 of 6 1 2 3 4