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


  • Content count

  • Joined

  • Last visited

Community Reputation

21240 Excellent

1 Follower

About alvaro

  • Rank

Personal Information

  • Location
    New York (USA)

Recent Profile Visitors

37611 profile views
  1. I don't think the issue has to do with the matrix representation, and it certainly doesn't seem to be gimbal lock to me. Have you tried multiplying the matrices the other way around? me.rotation = CreateRotation( 5.0, 0.0, 0.0 ) * me.rotation;
  2. It's not just allowed: It's completely idiomatic. Take for instance std::ios_base::openmode . I just looked at its implementation in gcc 7.1.0 and it's an enum, where a few constants have been defined as powers of 2 and you then use them like this: std::ofstream ofs; ofs.open ("test.txt", std::ofstream::out | std::ofstream::app); If you are not familiar with this idiom, you just don't know C++. [EDIT: By the way, in gcc 7.1.0 <bits/ios_base.h> defines the operators &, |, ^, ~, |=, &= and ^= for this type.]
  3. This is very strange. Can someone point me to the part of the standard that says that a variable with an enum type can only hold values that are named constants? I have looked, and I haven't found it. Also, using powers of 2 as constants so you can do bit arithmetic is so common in C that I very much doubt C++ disallows it. EDIT: I found this paragraph in section 7.2: "For an enumeration whose underlying type is fixed, the values of the enumeration are the values of the underlying type. Otherwise, for an enumeration where e min is the smallest enumerator and e max is the largest, the values of the enumeration are the values in the range b min to b max , defined as follows: Let K be 1 for a two’s complement representation and 0 for a one’s complement or sign-magnitude representation. b max is the smallest value greater than or equal to max(|e min | − K, |e max |) and equal to 2 M − 1, where M is a non-negative integer. b min is zero if e min is non-negative and −(b max + K) otherwise. The size of the smallest bit-field large enough to hold all the values of the enumeration type is max(M, 1) if b min is zero and M + 1 otherwise. It is possible to define an enumeration that has values not defined by any of its enumerators. If the enumerator-list is empty, the values of the enumeration are as if the enumeration had a single enumerator with value 0." In Hodgman's example, b min is 0 and b max is 7. So cases 0, 5, 6 and 7 are kosher.
  4. This is the  eternal issue, isn't it. What bothers me is that my brain keeps telling me that there should be a way to compress all the forces into a single equation (possibly one per particle) and find the position of the particle as a function of time. Like if you calculate two bodies influencing each other; you can (to simplify it) calculate a barycenter and simply input the point in time you want to sample their positions and voila, the equation returns the positions. There would be no need for timestep, and CPU pressure is next to nothing (compared tot he current options available, anyway). I have even done some theoretical work on how to move from two to three bodies, hoping that it will let me figure out how to do it with n bodies, but it seems a bit.... challenging. So for now, lesser methods apparently need to be used.... I really can't tell if you are trolling, at this point. I'll feed you a Wikipedia page about the subject: https://en.wikipedia.org/wiki/N-body_problem . No, you will not find an analytical solution to anything beyond n=3.
  5. If you give particles a radius, so they represent ghostly spheres that can go through each other, the force between two particles is proportional to the 1/distance^2 if they are farther away than 2 radii, but it's proportional to distance if the spheres intersect. That gets rid of the problem of huge forces when the particles are too close together.
  6.   i think formula will lok like : 1/(100-D) because for example if distance of screen from eye is 10 meter. so it means if you want goal to be look like in 100 meter so goal have to be look like 90 meter distant. am I right? +----------+ ^ | / | | / | | / | | / | | / 100 | / | +---+--- ^ | | / | | | / D | |/ | | * v v Picture the eye at the `*' in that diagram. The screen is at a distance D and the object is at a distance 100. There are two similar triangles in that diagram, so you can see that apparent_size / D = real_size / 100 So apparent_size = real_size * D / 100
  7. You are missing [at least] one important number. Let's imagine there is a screen in front of the viewer, at a fixed distance D. Then 1 meter at 100 meters of distance will appear as something at the screen with size 1*(D/100)). You can get that formula by drawing a simple picture of the situation and identifying similar triangles.
  8. I doubt he has that. Sometimes all you have is a database of previous games, where you have game situations you can feed into a neural network and have it try to predict the outcome of the game. You train an ANN to estimate the expected reward at the end of the game, which can then be used in a utility-maximization setup.
  9. I know nearly nothing about VS but, why did you make it a "Console Application" if you want a GUI?
  10. This is a huge area of study. You can easily make a PhD thesis about this, and many people have. So you have N particles that interact through gravity. You would normally model them as spheres of uniform density and fixed radius, so when two of them get really close things don't blow up. You then need to do two things per time step: (1) Compute the net force on each particle. (2) Integrate the equations of motion. (1) is the expensive part. Naively, it takes time proportional to N^2. It turns out there is some very clever trick called the "multipole method" that is explained terribly in the papers I have found, but it can approximate (to very high precision) the forces really well using time O(N). I have only ever needed a 1-D version of this and it was quite challenging. I don't know how much harder it would be in 3D.
  11. How about this? void CInputManager::SetRawButtonState(const RAW_BUTTON pButton, const bool pState, const bool pPrevState) { for(auto &context : mContexts) { if(!context.IsActive()) continue; if(pState && !pPrevState && context.MapButtonToAction(pButton)) break; if(context.MapButtonToState(pButton, pState)) break; } }
  12. No, Giraffe's Elo on CCRL 40/4 is 2411, which is quite mediocre. There are many engines that are hundreds of Elo points stronger, including my own, RuyDos.
  13. Actually, I am not so sure. There have been several attempts at using neural networks for chess, and the results are generally poor. I've tried myself without much success. My last attempt was this past weekend, when I tried to train a very simple ANN to learn the value of material imbalances (including subtleties like the strength of the pair of bishops, the loss of value of the bishop with the presence of lots of your own pawns, etc.). I couldn't get it to work better than a few hand-crafted rules, and that seems to always be the story with chess.
  14. Simplifying your code, you have xp = 50 * level * level - 50 * level Solving the quadratic equation, level = (50 + sqrt(50 * 50 + 4 * 50 * xp)) / 100 So for instance, if you plug first compute xp = 50 * 15 * 15 - 50 * 15 = 10500, you can then recover ((50 + sqrt(50 * 50 + 4 * 50 * 10500)) / 100 = 15 EDIT: Fixed some silly mistake. That's what I get for answering questions at night after a long day. :)
  15. The interpolation is done only for rendering purposes. It does not affect the Physics. Does that make things clear?