• 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.

Archived

This topic is now archived and is closed to further replies.

Blight

Matrix math and physics in VB(.NET)

5 posts in this topic

Hi all, I''m trying to implement a rigid-body physics engine using VB.NET SP2 as the prelude to a game engine, and have a couple of questions: 1. Matrices: row, column or column, row? Not sure if this question really matters, but I''ve seen some people refer to their matrices by the former, others by the latter. I assume it does matter (particularly for transformations and other matrix operations), anyone got any comments on this? Is there a "standard"? 2. Momentum or velocity? I need to keep track of my rigid body''s movement (bad choice of word, but anyway), but is it better to track the momentum of the object (i.e. linear momentum is a function of the mass and linear velocity?) or the velocity of the object? I''ve read conflicting reasons for both and wondered if someone who had actually built a physics engine could advise me on this... I assume this would also be the case for angular momentum vs angular velocity... 3. Done it all before? I''m trying to catch up on my vector and matrix math, and also my Physics knowledge (wow... ten years off and I have forgotten sooooo much , so I''m building it all from scratch i.e. coding my own vector and matrix routines, rather than relying on DirectX functions. Has anyone done a physics engine in VB(or VB.NET) before? I''m not looking for the code, just interested to know if people have done it - I''ve been converting code fragments of C++ and boy does it look ugly in VB.NET ;> I''m hoping to complete it and post it as an Open Source mini-engine for other VB-minded people out there, who are likewise embarking on the fast-track physics road. Sources: I''ve pretty much scoured gamedev.net (man this site rocks!), gamasutra, and gamegarage.com for articles, etc. while building my (their?) engine. Blight P.S. Yes, I know VB is slower/hamstrung compared to C++, but I don''t know/am not interested in learning C++. Don''t forget to donate to save GameDev.net!!!
0

Share this post


Link to post
Share on other sites
Well, i''m kinda working on the same thing: A physics engine for .Net. I had the beginnings of a physics engine in VB6 it worked quite well for the amount of work I put into it. Now I''m converting and re-building it for .Net. (haven''t decided on vb.net or C#.

I''m still in the beginnings of the "re-build". I''m taking my time, trying to get the design right. Plus i have to learn .Net as I go so that takes a little more time.

I do have a small Math class which has some of the basic vector and matrix equations. I can send it to you if you''d like. (better yet, i will post it on my website.)

You read more about my project at http://www.farseer.com

I still have my vb6 engine and some demos there. Maybe you could look at it and get some ideas. (maybe. )
0

Share this post


Link to post
Share on other sites
Hey crash,

Thanks for your reply - I didn''t think I was going to get one at all

Just checked your site and downloaded the sample code you had there (cool site by the way and that''s looks great! I was particularly interested in your Moment of Inertia calculations, as that''s the bit I''m working on at the moment...

I''ve based my VB.NET classes on this article:
http://www.gamasutra.com/features/19990702/data_structures_01.htm

which is an example C++ data structure for a Rigid Body using OO principles that I have converted. I''d be happy to send it to you if you think it would be useful (it compiles and - shock horror - even appears to work . I''m trying to use it as the basis for the work that Craig Reynolds has done on "Steering Behaviours for Autonomous Characters" (http://www.red3d.com/cwr/steer/ it has some really cool java samples and an online doc he presented at gdc99, you''ve probably seen it) in the hopes of one day implementing it into a MMORPG that can exhibit "real" physics. *sigh* such extravagant plans for the future

Anyway thanks again for your reply, look forward to seeing the results of your project. Let me know if there''s anything that I can do to help.

Blight
0

Share this post


Link to post
Share on other sites
I''ll take a look at that gamasutra link. I''d love to have a look at your .Net code. You can send it to jeffreyweber@hotmail.com if you wouldn''t mind. Or post it where I can get to it.

Some of my first demos, the flocking, and predator prey, used the methods from Craig Reynolds steering behaviors site. Very cool stuff. I''m hoping to implement a "Agent" engine along with (or more likely built on top of) my physics engine.

My moment of inertia calculations came from a couple papers. (see the links on my website.) That is the most complex stuff in my vb6 engine, but it pales in comparison to the complexity of collision detection. (good collision detection.) I started working on that for my vb6 engine, but now have put it off until I can add it to the .Net engine.

Anyway, nice to know i''m not the only one doing this stuff without using C++
0

Share this post


Link to post
Share on other sites
I''ll take a look at that gamasutra link. I''d love to have a look at your .Net code. You can send it to jeffreyweber@hotmail.com if you wouldn''t mind. Or post it where I can get to it.

Some of my first demos, the flocking, and predator prey, used the methods from Craig Reynolds steering behaviors site. Very cool stuff. I''m hoping to implement a "Agent" engine along with (or more likely built on top of) my physics engine.

My moment of inertia calculations came from a couple papers. (see the links on my website.) That is the most complex stuff in my vb6 engine, but it pales in comparison to the complexity of collision detection. (good collision detection.) I started working on that for my vb6 engine, but now have put it off until I can add it to the .Net engine.

Anyway, nice to know i''m not the only one doing this stuff without using C++
0

Share this post


Link to post
Share on other sites
btw, Blight, what are you using for the "visible" part of you game? Are you using an engine, or writing your own DirectX code, or something else?
0

Share this post


Link to post
Share on other sites