skullfire

Member
  • Content count

    104
  • Joined

  • Last visited

Community Reputation

357 Neutral

About skullfire

  • Rank
    Member
  1. Entities-Parts I: Game Objects

    While true, I would stay away from multiple inheritance. Entity based frameworks provide a solid architecture through componentization without having to deal with this language specific feature. Multiple inheritance is highly discouraged in general.
  2. GDnet Birthday Thread

    Great job Gaiiden. I've been along for about 10 years now, such an awesome community. I still remember an april fools where this site was changed to a dolphin sex site lOL
  3. Drawing 2d humac char in 3d

    I hope this helps! http://www.lighthouse3d.com/opengl/billboarding/
  4. Drawing 2d humac char in 3d

    Hi Nick,   What you are looking for is something called "Billboards". If the 3D camera moves, the sprites will always face the camera, always displaying the image. Games like Ragnarok Online do this. Normally what you do is just draw a quad and transform it so it's always facing the camera.  I'd link a tutorial but it really depends on what technology you are using for the iPhone app. Is it cocos3d? Unity? OpenGL?   Try looking for
  5. Hi Puyover,   In my opinion, componentization has been a very good architecture design decision for games as it provides a lot of reusability as well as elegance. In games, try to prefer components over inheritance. I'll leave this references here:   http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy/ http://www.richardlord.net/blog/what-is-an-entity-framework http://www.richardlord.net/blog/why-use-an-entity-framework   Hope this helps!
  6. Some game architect problem

    Hi lucky,   I know what you asked has probably already been answered, but looking at your design based on inheritance, I feel there's a need to at least tell you about architectural decisions in a game engine. As your game grows and you need to keep on adding functions and different classes over the inheritance system, things start to mess up. You need to copy some code from one class to another that does not directly correlate via inheritance.   Some bibliography: http://cmpmedia.vo.llnwd.net/o1/vault/gdccanada09/slides/marcinchadyGDCCanada.ppt http://www.learn-cocos2d.com/2010/06/prefer-composition-inheritance/ http://gamearchitect.net/2008/06/01/an-anatomy-of-despair-aggregation-over-inheritance/   Hope this sheds some light if not for this, for future projects. Andy
  7. Heya Cdranding,   I implemented a 3d tile system on Unity, creating the maps procedurally for the GGJ. What i ended up using was A* on top of the matrix that represented the map, and on unity just use the character motor to move the units within from tile to tile.   What I would've liked was to actually autogenerate a navmesh on the created tiled map, so that the units could move through corridors and edges in a seemingly smarter manner, as well as move in straight lines from one place to another, diagonally. I couldn't get this to work though, since apparently Unity doesn't support seting another navmesh on existing actors   Good luck!
  8. Nice to see you again Crono! Been a long time since we worked together on that Blitz project! Thanks for the release on this stuff.     Is the new MMO toolkit based on Unity or is it entirely written from scratch?   Spanish: Que bueno verlo que sigue por aca! Los links de teleport vi que ya no existian, y buscando cronodragon por todo lado no encontre info nueva! Pense que habias dejado la escena hace mucho! Good to see you!
  9. OpenGL Color swapping on OGL ES 2

    A fragment shader would be cool, but i think iPhone does not support shaders at the moment :S AverageJoe, do u mean that i create a mask in photoshop and then render this map with some kind of blending function on ogl? What do u mean?
  10. Hi all. I am creating a 2D game on OGL ES for iPhone. I want the player to be able to customize his character's color (For example, his character is a dog. He could change his main color to brown, white, etc). Now, lets suppose this is the image of my dog (thanks google images): http://dogs.thefuntimesguide.com/images/free/puppy-dog-face.jpg As you can see, he has different shades of brown, and some parts of the image which will not be colored/tinted (tongue, eyes, teeth, black outline). What is the best way to do this coloring? Is there a way could define a grayscale image (texture?) and add color to this? Ive searched on google, and found this: http://stackoverflow.com/questions/662440/palette-animation-in-opengl "Currently I am doing it with 2 textures: white texture under the other texture, translated the specific pixel color into transparent, then I change white texture color with glColor3f() function to what ever I want, and I see the "palet animation" on that specific color." This seems to be kinda what i want, but will the glColor color the gray's accordingly? I dont have too much experience with OGL, so any help or guidance will be greatly appreciated! :)
  11. OpenGL 2D clip

    Thank you very much! I currently made the crappy layer subdivision solution, but this is in fact what i was looking for! I was going the wrong way with glClipPlane :( Thanks again man!
  12. Hey guys, long time no post. I've been doing a game in 2D using ogl for some time. I am kinda new to opengl but i manage. I am kinda stuck though when trying to make some kind of clipping to the thngs i am drawing. I have an image of a television. When i turn it on on my game, i want it to render the game inside the television (so basically, i want a the scene to be rendered only on this rectangular region, and any part of the scene outside this television will not be drawn). I could fake this by separating the tv into layers, one at the front (frame) then back, and then draw the scene in between. Thing is, i dont want to do this. Is it possible to set like a clip or something similar in open gl? Thanks in advance!
  13. String vs char arrays

    Quote:Original post by rip-off Quote:Original post by skullfire What platform? If its not a limited one (like gba, or something like taht), stick with strings. Easier to handle and less of a hassle. Then again, if you are using a lot of libraries to use your strings (and they require char arrays), consider using char*. Have you been introduced to std::string::c_str()? @ Antonym Use std::string unless you can give an excellent reason not to. The alternative is lots of manual memory management, or fixed size strings. Quote: why do people use char* instead of char[] I mean I sort of know how it works but why is the former method prefered? The two are quite different. char [] is used in a local function or type to create a fixed size array. char * is used to point to a dynamically sized array, an array that must outlive its function or when passing any array to a function. You cannot actually pass an array to a function by value, you can only pass by reference or decay to pointer. Quote: I've been working with directX and it always uses char*. You will find that many (maybe even the vast majority of) APIs use raw char arrays because it places the fewest demands on calling code. In particular, C APIs don't have a choice. Of course... i meant that if you are using full char array libraries, it might be more efficient just using plain char arrays instead of calling c_str function all the time. :)
  14. String vs char arrays

    What platform? If its not a limited one (like gba, or something like taht), stick with strings. Easier to handle and less of a hassle. Then again, if you are using a lot of libraries to use your strings (and they require char arrays), consider using char*.
  15. Improved Alpha Magnification

    Screw people with crappy graphics cards :D Speaking seriously though, I would like to see the difference of this kind of text versus the crappy bitmap font one (both on the same UI for example). I suppose saying "screw it" is good enough if the rest of the features of the game you are developing will only run ok on decent graphic cards, otherwise you should probably stick with support :P