{"id":611,"date":"2018-05-04T17:03:51","date_gmt":"2018-05-04T17:03:51","guid":{"rendered":"https:\/\/castle-engine.io\/wp\/?p=611"},"modified":"2018-05-04T20:36:02","modified_gmt":"2018-05-04T20:36:02","slug":"engine-improvements-commonsurfaceshader-with-shadow-maps-fix-demo-of-mouse-picking-3d-2d-objects-view3dscene-without-console","status":"publish","type":"post","link":"https:\/\/castle-engine.io\/wp\/2018\/05\/04\/engine-improvements-commonsurfaceshader-with-shadow-maps-fix-demo-of-mouse-picking-3d-2d-objects-view3dscene-without-console\/","title":{"rendered":"Engine improvements: CommonSurfaceShader with shadow maps fix, demo of mouse picking 3D\/2D objects, view3dscene without console"},"content":{"rendered":"<table class=\"thumbnails thumbnails-align-right\"><tr><td>\n          <a href=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2018\/04\/mouse_ray_hit.png\"\n             class=\"screenshot\"\n             title=\"mouse_ray_hit\"><img loading=\"lazy\" decoding=\"async\"\n            style=\"float: right\"\n            src=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2018\/04\/mouse_ray_hit-200x116.png\"\n             width=\"200\" height=\"116\" \n            alt=\"mouse_ray_hit\"\n          ><\/a><\/td><\/tr><tr><td>\n          <a href=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2018\/04\/primitives_with_commonsurfaceshader_0.png\"\n             class=\"screenshot\"\n             title=\"primitives_with_commonsurfaceshader_0\"><img loading=\"lazy\" decoding=\"async\"\n            style=\"float: right\"\n            src=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2018\/04\/primitives_with_commonsurfaceshader_0-200x113.png\"\n             width=\"200\" height=\"113\" \n            alt=\"primitives_with_commonsurfaceshader_0\"\n          ><\/a><\/td><\/tr><tr><td>\n          <a href=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2018\/05\/v3dmessage.png\"\n             class=\"screenshot\"\n             title=\"v3dmessage\"><img loading=\"lazy\" decoding=\"async\"\n            style=\"float: right\"\n            src=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2018\/05\/v3dmessage-200x121.png\"\n             width=\"200\" height=\"121\" \n            alt=\"v3dmessage\"\n          ><\/a><\/td><\/tr><\/table>\n<ol>\n<li>\n<p>We added a simple demo how to detect which scene (TCastleScene) was clicked with the mouse: <a href=\"https:\/\/github.com\/castle-engine\/castle-engine\/blob\/master\/examples\/3d_rendering_processing\/detect_scene_clicks.lpr\">https:\/\/github.com\/castle-engine\/castle-engine\/blob\/master\/examples\/3d_rendering_processing\/detect_scene_clicks.lpr<\/a> .<\/p>\n<li>\n<p>The behavior of shadow maps when combined with CommonSurfaceShader is now correct. Testcase: <a href=\"https:\/\/github.com\/castle-engine\/demo-models\/blob\/master\/shadow_maps\/primitives_with_commonsurfaceshader.x3dv\">https:\/\/github.com\/castle-engine\/demo-models\/blob\/master\/shadow_maps\/primitives_with_commonsurfaceshader.x3dv<\/a><\/p>\n<li>\n<p><a href=\"https:\/\/castle-engine.io\/view3dscene.php\">view3dscene<\/a> no longer uses console for various messages. Instead we display our own message box, with contents that can be copied to clipboard with Ctrl+C. This makes it more comfortable to use as a normal GUI program, in particular on Windows. Remember that you can always <a href=\"http:\/\/michalis.ii.uni.wroc.pl\/view3dscene-snapshots\/\">download the latest view3dscene snapshots from here<\/a>. (Or you can compile <a href=\"https:\/\/github.com\/castle-engine\/view3dscene\/\">view3dscene from source<\/a>, of course.)<\/p>\n<li>\n<p>Our website supports now IPV6, HTTP\/2, has better redirects (from www domain to non-www), and is HTTPS-only (non-secure HTTP merely redirects to HTTPS, and we use HSTS). <i>Thanks to Raul Tambre for suggesting and testing these improvements!<\/i>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>We added a simple demo how to detect which scene (TCastleScene) was clicked with the mouse: https:\/\/github.com\/castle-engine\/castle-engine\/blob\/master\/examples\/3d_rendering_processing\/detect_scene_clicks.lpr . The behavior of shadow maps when combined with CommonSurfaceShader is now correct. Testcase: https:\/\/github.com\/castle-engine\/demo-models\/blob\/master\/shadow_maps\/primitives_with_commonsurfaceshader.x3dv view3dscene no longer uses console for various messages. Instead we display our own message box, with contents that can be copied to clipboard &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/castle-engine.io\/wp\/2018\/05\/04\/engine-improvements-commonsurfaceshader-with-shadow-maps-fix-demo-of-mouse-picking-3d-2d-objects-view3dscene-without-console\/\" class=\"more-link\">Continue reading  \u27a4<span class=\"screen-reader-text\"> &#8220;Engine improvements: CommonSurfaceShader with shadow maps fix, demo of mouse picking 3D\/2D objects, view3dscene without console&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":613,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"publish_to_discourse":"","publish_post_category":"","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-611","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2018\/04\/mouse_ray_hit.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9IgYW-9R","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/comments?post=611"}],"version-history":[{"count":14,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/611\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/611\/revisions\/631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/media\/613"}],"wp:attachment":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/media?parent=611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/categories?post=611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/tags?post=611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}