{"id":289,"date":"2017-06-24T20:56:34","date_gmt":"2017-06-24T18:56:34","guid":{"rendered":"http:\/\/heikkili.kapsi.fi\/blog\/?p=289"},"modified":"2017-06-24T20:56:34","modified_gmt":"2017-06-24T18:56:34","slug":"graphics-codex-meshes-project","status":"publish","type":"post","link":"http:\/\/heikkili.kapsi.fi\/blog\/?p=289","title":{"rendered":"Graphics Codex Meshes Project"},"content":{"rendered":"<figure id=\"attachment_294\" aria-describedby=\"caption-attachment-294\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"294\" data-permalink=\"http:\/\/heikkili.kapsi.fi\/blog\/?attachment_id=294\" data-orig-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg?fit=1280%2C720\" data-orig-size=\"1280,720\" data-comments-opened=\"1\" data-image-title=\"2017-06-19_008_meshes_g3d_r1090__\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg?fit=650%2C366\" class=\"wp-image-294 size-medium\" src=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg?resize=300%2C169\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg?resize=300%2C169 300w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg?resize=768%2C432 768w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg?resize=1024%2C576 1024w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-19_008_meshes_g3d_r1090__.jpg?w=1280 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-294\" class=\"wp-caption-text\">Demo scene having two different generated meshes.<\/figcaption><\/figure>\n<p>I finished the meshes project of graphics codex. This project taught procedural generation of indexed faces meshes from input parameters or from source image. Specially in the project had to create cylinder and glass meshes by generating solid of revolution by using circle calculation. Glass was defined by a source image that gives contour points for the surface. For each point vertices were calculated by using algorithm to find point on circle .<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_292\" aria-describedby=\"caption-attachment-292\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"292\" data-permalink=\"http:\/\/heikkili.kapsi.fi\/blog\/?attachment_id=292\" data-orig-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side.jpg?fit=1280%2C720\" data-orig-size=\"1280,720\" data-comments-opened=\"1\" data-image-title=\"2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side.jpg?fit=650%2C366\" class=\"wp-image-292 size-medium\" src=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side.jpg?resize=300%2C169\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side.jpg?resize=300%2C169 300w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side.jpg?resize=768%2C432 768w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side.jpg?resize=1024%2C576 1024w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_005_meshes_g3d_r1090__wireframe_view_from_side.jpg?w=1280 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-292\" class=\"wp-caption-text\">Generated glass mesh<\/figcaption><\/figure>\n<figure id=\"attachment_295\" aria-describedby=\"caption-attachment-295\" style=\"width: 90px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"295\" data-permalink=\"http:\/\/heikkili.kapsi.fi\/blog\/?attachment_id=295\" data-orig-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/wineglass.png?fit=69%2C295\" data-orig-size=\"69,295\" data-comments-opened=\"1\" data-image-title=\"wineglass\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/wineglass.png?fit=69%2C295\" class=\"wp-image-295\" src=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/wineglass.png?resize=90%2C196\" alt=\"\" width=\"90\" height=\"196\" \/><figcaption id=\"caption-attachment-295\" class=\"wp-caption-text\">glass source image<\/figcaption><\/figure>\n<p>In the project also \u00a0a height field mesh was generated from a source image that had the height value.<a href=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"291\" data-permalink=\"http:\/\/heikkili.kapsi.fi\/blog\/?attachment_id=291\" data-orig-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg?fit=1280%2C720\" data-orig-size=\"1280,720\" data-comments-opened=\"1\" data-image-title=\"2017-06-22_000_meshes_g3d_r1090__\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg?fit=650%2C366\" class=\"size-medium wp-image-291 aligncenter\" src=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg?resize=300%2C169\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg?resize=300%2C169 300w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg?resize=768%2C432 768w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg?resize=1024%2C576 1024w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-22_000_meshes_g3d_r1090__.jpg?w=1280 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"290\" data-permalink=\"http:\/\/heikkili.kapsi.fi\/blog\/?attachment_id=290\" data-orig-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/gbg_heightmap.png?fit=512%2C512\" data-orig-size=\"512,512\" data-comments-opened=\"1\" data-image-title=\"gbg_heightmap\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/gbg_heightmap.png?fit=512%2C512\" class=\"size-medium wp-image-290 aligncenter\" src=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/gbg_heightmap.png?resize=300%2C300\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/gbg_heightmap.png?resize=300%2C300 300w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/gbg_heightmap.png?resize=150%2C150 150w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/gbg_heightmap.png?resize=50%2C50 50w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/gbg_heightmap.png?w=512 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u00a0<a href=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"293\" data-permalink=\"http:\/\/heikkili.kapsi.fi\/blog\/?attachment_id=293\" data-orig-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg?fit=1280%2C720\" data-orig-size=\"1280,720\" data-comments-opened=\"1\" data-image-title=\"2017-06-20_001_meshes_g3d_r1090__Cylinder\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg?fit=650%2C366\" class=\"size-medium wp-image-293 aligncenter\" src=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg?resize=300%2C169\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg?resize=300%2C169 300w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg?resize=768%2C432 768w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg?resize=1024%2C576 1024w, https:\/\/i0.wp.com\/heikkili.kapsi.fi\/blog\/wp-content\/uploads\/2017\/06\/2017-06-20_001_meshes_g3d_r1090__Cylinder.jpg?w=1280 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finished the meshes project of graphics codex. This project taught procedural generation of indexed faces meshes from input parameters or from source image. Specially in the project had to create cylinder and glass meshes by generating solid of revolution by using circle calculation. Glass was defined by a source image that gives contour points&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[6],"tags":[4,34],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-computer-graphics","tag-c","tag-graphicscodex"],"jetpack_shortlink":"https:\/\/wp.me\/p7k3DT-4F","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289"}],"version-history":[{"count":9,"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":304,"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions\/304"}],"wp:attachment":[{"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/heikkili.kapsi.fi\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}