{"author_link":"\/users\/tetrergeru","author_name":"Tetrergeru","author_uid":"tetrergeru","comments":[],"epoch":1713993159,"event":"LD55","format":"md","ldjam_node_id":394637,"likes":0,"metadata":{"p_key":"206628","p_author":"Tetrergeru","p_authorkey":"1346764","p_urlkey":"443161","p_title":"2d-sprites + 3d-world = \u2764\ufe0f ","p_cat":"LDJam ","p_event":"LD55","p_time":"1713993159","p_likes":"0","p_comments":"0","p_status":"WAYBACK","us_key":"1346764","us_name":"Tetrergeru","us_username":"tetrergeru","event_start":"1712966400","event_key":"120","event_name":"Ludum Dare 55"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD55","removed_author":false},"_superparent":383062,"_trust":1,"author":346764,"body":"Our game \u2014 **Oversummoned** \u2014 uses many cute 2d-sprites (demons and decorations) with completely 3d surroundings (tiles and houses)\n\nAt first, we rotated sprites to look at camera, but they started to clip with 3d objects \ud83d\ude08\ud83c\udfe0. So we devised a hack: our sprites rotate only around vertical axis, and are scaled vertically by `sqrt(2)`, so they look unmodified (camera looks down at 45\u00b0).\n\n![1](\/\/\/raw\/c8a\/45\/z\/64c54.jpg)\nIn-game view\n\n![photo_2024-04-23_21-12-18.jpg](\/\/\/raw\/c8a\/45\/z\/64c56.jpg)\nEditor view and in-game view of a grabbed demon.\n\nWhen demon is grabbed player sees it turned upside-down, but actually it's parallel to the ground...\n\n![2](\/\/\/raw\/c8a\/45\/z\/64c55.jpg)\nEditor view of a demon \u2014 it is as tall as a house!\n","comments":0,"created":"2024-04-24T21:10:57Z","files":[],"files-timestamp":0,"id":394637,"love":0,"meta":[],"modified":"2024-04-24T21:12:39Z","name":"2d-sprites + 3d-world = \u2764\ufe0f ","node-timestamp":"2024-04-24T21:12:39Z","parent":392195,"parents":[1,5,9,383062,392195],"path":"\/events\/ludum-dare\/55\/oversummoned-1\/2d-sprites-3d-world-1","published":"2024-04-24T21:12:39Z","scope":"public","slug":"2d-sprites-3d-world-1","subsubtype":"","subtype":"","type":"post","version":1236480},"node_metadata":{"n_key":"394637","n_urlkey":"443161","n_parent":"392195","n_path":"\/events\/ludum-dare\/55\/oversummoned-1\/2d-sprites-3d-world-1","n_slug":"2d-sprites-3d-world-1","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"346764","n_created":"1713993057","n_modified":"1713993159","n_version":"1236480","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/55\/oversummoned-1\/2d-sprites-3d-world-1","text":"Our game \u2014 **Oversummoned** \u2014 uses many cute 2d-sprites (demons and decorations) with completely 3d surroundings (tiles and houses)\n\nAt first, we rotated sprites to look at camera, but they started to clip with 3d objects \ud83d\ude08\ud83c\udfe0. So we devised a hack: our sprites rotate only around vertical axis, and are scaled vertically by `sqrt(2)`, so they look unmodified (camera looks down at 45\u00b0).\n\n![1](\/\/\/raw\/c8a\/45\/z\/64c54.jpg)\nIn-game view\n\n![photo_2024-04-23_21-12-18.jpg](\/\/\/raw\/c8a\/45\/z\/64c56.jpg)\nEditor view and in-game view of a grabbed demon.\n\nWhen demon is grabbed player sees it turned upside-down, but actually it's parallel to the ground...\n\n![2](\/\/\/raw\/c8a\/45\/z\/64c55.jpg)\nEditor view of a demon \u2014 it is as tall as a house!\n","title":"2d-sprites + 3d-world = \u2764\ufe0f ","wayback_source":[]}