-
I need some satisfaction
I finally got this bastard spaceship to move the way I want it to, and I'm posting it, and despite the fact that the view transformation makes one side show through the other side of the spaceship everyone here is going to grit their teeth and tell me how nice it looks, and then maybe I won't shoot myself.
EDIT: I must send the files in two separate zips, just make sure when you extract the executable you put the bitmap and the .ms3d file in the same folder. And yes I know this whole thing isn't very professional looking, it's still in developing phase
-
Here is the second part
EDIT: w, a, s and d move the spaceship around, you use the mouse to turn left and right, and as of right now you cannot go up or down
-
So how do you use mouse input? Fomr DirectInput?
-
No, I did it similarly to gametutorials, I used GetCursorPos to find out how far the mouse deviated from the center of the screen, then I calculated how far (in radians) to rotate the view vector about the y axis. Then I found the current strafe vector for the updated view vector, then i calculated the rotation for the spaceship (in degrees). This is extremely simple if you think about it because I'm only rotating about the Y axis, and it's a very simple matrix to understand. Rotating about an arbitrary axis is more complicated that's why I haven't got the up/down movement working yet, but I will in time.
-
How do you plan on checking for collisions?
-
Good question, probably with a binary or quad tree to determine if objects are in the same sector, and if they are to do a radius or box collision test. This isn't going to be for a while because honestly I hate the plane equations.
-
I thought this was going to be a dirty thread:p
-
silver your program crashed my sys it froze the screen no mouse movement i did the dumb ctl alt del after reboot my internet connection is gone i dont know i gote start working on my connection now.
im writing this from my other comp.
-
Silver posted a trojan :p
-
well i got it working again .
but it happend right after the messgebox asking me if i wanted fulls or window ,i chose window and it froze the screen and the mouse inside it.
why silver ?did u have this problem when debugging?which system did u test it on?
-
I've had absolutely no problems, you more than likely didn't follow my directions i.e there was a file io error becausey you didn't put the bitmap and/or the .ms3d file in the same directory as the executable. I haven't had any problems with freezing at all while testing, and I've had a few other people test before posting and they didn't get any problems, so I'm hoping it's somehow just your system and not a coding error (although chances are it is).
EDIT: did anyone else have any problems?
EDIT1:
Quote:
Silver posted a trojan
I most certainly did not
-
silvercord you are an incredibly attractive individual.
-
Well i got the zip downloaded to one folder on ma other comp win 98 and it works fine but i try it on my xp comp and it freezes
i have no clue?
i gone get me some of them teeth!
-
when i run the exe i get, ERROR: cant create a GL rendering context. im using win 2000 pro with service patch 3
-
Note: If Silver's program doesn't run like it should seek the
problem at your own pc as it's running like a dream here.