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

Mercile55

Members
  • Content count

    20
  • Joined

  • Last visited

Community Reputation

136 Neutral

About Mercile55

  • Rank
    Member
  1. Are you sure that SetVertexBuffer will copy not only texture coords, but the texture resource too?
  2.   If you're setting same texture on all sprites, shouldn't those pointers be all the same then, or have I missed something?
  3.   This depends on the case you're testing for performance, whether it's access or management. In most cases, where add/insert/delete are being called many times, it's not a correct statement, as every such call causes whole array to be reallocated. Random access on the other hand is much faster on an array than linked list, providing that the index is known, and iterator isn't being used to find the item.     This is incorrect. Using static_cast<> with a pointer type will not call any constructors for the pointed at type. You're absolutely correct, not on a pointer.
  4. Remember that modification of the for-loop index inside the loop is one bad programming practice. It usually leads to infinite loops and computer hang ups.
  5. Just one more question for clarity. How does SetTexture get called and m_Texture set in effect ? EDIT(2): I think there's either something wrong with the LinkedList, so that for some reason, things get reset. EDIT: removed invalid statement. Other than that, check pointers to m_Texture when calling Draw for every item on the list, and compare to the root one from m_pSquare (I believe). It maybe easier if you could post complete code of the AddNode, CLinkedList constructor that is being used, and ==/!= overloads, only any code dealing with CNode and head/end objects.
  6. this will do the job :)
  7. If it's a heightmap, you should already know the A,B,C of any given triangle of the terrain (you must know at least two points on the plane to calculate third), and then use SuperVGA's formula to calculate it. Calculating collision in real-time against a terrain is a waste of time (unless it's morphing infinite terrain), and you want that time to be spent on collision detection with other things, i.e. buildings, moving objects, etc. EDIT: Also, is your Temp vector normalized, when calling DotProduct, or do you normalize inside?
  8. 1. You didn't specify what data you're passing when calling CLinkedList::AddNode(VOID*...). 2. With static_cast, you need to be sure that target type is compatible in all terms, i.e. you should not cast statically from base class to an object that derives from it, unless you're absolutely sure of its content. Remember that it will always return something that may not be valid. The null check will only protect you if source pData is null. 3. You also didn't write, how and where Clone is being used, and whether is works, when you Clone more than once. 4. Do you actually set CNode's pNext to the next node's pointer ? If the m_LLFaces.m_HeadNode points to the first CNode, then m_LLFaces.m_HeadNode.pNext will most likely be the second. That's how LL works, pNext is always the second or "this" is the last if it's NULL.   More details please.
  9. There are parsers, i.e. lex and yacc that would help you to create proper parser, but if you want to do it from scratch, all by yourself, then go ahead. Instead of doing it step by step / token by token, allow user to type if entire formula, i.e. 5+5/2 Then tokenize entered text, by splitting it into functional entities, and verify its structure, rejecting when suspicious. i.e. 1. 5 2. + 3. 5 4. / 5. 2 (if you want to handle proper operation order, like *, /, +, -, then make sure that you order entities properly. RPN is the best choice of notation, which orders entities in a simple stack format) then do the operations in the proper order, between the entities. i.e. 3,4,5: 5 / 2 => 2.5 and gives: 1. 5 2. + 3. 2.5 ... etc
  10. Just make it as a web app. Other than that: C++/python with ImageMagick + QT/GDK+ for UI?
  11. This isn't right man, try this when all Zombies are dead, and you'll end up with a crash, as when you pop_back the very first element, the iterator becomes invalid. It will be ok, as long as there's at least one element left though. It's always good idea to make sure what does and what doesn't invalidate your iterator, and avoid any such cases if possible. It saves time in the future. remove_if() does the trick for most cases, although it may not be as fast, due to additional calls overhead.
  12. Not necessarily Graphics processing, but image processing in general, i.e. image comparison, effects, i.e. extrusion, edge detection, emboss, take you pick. All of those are best suited for parallel processing. Face detection is one nice pick, and with OpenCV not so hard to do.
  13. You can also ask the Autodesk support, as every legit customer has support.
  14. Your example gives (0,-1,0). it should be: [1      0      0     ]   [0] [0  cos(90) -sin(90) ] X [0] [0  sin(90)  cos(90) ]   [1]
  15. Depends on what is it supposed to represent, but in general, you can use an image with a picture box container, or you could draw on any bitmap surface, and then put it in the picture box. Knowing the size of the board, and functionality, create a collection of areas that are in some way functional, and then work your way from there.