Results 1 to 5 of 5

Thread: Directx newbie

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Talking

    I have just got the MS Dirextx 7a SDK & am battling my way through thousands of pages of explainations in their word docs provided.

    Slight problem getting my head aroung matrix's. Whilst I check the local libraries for degree level maths books, can anyone recommend any sites which explain this in a simpler manner?

    Thank you!
    Alex Read

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2

    Me too!

    I'm in exactly the same situation...any help on matrices would be gratefully appreciated.

    Matt
    VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused )

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Matrices

    You know what a variable is? (Dim A as Integer) This should be clear. Well, imagine a situation where you need many variables, ie. to store a highscore. You can make it as following:
    Code:
    Dim Place1 as String
    Dim Place2 as String
    Dim Place3 as String
    ...
    So you can store several values (names) in your list. But it would be easier to use a loop... so you can make a 1 dimensional matrix (called 'array'):
    Code:
    Dim Places(10) as Long
    Dim A as long
    
    For A = 0 to 10
       Place(A) = "User " & A
    Next
    As you can see it's much easier to handle. Now we want to store ie. coordinates, that's where we can use a 2D-matrix:
    Code:
    '10 points, each with x (n,0) and y (n,1)
    Dim Point( 10, 1 )
    
    Point( 0, 0 ) = 0
    Point( 0, 1 ) = 10
    
    Point( 1, 0 ) = 15
    Point( 1, 1 ) = -4
    ...
    I hope you get the idea.. if not search the forums, I alreaday explained matrices once...

  4. #4

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Thanks fox, I get the variable & array idea, I think this has made it clearer & I can read up with a better understanding now!

    Thank you,
    Alex Read

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5

    Try this!

    Just found this good intro to graphics programming:

    Grahics stuff. As you will see it covers the basics of 2d stuff first, then 3d and onto matrices.

    Hope this helps

    Matt

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