{"id":25,"date":"2017-06-18T09:03:50","date_gmt":"2017-06-18T09:03:50","guid":{"rendered":"https:\/\/blogs.scummvm.org\/yinsimei\/?p=25"},"modified":"2022-05-24T09:07:03","modified_gmt":"2022-05-24T09:07:03","slug":"gsoc-week-4","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/yinsimei\/2017\/06\/18\/gsoc-week-4\/","title":{"rendered":"GSoC Week 4"},"content":{"rendered":"<h1>GSoC 2017: Sludge Engine Week 4<\/h1>\n<h1>Week task conclusion<\/h1>\n<p>Generally, this 3rd week of GSoC project was good: the input works and we are able to reallly \u201cplay\u201d the game. Bugs are cleared for the game demo Verb Coins now and there are only z-Buffer stuff left to get it fully work.<\/p>\n<p>Again, thanks to my mentors _sev(Eugene Sandulenko), t0by(Tobia Tesan) and all scummvm team members that has helped me on input and bug fixes during this week.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/blogs.scummvm.org\/yinsimei\/wp-content\/uploads\/sites\/61\/2022\/05\/null.png\" \/>\u00a0\u00a0\u00a0<img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/blogs.scummvm.org\/yinsimei\/wp-content\/uploads\/sites\/61\/2022\/05\/null1.png\" \/><\/p>\n<p>To make a brief conclusion about what we have and have not achieved for<b>\u00a0this week<\/b>\u00a0:<\/p>\n<p><b>Tasks completed<\/b>:<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<ol>\n<li><a href=\"https:\/\/github.com\/yinsimei\/scummvm\/commit\/7d30388af1337e25c24a72c39851d363b9f40ab6\">game input<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/yinsimei\/scummvm\/commit\/2350143c218b7895661aba5b749efd9bed57ccf6\">freeze\/unfreeze scene<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/yinsimei\/scummvm\/commit\/e2ba01c5f6ce885700fa29e719091092091264d3\">Add character interaction<\/a><\/li>\n<li>object inventory =\u00a0<a href=\"https:\/\/github.com\/yinsimei\/scummvm\/commit\/e4e2538414fcfb840298606e9a298e88e3ffc5b9\">dark screen effect<\/a>\u00a0+\u00a0<a href=\"https:\/\/github.com\/yinsimei\/scummvm\/commit\/b5a2daf63e7c97e511937e4582cf2a9a8c3cd3d6\">paste image to background<\/a><\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To resolve later:<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<ol>\n<li>When setting opacity for transparent surface blitting, we need to modify the second parameter of TS_ARGB() instead of the first one, which is strange.\u00a0<a href=\"https:\/\/github.com\/yinsimei\/scummvm\/blob\/newWIP1-1\/engines\/sludge\/backdrop.cpp#L899\">Related line<\/a><\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>What\u2019s for next week: z-Buffer Image &amp; new game<\/h1>\n<p><b>Tasks for next week :<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<ol>\n<li>Get\u00a0<a href=\"https:\/\/opensludge.github.io\/opensludge\/doc\/SLUDGEDevKitHelp\/About_the_SLUDGE_Z-Buffer_Maker.html\">Z-Buffer<\/a>\u00a0up: it is used for different areas of a scene which can obscure character graphics, such as foreground silhouettes, doorframes and furniture.<\/li>\n<li>Add game fallback detection<\/li>\n<li>Add game\u00a0<a href=\"https:\/\/github.com\/Cheeseness\/robins-rescue\"><i>Robin\u2019s rescue<\/i>\u00a0<\/a>and test<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>Some findings about sludge<\/h1>\n<h2>Sludge input<\/h2>\n<p>Sludge input is using common sdl input functions<\/p>\n<h2>Freeze and unfreeze game scene<\/h2>\n<p>In sludge, whenever a dialog, reaction menu is popped up, the scene get frozen. The principle is that they make a screenshot of every thing on the background and copy interactive elements to a temporary variable and set them to null. Then, when we unfreeze, we restore them all.<\/p>\n<div id=\"atatags-370373-628c9f6f29023\"><\/div>\n<div id=\"atatags-26942-628c9f6f29071\"><\/div>\n<div id=\"jp-post-flair\" class=\"sharedaddy sd-like-enabled sd-sharing-enabled\">\n<div class=\"sharedaddy sd-sharing-enabled\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>GSoC 2017: Sludge Engine Week 4 Week task conclusion Generally, this 3rd week of GSoC project was good: the input works and we are able to reallly \u201cplay\u201d the game. Bugs are cleared for the game demo Verb Coins now and there are only z-Buffer stuff left to get it fully work. Again, thanks to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":28,"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/posts\/25\/revisions\/28"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/yinsimei\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}