• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
superman3275

Superman[3 2 7 5] (Vector! Yes!) Needs Help

3 posts in this topic

Can someone show me some applications for matrices in 2d graphics programming, or other facets of linear algebra being used in game programming. I just don't see where a lot of these topics are very useful yet?
0

Share this post


Link to post
Share on other sites
[quote name='superman3275' timestamp='1349306005' post='4986581']
Can someone show me some applications for matrices in 2d graphics programming, or other facets of linear algebra being used in game programming. I just don't see where a lot of these topics are very useful yet?
[/quote]
SFML uses [url="http://www.sfml-dev.org/documentation/2.0/classsf_1_1Transform.php"]matrices[/url] to position, rotate, and scale [url="http://www.sfml-dev.org/documentation/2.0/classsf_1_1Transformable.php"]sprites[/url]. This matrix is used when rendering the sprites to transform the vertices into the right positions.

Also, please choose better thread titles. You don't need to put your name in it saying you need help (that's pretty obvious by the fact that you're creating a thread). Rather, help people know what it is you're asking about (for example, title it something like "Applications for matrices in 2D graphics programming?").
0

Share this post


Link to post
Share on other sites
Sorry, I just felt kind of clever with that matrix (My name is a vector, get it! No, no, okay, I'm sorry). Yes, that makes sense, I'm using SFML though. If I was using SFML would there be a point in matrices or does SFML do all the matrix math for me.
0

Share this post


Link to post
Share on other sites
Ah, I see, I missed the joke :)

[quote name='superman3275' timestamp='1349307648' post='4986589']
Sorry, I just felt kind of clever with that matrix (My name is a vector, get it! No, no, okay, I'm sorry). Yes, that makes sense, I'm using SFML though. If I was using SFML would there be a point in matrices or does SFML do all the matrix math for me.
[/quote]
Depends on what you want to do. It'll generally do the matrix stuff for you (i.e. you can say move/rotate/scale by this much and it'll manipulate the matrix for you), but if you want to [url="http://en.wikipedia.org/wiki/Shear_matrix"]shear[/url] or [url="http://en.wikipedia.org/wiki/Transformation_matrix#Reflection"]reflect[/url] or apply other affine transformations, you need to know how to do it yourself, as SFML doesn't supply helper methods for doing these things.

You also need to understand how matrices work, at least, because when you [url="http://en.wikipedia.org/wiki/Concatenation_(mathematics)"]concatenate[/url] matrices (i.e. multiply them together into one matrix), order is important. You need to at least understand if you should rotate before translating, for example, and in which order to combine different matrices in order to get the right effect (or else you'll get it backwards).

You don't have to know a ton of linear algebra to use SFML or similar libraries that'll handle much of the matrix manipulating for you, but it certainly helps.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0