• 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
ryan mccabe

Math for 3d programming

4 posts in this topic

Just picked up the book Mathematics for 3d Game Programming by Eric Lengyl and Ive realized I need a precursor to it. My last math course was math 30 pure and I'm finding it hard to find something to fill the gap. The book starts with vector math for example, googling it for tutorials hasn't gotten me anywhere. There are tutorials but the dont match up with the proofs in the book. Most of what I see in the book I can work out but the proof for ||[i]a[/i][b]P[/b]|| = |[i]a| ||[/i][b]P[/b][i]|| [/i]is completely beyond me. Maybe its just the normalized notation thats throwing me off but why the root sum of a^2 P^2 is |[i]a| ||[/i][b]P[/b][i]|| [/i]confuses me. Why do the variables get normalized when the square root is taken, if I'm writing that right (dont know how to post mathematical notations)?

Anyone know of a good place to get the gap between highschool math and this book filled in? Ill be taking university math courses in the fall as prep for 3d game programming but for now Id like to work through this book.

Thanks,
Ryan.
0

Share this post


Link to post
Share on other sites
||apP|| = |a||P|: This is true assuming a and P are vectors facing the same or opposite directions. After all, a*P = |a||P|cos(theta) so |aP|=|a||P||cos(theta)|, where theta is the angle between a and P. So if theta=0, |a*P| = |a||P|*1=|aP|. If theta=pi, |aP|=|a||P||-1|=|aP|.

a^2*P2 = |a||P|: This is not true at all. It implies a^2=|a| and P^2=|P|, when in fact |a|=sqrt(a^2). If you give a and P values (like a=<x0,y0> and P=<x1,y1>) you can instantly disprove that statement except for when |a|=1 and |P|=1.

Vectors are normalized after taking the square root: Again, not true. A vector is normalized when it is of length one. This happens when you divide a vector by its magnitude.[code]//Example
a=<3,4>

|a| = sqrt(9 + 16) = 5
n = a/5 = <3/5,4/5> // n for Normal
|n| = sqrt( 9/25 + 16/25) = 1[/code]

Either what you're reading is inaccurate or there are some things you're not understanding yet. Hope this helps.
0

Share this post


Link to post
Share on other sites
[size="2"][color="#1C2837"]a^2*P2 = |a||P| [i]i think [/i]should read sqrt([/color][font="sans-serif"]?a[sup]2 [/sup]P[sub]i[/sub][sup]2[/sup]) = [/font][/size][color="#1C2837"][size="2"]|a||P|, where i=1. I'm sure its me and not the book, but your post is concise enough that I think I know what to read up on now to get a proper foothold.[/size][/color]
[color="#1C2837"] [/color]
[color="#1C2837"][size="2"]Edit for future reference: |a| ||P|| = ||aP|| is referring to [/size][/color][font=sans-serif][size=2][url="http://en.wikipedia.org/wiki/Absolute_value"]Positive homogeneity or positive scalability[/url]. |a| is an absolute scaler while ||P|| is a magnitude.[/size][/font]
0

Share this post


Link to post
Share on other sites
[quote name='ryan mccabe' timestamp='1303324712' post='4800875']
Most of what I see in the book I can work out but the proof for ||[i]a[/i][b]P[/b]|| = |[i]a| ||[/i][b]P[/b][i]|| [/i]is completely beyond me. Maybe its just the normalized notation thats throwing me off but why the root sum of a^2 P^2 is |[i]a| ||[/i][b]P[/b][i]|| [/i]confuses me.
[/quote]

Let [b]P[/b] be a vector and [i]a [/i]a scalar. There are scalars [i]x_1, x_2, x_3[/i] such that [b]P[/b] = ([i]x_1, x_2, x_3[/i]). [i]a[/i][b]P[/b] = ([i]ax_1, ax_2, ax_3[/i]) is always a vector by the vector space axioms. So just take the norm of [i]a[/i][b]P[/b]:.

||[i]a[/i][b]P[/b]|| = sqrt( ([i]ax_1[/i])^2 + ([i]ax_2[/i])^2 + ([i]ax_3[/i])^2) = sqrt([i]a[/i]^2([i]x_1[/i]^2 + [i]x_2[/i]^2 + [i]x_3[/i]^2)) = sqrt([i]a[/i]^2) * sqrt ([i]x_1[/i]^2 + [i]x_2[/i]^2 + [i]x_3[/i]^2) = |[i]a[/i]| ||[b]P[/b]||. I don't know of any books for bridging the gap. This stuff comes from vector calculus but you also see it in linear algebra.
1

Share this post


Link to post
Share on other sites
If you do a search on youtube for Linear Algebra MIT, you can find an entire semester's worth of Linear Algebra courses that should give you all the groundwork you need.
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