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

xissburg

Members
  • Content count

    629
  • Joined

  • Last visited

Community Reputation

204 Neutral

About xissburg

  • Rank
    Advanced Member
  1. Well, the front of the car is hitting the floor so it should received a great impulse, but it looks like your is kinda light and consequently has a low moment of inertia. You could try to edit the collision shape to have a higher front, just to get rid of that undesired effect.
  2. You could use the tangent of the angle of the dir vector. Depending on the direction it is pointing, you use a different formula based on the angle of the diagonal of the AABB. I've came up with this: [source lang="cpp"] // WARNING: Untested code Point Intersect(Point min, Point max, float alpha) // alpha is the dir vector angle { float beta = atan2(max.y - min.y, max.x - min.x); // AABB diagonal angle float hw = (max.x - min.x)*0.5; // AABB width/2 float hh = (max.y - min.y)*0.5; // AABB height/2 float tanAlpha = tan(alpha); if (fabsf(alpha) < beta) // right section return Point(max.x, min.y + hh + tanAlpha*hw); else if (fabsf(PI - alpha) < beta) // left section return Point(min.x, min.y + hh - tanAlpha*hw); else if (fabsf(PI*0.5 - alpha) < PI*0.5 - beta) // top section return Point(min.x + hw + 1.f/tanAlpha*hh, max.y); else if (fabsf(1.5f*PI - alpha) < PI*0.5 - beta) // bottom section return Point(min.x + hw - 1.f/tanAlpha*hh, min.y); else // should not happen o_ O return WTF; } [/source]
  3. Ouch. You better create a simple rotation matrix for each axis and multiply(compose) all three to obtain the final rotation matrix.
  4. Rotation matrices can perform reflections, also known as improper rotations, roto-reflections etc. One way to find out whether a rotation matrix represents an improper rotation is to check whether its determinant is negative. Can a quaternion represent such transforms? How to make a reflection quaternion? Thanks.
  5. Least Square Method
  6. It is calling Shape::area because o object slicing. Try using pointers instead: for(std::vector<Shape*>::iterator it = shapes.begin(); it != shapes.end(); it++) { Shape *s = *it; s->area(); }
  7. Displace your weapon so that it will be at the desired location 'relative to the camera' then multiply its transform by the camera matrix, which should rotate it and translate it properly. If you still dont get it, show us some code.
  8. GJK + Conservative Advancement = FTW
  9. I think there's nothing wrong with the Direct3D rendering code. I think the order of the vertices is not correct. I don't know which corner BoundingBox.GetCorner(i) returns.
  10. Quote:Original post by pinacolada The title of this thread is pretty funny if you cut it off at the right place: yeah I actually thought this was a joke..
  11. Use double pointer IDirect3DDevice9** as parameter to the init()method.
  12. Oh it was the color that was set using glColor . . . this is what happens when you copy-paste code...lol Thanks
  13. Quote:In order to easily draw a 2D interface in front of a 3D scene, is it possible to save a GL_PROJECTION matrix and load it as a GL_MODELVIEW matrix? Cant get what you mean. If you are going to draw a 2D GUI you should set an ortho projection matrix. Then first draw the 3D stuff and then set an ortho matrix and draw the 2D stuff over everything, using textured quads, with some transparency or so. And you dont need to specify the z position for this 2D stuff, you dont want them to intersect the 3D stuff do you? And you want to compute frames per [b]second[/i] without using a timer??? Id like to know how to do this =)
  14. 3ds Max can do this operation on splines, it is called outline: But if you exaggerate in the parameter the spline overlaps itself.
  15. To load a texture from file and properly render it in OpenGL has been seriously boring me and...well that turned into a whole history now.. Since I'm using SDL in the project, I chose to use SDL_LoadBMP to load a texture (this project is very simple CG wise). And SDL loads it, and correctly. But when I render it as a texture in OpenGL The texture gets a greenish-brownish appearance. Then I loaded a texture with 100% red, blue and green large strips, took a screenshot of my app and color picked it in Photoshop (lighting is off). Then I noticed that the red and green are at 100% but the blue is at 50%. I really don't know what else I can do :/ HALP My simple load texture code: SDL_Surface* surface = SDL_LoadBMP("groundTexture.bmp"); if(surface == NULL) { std::cout << "Failed to load groundTexture.bmp" << std::endl; return; } Uint8 nOfColors = surface->format->BytesPerPixel; GLenum textureFormat = GL_RGBA; if (nOfColors == 4) // contains an alpha channel { if (surface->format->Rmask == 0x000000ff) textureFormat = GL_RGBA; else textureFormat = GL_BGRA_EXT; } else if (nOfColors == 3) // no alpha channel { if (surface->format->Rmask == 0x000000ff) textureFormat = GL_RGB; else textureFormat = GL_BGR_EXT; } glGenTextures( 1, &groundTexture ); glBindTexture( GL_TEXTURE_2D, groundTexture ); glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR); glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); //glTexParameterf(GL_TEXTURE_2D, 0x84FE, 8);//hardcoded anisotropy glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT); glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT); gluBuild2DMipmaps(GL_TEXTURE_2D, nOfColors, surface->w, surface->h, textureFormat, GL_UNSIGNED_BYTE, surface->pixels); /*glTexImage2D( GL_TEXTURE_2D, 0, nOfColors, surface->w, surface->h, 0, textureFormat, GL_UNSIGNED_BYTE, surface->pixels );*/ glBindTexture(GL_TEXTURE_2D, 0); Thanks