• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By aymen
      please any know how can i' calculate the centroid from any number vertices
    • By Henry Fernandez
      Good day sir/maam. I am developing a game for my thesis and im done with multiplayer and plan to start the implementation of AI but i dont know how/where to start. Please give an advice. I am developing it in C# using UNITY. 
      Im am now collected all pieces that has possible moves but i am stuck on which best move to select. I hope you will help me. This is link explained the game https://en.wikipedia.org/wiki/Game_of_the_Generals 

    • By Priceman
      Firstly, hello to everyone.
      So, as the title says, i'm looking for a bit of direction for designing and programming my game idea. What i'm essentially trying to do is create a 2d side scroller along the lines of such titles as Dust: An Elysian Tail, Ori and the Blind Forest, or the Odin Sphere series. I'm currently taking courses on Udemy to learn unity and C#. I chose this route since one of my favorite indie dev studios, Ska Studios, use it making their games. I'm already a decent artist and animator, so I just need something to put the pieces together. I guess i'm looking for an opinion on if this is the best route to take for someone completely new to game development and programming. I've looked into engines like gamemaker, but for what I have in mind (progression systems, inventories, etc) it didn't seem like the way to go. RPGmaker and Unreal also don't seem to be right for what I have in mind. 
      Anyway, thanks for taking the time to help.
    • By fr0st2k
      Hello All.
      I have been working with a small team the last few months on development of a mobile RPG/gacha game, inspired by games like: Brave Frontier, Summoners War, One Piece Treasure Cruise, and even Diablo. 
      The idea behind the game is to create a fun collection game that has a good amount of strategy, with a focus on creating a true game for gamers.  Not a corporate run money grabber like the majority of mobile games.
      We have done a lot of work already on the game, however, I am at a point now where I need dedicated team members who have a passion for game development and the project.
      Take a look at some of the screenshots of the game to get an idea of where we are.
      The game involves collecting characters, and leveling them, to compete against more difficult encounters.  I took a lot of inspiration from my days playing Diablo 2.  If you boil down diablo's gameplay mechanics, you get a core game based around efficiency.  The better your items, the faster you can clear zones to the bosses, and the safer the battle with the bosses are.  After you kill the boss, you pull a slot machine lever and get more items.  The better your character(and skill), the more chances you get at pulling that slot machine lever.
      This game uses that core mechanic in a mobile environment.  Instead of running through Act3 to mephisto, you send your characters out on an 'explore' mission.  A specific amount of time goes by based on your characters power, then you fight a strategic boss fight, where you can win loot.  The explore times range from a few minutes, to hours/days.  You can speed up that time by playing a 'tap' game, similar to Tap Titans.  
      It is a great formula, and even without proper balancing, the game is already shaping up to be a lot of fun.
      --- What I need moving forward:
      Team requirements:
      1. Lead developer / Senior Programmer (unity)
      We need someone who is very fluent in unity game development, and someone who can lead a team of newer programmers. If you have been looking for a project that you can take control of, or need some resume building work that will provide a finished product to show off, this is a great position to fill, as the game is nearly complete already.
      Ideally, this candidate would be proficient in unity client and server side programming
      If you are interested in the position, we can talk profit sharing once the app launches.  (contracts will be required)
      2. Programmers
      If you are newer to programming, or just want to sharpen your skills and gain some experience on a game development team, reach out.  I'd be interested in talking to you and seeing if you are a good fit. 
      I suspect an NDA might be required, but other than that, this position would be great to hop in and out of, and again, would be a great way to contribute to a great project and gain valuable experience.
      3. Pixel Artist / Spine animator
      Either or.  I am currently getting art from a team out in Indonesia.  They are great, but hard to communicate with.  I'd love to have a dedicated artist with Spine(or any alternative 2d pixel animation) experience.  
      If you have interest in joining this team, please reply back.  Again, i'd like to reiterate, this is primarily a hobby based project.  However, it will eventually hit the app store and (ideally)generate income.  All team members will be a part of that revenue stream.
      Please respond with any questions, would be happy to respond.

    • By Nostalgic Saint

      Trap.io is a game where you collect the trap power-ups and place them and then lead the corresponding enemy (based on color) into the trap to destroy the enemy and score points.The game is endless easy to play difficult to master. The game features highly fast paced combat with an arcade-like feel to movement, to bring back the nostalgia from the past retro space shooter games. With addictive fast paced gameplay a mistake might be your last, keeping up with the fast paced flow games typically lasting 2 minutes, this game is all about fast movement and quick thinking with an element of strategy to trick your cunning, wity enemies into the traps to score points

  • Advertisement
  • Advertisement
Sign in to follow this  

Unity matrix manipulation. oh this is bad.

This topic is 3062 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey there. for skeletal animation from a X file in my game i used this tutorial : http://www.gamedev.net/community/forums/post.asp?forum_id=11&gforum_id=0&method=post for most of the time i didnt use skinning so i removed it's code and everything worked fine. my matrix manipulation looked like Animation matrix * World matrix. now i got a new X model that does use skinning so i added back the skinning code only to discover my animation manipulation turned into Skinning matrix * Animation matrix * World matrix *. this made it so the character didnt go to the direction it was suppoused to(also rotated wrong too). so i changed it to : skinning matrix * animation matrix * world matrix. this fixed the character going to the wrong direction,but now it seems that when i rotate the character,instead of rotating around itself it rotates around a point in object space(this point is where the character is suppoused to stand). i've been debugging this for a while and cant seem to solve it. i dont think it's the world matrix that is wrong since i didnt change it and it was fine before i added skinning... anyway,this part is where i do the manipulation:
// Create the bone matrices that transform each bone from bone space into character space
		// (via exFrameCombinedMatrixPointer) and also wraps the mesh around the bones using the bone offsets
		// in exBoneOffsetsArray
		for (unsigned int i = 0; i < Bones; ++i)
			D3DXMatrixMultiply(&boneMatrices,&pMesh->exBoneOffsets, pMesh->exFrameCombinedMatrixPointer);//skinning matrix * animation matrix
			D3DXMatrixMultiply(&boneMatrices,&boneMatrices,matWorld);//(skinning matrix*animation matrix)*world matrix

Share this post

Link to post
Share on other sites
If something "rotated wrong" or "didnt go to the direction it was suppoused to" or is "going to the wrong direction", the problem is that you don't understand it well enough to fix it.

If you did understand the math involved, you would be able to look at each step and verify that each matrix and vector is correct. Once you understand the math, it is easy to identify and fix these bugs since you can just follow the data all the way through the pipe.

The machine is doing exactly what you told it to do. The real "bug" is that you don't understand what you are doing.

I suggest that you get comfortable with some books that cover the math. Work through the books until you can do all the math on paper.

Until you can do the math yourself, you cannot explain the math to your computer in code.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement