• 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

362 Neutral

About D_Tr

  • Rank
  1. I cannot remember having seen a binary number written starting with the most significant bit on the right. We are used to reading numbers starting from left with the most significant digit, so I find it more convenient to read binary numbers the same way. As for the machine, it has no concept of left and right. The only thing the machine "knows" is which wire carries a bit with a given significance. The wires in an integrated circuit carrying a number might even be layed out in a messy way in some cases.
  2. Floating point hardware is just inevitable in todays GPUs which offer such a great degree of programmability. The transistor budget is there and it is seems imposible to me to make robust physics simulations or generally sophisticated shaders with integer hardware, without important limitations. To overcome these limitations, one would find himself inventing hacks trying to approach floating point behaviour, and would end up with slower and less robust code. Suddenly floating point hardware would seem like a no brainer...
  3. It seems that everything will continue normally for at least 8 years, since 5 nm is on Intel's roadmap. It's hard to imagine anything much smaller than 5 nm being possible with technologies whose core component is photolithography... IBM has been doing research on stacking multiple die and interconnecting them vertically by thousands of interconnects per square millimeter, with special cooling micro-channels taking care of the generated heat. With such an approach it might be possible to keep increasing the computational capability and probably also drive costs down by not replacing the manufacturing equipment as often. Meanwhile, there is research in nanoelectronics, namely in methods to include trillions of transistors in a single chip. This paper (http://www.ee.washington.edu/faculty/hauck/publications/NanoSurvey.pdf) suggests that these trillions of devices will probably have to have a regular layout on the chip and that a large number of defective devices per chip will be the norm, so a method will be necessary to avoid using these defective devices. Bacterius mentioned architectural and algorithmic improvements. True, a good choice of algorithm may make a program execute thousands of times faster, and the choice of the correct architecture might speed a programm up x times, but currently we have the luxury of BOTH architectural/algorithmic improvements and a nice 2x speedup every 20-24 months. If manufacturing technology had stopped evolving in 2007, we still wouldn't be able to play Crysis 1 on a cheap gaming PC!
  4. Quick intuition-based solution (which may be wrong): If you had a circle with radius a, then for a point (x, y) on the circle, the normal vector would be just (x, y) right? (divided by the length of (x, y) to get unit vector). If you compress the circle in the y direction by a factor b/a to get your elipse, i guess that the normal vector would become (x, y*(a/b)). Correct? >.< ( Rationale: I am saying this because in order for the normal vector to the circle to stay normal to the ellipse as the circle is compressed, you need to [i]stretch [/i]the vector in the y direction as the circle is [i]compressed[/i] in the y direction)
  5. I added a link to my previous post to a page that describes the instruction and the corresponding intrinsic. The intrinsic according to the linked-to page is this: [code]__m128i _mm_slli_si128 ( __m128i a, int imm)[/code] The immediate value represents the number of bytes you want to shift the register by. I think intrinsics are the same accross all major compilers. EDIT: You can also have a look at the [url="http://www.jaist.ac.jp/iscenter-new/mpc/altix/altixdata/opt/intel/vtune/doc/users_guide/mergedProjects/analyzer_ec/mergedProjects/reference_olh/mergedProjects/instructions/instruct32_hh/vc189.htm"]movelhps[/url] instruction. It can save you an move instruction since it takes 2 register operands unlike psllqd and you do not need to copy the register before performing the instruction. As I have thought it in assembly it should look like this: [code] movaps xmm0, [X] mulps xmm0, [Y] movlhps xmm1, xmm0 addps xmm0, xmm1 movaps xmm1, xmm0 pslldq xmm1, 4 addps xmm0, xmm1 [/code] Still, it is 7 instructions long...
  6. Your heavy use of shufps is probably slowing you down a lot, especially if you have an Intel CPU older than Penryn. (Penryn introduced the "Super Shuffle Engine" which made shuffles faster). I think you can replace the shuffles with shifts and get better results. Try the [url="http://www.damtp.cam.ac.uk/cosmos/private/documentation/vtune/users_guide/mergedProjects/analyzer_ec/mergedProjects/reference_olh/instruct32_hh/vc255.htm"]pslldq[/url] instruction. You can shift the register left by 4 bytes and add it to its non-shifted self and then shift the result left by 8 bytes and add it to its non shifted version. This way you get the sum of the 4 elements on the leftmost 32 bits.
  7. I haven't played hundreds of games like other more seasoned gamers have and I still find it very hard to write just one game. But so be it! Little Big Adventure 2 is a game that I have strong emotions about. I was last year elementary school when I played it (11 years old). I had played a demo of the game and after a few days went to a retail store to buy it.. I was VERY disappointed when the guy at the store told me that the full game would be heavier than the demo and would not run well with 8 megs of RAM. Fortunately I went ahead and bought it and it actually ran fine! A truly unique game set in a strange and colorful world filled with adventure! The game's music is also great. Plenty of [url="http://www.youtube.com/results?search_query=little+big+adventure+2&oq=little+big+adventure+2&aq=f&aqi=g10&aql=&gs_sm=e&gs_upl=881l4544l0l4655l24l24l1l10l10l1l224l2081l0.11.1l12l0"]youtube videos[/url] if you want to take a look!
  8. Yes, you are close and it will all become clear when you write some programs on your own. Another advantage is that the data can (and in most cases should be) hidden (using 'private' or 'protected') so you can change the internals of the class without affecting the code that is using the class. A beginner book should explain all this, btw. Maybe it is not a book for beginners and assumes familiarity with the concepts of Object Oriented Programming...
  9. The Point example should give you some clear hints on other classes you might want to write in the future. For example if you want to work with matrices you will want to make a Matrix class. You will realize that it is far easier, more intuitive and more error-proof to work with objects of type "Matrix" than working directly with 2-dimensional arrays. A "Player" class would be another simple example. It is preferable to have your data grouped in an object and manipulate it as a whole than having a sea of variables like a string for the name, an int for the health, an array for the inventory etc... Generally, you will want to create a new class every time you decide that you need a new, custom data-type. For more complex stuff classes are even more desirable. Did this help?
  10. Am I the first to have noticed that the thread is from 2007? Because normally someone would have mentioned this!
  11. One thing is for sure: your [b]first [/b](and second and third) game engine won't be bottlenecked by the STL in any way. Plus, you also get to save time in order to devote more time into the actual game engine code.
  12. I am surely not a "grizzled veteran", but what I have to say is that when you become ready, you won't have to ask, you will know it! For the moment just keep studying and practising!
  13. Hi, I have an assignment and a subproblem of one of the problems is about solving a differential equation using the Laplace transform. The problem is it is nonlinear and so when applying the transform, I end up with both F(s) and the integral of F(s) in the same equation, so I cannot isolate F(s). I have already solved it using another technique (this was the objective of the previous subproblem). My question is: Is this possible at all? Could this be an oversight on their part? You can see the form of the equation below. Only Y and t are variables. dY/dt + (a/(b+a*t) + c)*Y = d / (b+a*t) You can see that in the second term we have Y in the numerator and t in the denominator, making the equation nonlinear... I decomposed the fraction into partial fractions in order to get only t in the denominator and apply the Laplace transform property that L(f(t)/t) = integral from s to infinity F(s)ds, but so I get another integral-differential equation... Thanks in advance.
  14. You shouldn't use strings for this because the performance will be atrocious at best, like Burnt_Fyr said, and there is a much simpler way too. You have a function that accepts an int. You didn't give details but most probably the int is implicitly split in 4 8-bit fields that each represent the value of one color component (one byte may be unused or used for the alpha (transparency) component). What you want to do is take 3 8-bit values one for each Red Green and Blue and pack them together in the int right? This can be done using simple boolean operations. For example see what the following C code does: [code] int r, g, b; r = 0; g = 255; b = 140; int packed = 0; packed = packed | ((b << 0) & 0x000000FF) | ((g << 8) & 0x0000FF00) | ((r << 16) & 0x00FF0000); [/code] Now we have an int with the following format: 00000000rrrrrrrrggggggggbbbbbbbb, which can be passed to the function you mentioned. Of course b << 0 is reduntant but I wanted to make the pattern clear. This could also be achieved using unions or bitfields in C and C++ but my personal preference would be the first way, because I don't want to even bother trying to find possible undefined behaviour/portability issues with bitfields/unions, and it is an one-liner anyways.
  15. Hey I remember you! Welcome back dude! ThoorVyk Is another guy that was very active but I have't seen a post from him during tha last 2 yaers or so.