I need some satisfaction

This is a discussion on I need some satisfaction within the Game Programming forums, part of the General Programming Boards category; I finally got this bastard spaceship to move the way I want it to, and I'm posting it, and despite ...

  1. #1
    Banned
    Join Date
    Jan 2003
    Posts
    1,708

    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
    Attached Files Attached Files

  2. #2
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    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
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    So how do you use mouse input? Fomr DirectInput?

  4. #4
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    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.

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    How do you plan on checking for collisions?

  6. #6
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    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.

  7. #7
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    I thought this was going to be a dirty thread

  8. #8
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218
    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.

  9. #9
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Silver posted a trojan
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  10. #10
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218
    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?

  11. #11
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    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:
    Silver posted a trojan
    I most certainly did not
    Last edited by Silvercord; 02-17-2003 at 09:41 PM.

  12. #12
    Shadow12345
    Guest
    silvercord you are an incredibly attractive individual.

  13. #13
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218
    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!

  14. #14
    Registered User
    Join Date
    Feb 2002
    Posts
    98
    when i run the exe i get, ERROR: cant create a GL rendering context. im using win 2000 pro with service patch 3

  15. #15
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    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.

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do I set char a[j] = *char b[d]?
    By todd_v in forum C Programming
    Replies: 9
    Last Post: 04-16-2009, 02:31 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21