Search:

Type: Posts; User: software tester

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,350

    Hi, Firstly you are using GLUT. Secondly...

    Hi,

    Firstly you are using GLUT.

    Secondly you are calling the key hit routine at all in your main loop.

    Have a look at the Lighthouse tutorials for keyboard movement.

    Keyboard ŧ...
  2. Replies
    3
    Views
    1,298

    I have the subroutine which is identical to all...

    I have the subroutine which is identical to all the examples I looked at researching the problem but no matter were I place the call from either changing the field of view parameter doesn't change...
  3. Replies
    3
    Views
    1,298

    opengl depth problem

    I've been writing a Newton's Cradle in opengl using codeblocks but no matter what glDepthFunc I use I can't get a depth greater than 1 gl unit. Is this a codeblocks defect or do I need to link any...
  4. Replies
    4
    Views
    1,822

    Got it sorted now and working a dream. ...

    Got it sorted now and working a dream.


    roll[3]={0.0,-0.4,-0.8];
    for (n=0; n<3; n++){
    if(roll[n]>0.5){
    sphere =2;}

    if(roll[n]>1){
    sphere =3;
  5. Replies
    4
    Views
    1,822

    Thanks, I'll give that a try but the groups will...

    Thanks, I'll give that a try but the groups will be 1 group of 4 and 1 group of 11 and a group of 12. I'm not sure if this would cause any problem.

    I'll look at properly indenting the code while...
  6. Replies
    4
    Views
    1,822

    ball movement problem

    I'm trying to move upto 30 balls in 3 groups around a circuit using for commands and switches. This is to save on using 30 switches 1 for each ball. However, the problem is that the changes in...
  7. Replies
    4
    Views
    15,586

    Not entirely sure yet but I set up the quadrics...

    Not entirely sure yet but I set up the quadrics etc and when I enter
    gluSphere(quadric*, radius, stacks, slices); I get a sphere.

    However if I change this to gluCylinder(quadric*, base, top,...
  8. Replies
    4
    Views
    15,586

    I tried it and eventually got it to work with...

    I tried it and eventually got it to work with quadrics and not crashing out codeblocks but I also tried this an alternative for more flexibility and no quadrics. Also for some reason I can't draw a...
  9. Replies
    4
    Views
    15,586

    OpenGL/GLUT cylinder and cone

    I have been playing around with a piece of code for a cylinder in GLUT or OpenGL and using Vertices instead of pre-forms and the resulting code is below.

    It is also capable of producing a cone...
  10. Replies
    2
    Views
    2,145

    OpenGL or GLUT which way to go?

    I've been programming now for about 6 months and I'm currently using GLUT and OpenGL but I'm unsure which is best to use.

    As I see it so far. GLUT is easier and tidier to set up the window and...
  11. Replies
    1
    Views
    1,519

    3D ball problem

    I'm trying to swing two balls so that when the first ball swings from -20 degrees to zero it stops and sends the second ball swinging out to 20 degrees and returning back to zero again.

    However,...
  12. Replies
    3
    Views
    1,200

    Thanks, now I just need to get rid off the frame...

    Thanks, now I just need to get rid off the frame and I'm ready for a couple of projects.
  13. Replies
    3
    Views
    1,200

    Desktop Effects

    I'm looking at advancing my programming skills again and was wondering how to draw windows without borders or backgrounds so that an application can be run off the desktop or appear to be.

    I can...
  14. Replies
    11
    Views
    1,704

    I'm new at programming as well but a suggestion...

    I'm new at programming as well but a suggestion is to write an othello/reversi game. Either direct into windows or as I did. In console first and then in Windows using circles as counters. It will...
  15. Replies
    6
    Views
    1,467

    Hi Blacky Ducky, I'm new to C++ programming as...

    Hi Blacky Ducky, I'm new to C++ programming as well. Look in the games section here at other peoples code the tic tac toe game on here gave me a good start then writing my own version and extending...
  16. Replies
    3
    Views
    1,201

    Quote: Also I canīt find out how to input text...

    Quote:
    Also I canīt find out how to input text into the screen for the player input

    That depends on your API, what are you writing it in?

    I'm looking for the simplest kind of textbox....
  17. Replies
    3
    Views
    1,201

    Tank side scroll

    Iīm not writing a tank game where the player inputs the angle and velocity of the shot to hit the opponents tank. I have sorted out all the collision detections but I still have a problem side...
  18. Replies
    2
    Views
    1,630

    I got it sorted by adding a couple of extra cases...

    I got it sorted by adding a couple of extra cases to WM_KEYDOWN so that when the user presses 'Y' it sets score = 0; and skeet = 0; then redraws the background.

    Although I can't get a start menu...
  19. Replies
    2
    Views
    1,630

    Menu Switch Problem

    Sorry but I have a last problem with skeet shoot.

    Can someone tell me how set a win32 switch case for an on screen menu?

    I'm on test 21 out of 24.

    I have got as far as


    void Endgame(){
  20. Replies
    2
    Views
    1,374

    Sorry my mistake, wrong formula. Changed the...

    Sorry my mistake, wrong formula.

    Changed the formula to v*cos(angle)/time. a few adjustments here and there and it is working a treat now.

    Thanks for the tip about resetting the x point of...
  21. Replies
    2
    Views
    1,374

    skeet flight angle problem

    Hi, I'm still new at programming but can anyone help sort out an angle problem I'm having. I'm trying to vary the launch angle of a skeet (ellipse) but the class is calculating the angle from...
Results 1 to 21 of 21