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 ŧ...
Type: Posts; User: software tester
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 ŧ...
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...
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...
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;
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...
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...
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,...
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...
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...
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...
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,...
Thanks, now I just need to get rid off the frame and I'm ready for a couple of projects.
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...
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...
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...
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....
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...
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...
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(){
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...
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...