Page 1 of 2 12 LastLast
Results 1 to 40 of 44

Thread: Rotating an Image in DX7

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    127

    Rotating an Image in DX7

    When you declare an image, is there anyway to rotate the image? Likes is there a way you can get and change the variable for the top right, top left, bottom right, and bottom left points of the image? Or anything at all that could help me in my quest to rotate an image?

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I have posted code for this so many times on this forum....please make a search...

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    127
    Ok, that was slightly helpful, in that it at least showed me I have much much to learn. Do you happen to have any simpler tutorials then that, or maybe just a link to where you explained it before because i couldn't find it in search.

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I have always used that code to explain it....so simpler it isn't possible to explain it....what did you not understand about it?...All of it? If you didn't understand anything of it I would suggest that you learn more about DX before you move on...or just use that function untill you are ready to understand it,....

  6. #6
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    D3d in 2d allows you to rotate an image easily but DX7 doesnt have the functionality. It isnt easy to do and its the biggest draw back to ddraw
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hehe...do you meen 2D in D3D maybe...

  8. #8
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176


    Your always putting me down. I am still angry about last night. i think its impressive even if you dont think it is


    AKA

    Yes i was wrong but i need to ensure i insult you to get you back
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Angry about last night? What do you meen....I am soo tired that I can't remember what I did....or was it even me?

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    127
    O, so rotating is much easier in D3D? Ahh, in that case I won't even bother trying to learn it in DD.

  11. #11
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hehe...havn't you had Math (matrices) at school. D3D does it the same way, you can do it manualy or use the functions that is provided by D3D...

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    127
    The highest math i have taken is either geometry or algebra 2. No trig or calculus, so I don't know much of these math formulas.

    The main problem I have with rotating images is how to even do it, such as what attribute would you change. O well, I guess I learn about it when I advance to D3D

  13. #13
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    The way it is done in that example and the way you are doing it in D3D are not the same at all. This method are more advaced in code, the D3D method are more advanced in Math. But as long as there are functions for it, I guess that it can't hurt for you to use them, before you understand the math behind it...

  14. #14
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    is there an actual rotate command in D3D then???

    I had to calculate the four corners myself.
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  15. #15
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hehe....yes it is. There is several transelations buildt into D3D. Thre is

    Addining Matrices
    Multiplying Matrices
    Translation
    Rotation Matrix (XY, XZ, YZ)
    Scaling

    And some other thigs....

  16. #16
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    I POSTED A THREAD ASKING THAT AND NOBODY ANSWERED!!!!

    I AM HURT



    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  17. #17
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hehe....when did you post that...maybe I was on my vecation......You can post more DX questions now...I am back...

  18. #18
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    about 2 months ago

    p.s your a very big headed person arent you
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  19. #19
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hehe...my head is not big in anny way...it's just my body that is small......sorry for not beeing there 2months ago...probably had to much to do at school...

  20. #20
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Sorry school boy HAHAHA

    Teachers Pet

    AHAHAHAHA

    I only insult you because you know more than me. Hence i will bully you from now on its tradition.
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  21. #21
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I don't know more then you....thats for sure...I bet you are better then me in D3D right now....but I will get better...trust me...

  22. #22
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    i know very little d3d and its in VB not c++ like you

    I know more about jukeboxes
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  23. #23
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Jukeboxes??? What about them?


    It's not that diffrent, using C++ or VB I meen. Allt the functions in DX stays more or less the same...

  24. #24
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    I program some jukeboxes as a job

    Sound Leisure

    I might look at DX in C++ then. You know any tutorial sites
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  25. #25
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I found some at gamedev.net......but I can't find them anymore....

  26. #26

  27. #27
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Ok thanks ill take a look.

    I keep thinking of doing a carrier command clone but at bit more advanced eg carrier command 2
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  28. #28
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Not following you....is that a game??? Never heard of it....

  29. #29
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    BTW, if you find more great links.....post them, or send me a PM...I havn't looked so much after it....just reading books at the moment...

  30. #30
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    *Kicks NoteMe*

    [Chant]REMEMBER REMEMBER[/Chant]




    I am still on the first link but if i get anywhere i will post the links i find
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  31. #31
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hehe...thanks...not sure if I need them....but it can be usefull to have later...

  32. #32
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

  33. #33
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104
    What is your favorite source for Directx questions? Is there a forum you prefer? I seem to come up with bizarre questions, and am looking for good sources of info. I looked at some of the references you posted, but thought you might have some favorites.

  34. #34
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    http://nehe.gamedev.net/

    Good for open GL in C++
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  35. #35
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Originally posted by Shaggy Hiker
    What is your favorite source for Directx questions? Is there a forum you prefer? I seem to come up with bizarre questions, and am looking for good sources of info. I looked at some of the references you posted, but thought you might have some favorites.

    I have learned more or less everything I know from books. The physics part, the math part, and the DX part...if you have questions try to ask them here, and I will try to answer them as best as I can...but I can't promisse you anything.


    There is a couple of skilled guys over at visualbasicforum.com too if it is VB you are programming in....but I hate to see you leave there just because of that....I hate that place....

  36. #36
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104
    The language is C++, with which I am less familiar than with VB, but it offers some features (such as runtime polymorphism, bit manipulations, and performance) that are superior to VB, and necessary for the program I'm working on.

    As for the question, I have posted them here, and I think both dealt more with IDE issues rather than actual programming issues. The latest had to do with using DirectInput for keyboard. While I got some answers, none of them really came close to a solution. I guess I was hoping for something along the lines of "call this first, and it'll work", which didn't happen. I suspect my problem has to do with remote debugging. I may have something set wrong such that the call to get keyboard state isn't happening correctly, but I have no clue how to solve it.

    My purpose for looking for a different forum for that question was simply that I'm at a wall, and I'm looking for info to get past it. I've done some web searches, and may have a few leads, but the problems associated with debugging full screen exclusive apps doesn't seem to be addressed very well, anywhere.

    Well, I've rambled a bit, so I might as well continue. To debug a game in full screen exclusive mode, there seem to be two options: dual monitor, or remote debugging. I have both. The dev system has two video cards, and I use a wireless LAN to debug on a laptop (which may also be an issue). If I use the dual monitor, one of the problems is that the mouse gets trapped on the primary screen, so I get to use the keyboard to navigate the debugger, which really sucks. Somehow I got the stack window off to one side of the screen, and without the mouse, I can't move it back, so I only get to see a part of it when it comes up. Currently, I get a bizarre unhandled exception when I try to debug in dual monitor, but it doesn't occur during remote debugging. The problem with remote debugging seems to be that the keyboard state is not dealt with correctly. Thus in one setup I can barely use the debugger, while in the other state I can't seem to test the game. I'm betwixt and between, and looking for info.

  37. #37
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Yeah I saw you had that keyboard issue....I saw a tutorial on how to use DirectInput at gamedev.net....you might want to look at that....


    I have never debugged DX in fullscreen. Havn't done that much DX in C++ before, and never needed it in VB. But I have also two monitors, so when I get to that part, I can try to check it ouy for you....untill then I don't have any solutions to it...sorry

  38. #38
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Once I have my new computer and a dual screen system myself, I might be able to help you there.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  39. #39
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104
    The program is pretty interesting, but it is only a hobby, so I don't get to it very often. It is based on a huge genetic algorithm that may have over 1000 loci next time I get around to writing the genome. It should be able to do some interesting learning things, and to be stuck on an IDE issue is pretty galling. I may have to add the code to allow debugging in windowed mode just to get around this.

    I'll look at the tutorial, and Corned Bee, if you have any suggestions, I'd certainly like to hear them.

  40. #40
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Here is more or less a link to it...

    http://www.gamedev.net/reference/lis...tegoryid=24#52

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width