{"__v":0,"_id":"5508146e0c4d8c19008a5f89","category":{"__v":4,"_id":"5508125c0c4d8c19008a5f83","project":"543b9b0065bf840e00b473d5","version":"543b9b0065bf840e00b473d8","pages":["5508146e0c4d8c19008a5f89","550a98fbcd78a42300ddf452","55221f064801a40d00a77611","552222ad4d96e419003c36f3"],"reference":false,"createdAt":"2015-03-17T11:39:08.949Z","from_sync":false,"order":7,"slug":"developer-faq","title":"Developer FAQ"},"project":"543b9b0065bf840e00b473d5","user":"543b9aa865bf840e00b473d1","version":{"__v":11,"_id":"543b9b0065bf840e00b473d8","project":"543b9b0065bf840e00b473d5","createdAt":"2014-10-13T09:27:28.467Z","releaseDate":"2014-10-13T09:27:28.467Z","categories":["543b9b0065bf840e00b473d9","543b9ef065bf840e00b473e0","54890012f291f61400c02d36","54890902f291f61400c02d3e","54890c43f291f61400c02d44","54890d71c178b40b00aa3086","5508125c0c4d8c19008a5f83","55094050961f17170070abbd","550945111c38c50d006118ad","550a4c2e42fff40d00ae6049","55221c074801a40d00a77610"],"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"createdAt":"2015-03-17T11:47:58.801Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"order":2,"body":"A few of our kit owners have asked a question like this example:\n\n*On the technical side, I would like to change the camera to a perspective camera and use your grid system to snap 3D objects / buildings instead of sprites, do you think it's possible ?* \n\nShort answer: Yes. It's possible. Here is what a full 3D conversion would mean, what would change, and what would stay the same:\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Replace 2D Sprite Processing with 3D Object Processing\"\n}\n[/block]\nConverting from 2D would be simple, but pretty big. You'll first want to replace the sprite processing that we have with 3D object processing - not such a big deal, since most of these operations are Unity and not 2D Toolkit dependent (parents, children, components, etc).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Adjust the Camera\"\n}\n[/block]\nFirst of all, with 3D, 2DToolkit is no longer needed, and this includes the camera, which is pointed in front right now. In a perspective view, the ground will be perpendicular to our current view, and the camera would have to look down on that, in order to use gravity for everything. \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Convert the Building Grid\"\n}\n[/block]\nThe buildings movement would also change, but remain in steps (snap at predetermined incremented values). This assumes that in places where you can build, the terrain is rather plane, even if it is terraced at different elevations. We recommend your buildings to have 'weight' and glide following the terrain shape. \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"PvP and NPC Pathfinding\"\n}\n[/block]\nThe pathfinder would have to be reoriented on a different axis, but it would remain perfectly plane, with corresponding obstacles on it to tell the units where to go.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"For Advanced Developers\"\n}\n[/block]\nThe above is just a brief summary of the key changes. Because our kit was designed for 2D, it won't be easy for a full 3D conversion unless you understand Unity. For experienced developers, yes, it's technically possible once you become familiar with our kit.","excerpt":"","slug":"convert-to-a-3d-game","type":"basic","title":"Convert to a 3D Game"}

Convert to a 3D Game


A few of our kit owners have asked a question like this example: *On the technical side, I would like to change the camera to a perspective camera and use your grid system to snap 3D objects / buildings instead of sprites, do you think it's possible ?* Short answer: Yes. It's possible. Here is what a full 3D conversion would mean, what would change, and what would stay the same: [block:api-header] { "type": "basic", "title": "Replace 2D Sprite Processing with 3D Object Processing" } [/block] Converting from 2D would be simple, but pretty big. You'll first want to replace the sprite processing that we have with 3D object processing - not such a big deal, since most of these operations are Unity and not 2D Toolkit dependent (parents, children, components, etc). [block:api-header] { "type": "basic", "title": "Adjust the Camera" } [/block] First of all, with 3D, 2DToolkit is no longer needed, and this includes the camera, which is pointed in front right now. In a perspective view, the ground will be perpendicular to our current view, and the camera would have to look down on that, in order to use gravity for everything. [block:api-header] { "type": "basic", "title": "Convert the Building Grid" } [/block] The buildings movement would also change, but remain in steps (snap at predetermined incremented values). This assumes that in places where you can build, the terrain is rather plane, even if it is terraced at different elevations. We recommend your buildings to have 'weight' and glide following the terrain shape. [block:api-header] { "type": "basic", "title": "PvP and NPC Pathfinding" } [/block] The pathfinder would have to be reoriented on a different axis, but it would remain perfectly plane, with corresponding obstacles on it to tell the units where to go. [block:api-header] { "type": "basic", "title": "For Advanced Developers" } [/block] The above is just a brief summary of the key changes. Because our kit was designed for 2D, it won't be easy for a full 3D conversion unless you understand Unity. For experienced developers, yes, it's technically possible once you become familiar with our kit.