{"id":5196,"date":"2024-09-16T17:39:01","date_gmt":"2024-09-16T17:39:01","guid":{"rendered":"https:\/\/castle-engine.io\/wp\/?p=5196"},"modified":"2024-09-16T17:39:01","modified_gmt":"2024-09-16T17:39:01","slug":"important-bugfixes-scaling-mesh-collider-stl-and-cw-faces-water-shader-macos-retina-and-clipboard-delphi-integration","status":"publish","type":"post","link":"https:\/\/castle-engine.io\/wp\/2024\/09\/16\/important-bugfixes-scaling-mesh-collider-stl-and-cw-faces-water-shader-macos-retina-and-clipboard-delphi-integration\/","title":{"rendered":"Important bugfixes &#8211; scaling mesh collider, STL and CW faces, water shader, macOS Retina and clipboard, Delphi integration"},"content":{"rendered":"<table class=\"thumbnails thumbnails-align-right\"><tr><td>\n          <a href=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2024\/09\/screenshot.png\"\n             class=\"screenshot\"\n             title=\"Mesh collider scaled demo\"><img loading=\"lazy\" decoding=\"async\"\n            style=\"float: right\"\n            src=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2024\/09\/screenshot-200x117.png\"\n             width=\"200\" height=\"117\" \n            alt=\"Mesh collider scaled demo\"\n          ><\/a><\/td><\/tr><tr><td>\n          <a href=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2024\/09\/model_viewer_macos_clipboard.png\"\n             class=\"screenshot\"\n             title=\"macOS clipboard\"><img loading=\"lazy\" decoding=\"async\"\n            style=\"float: right\"\n            src=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2024\/09\/model_viewer_macos_clipboard-200x112.png\"\n             width=\"200\" height=\"112\" \n            alt=\"macOS clipboard\"\n          ><\/a><\/td><\/tr><tr><td>\n          <a href=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2024\/09\/water_fix.png\"\n             class=\"screenshot\"\n             title=\"Water surrounded by Cthulhu statuettes, from Lynch gamejam game\"><img loading=\"lazy\" decoding=\"async\"\n            style=\"float: right\"\n            src=\"https:\/\/castle-engine.io\/wp\/wp-content\/uploads\/2024\/09\/water_fix-200x114.png\"\n             width=\"200\" height=\"114\" \n            alt=\"Water surrounded by Cthulhu statuettes, from Lynch gamejam game\"\n          ><\/a><\/td><\/tr><\/table>\n<p>Announcing a few more important fixes from the last ~month. As usual, remember that all the bugfixes are available immediately <a href=\"https:\/\/castle-engine.io\/download\">in the latest download<\/a>. And if you like what we do, we appreciate <a href=\"https:\/\/www.patreon.com\/castleengine\">your support on Patreon<\/a>!<\/p>\n<p>Bugfixes worth mentioning:<\/p>\n<ol>\n<li>Fixed scaling <code><a href=\"https:\/\/castle-engine.io\/apidoc\/html\/CastleTransform.TCastleMeshCollider.html\">TCastleMeshCollider<\/a><\/code>.\n<p>Scaling the <code><a href=\"https:\/\/castle-engine.io\/apidoc\/html\/CastleScene.TCastleScene.html\">TCastleScene<\/a><\/code> by just setting the <code><a href=\"https:\/\/castle-engine.io\/apidoc\/html\/CastleTransform.TCastleTransform.html#Scale\">TCastleTransform.Scale<\/a><\/code>, like <code>MyScene.Scale := Vector3(100, 100,100)<\/code> will now affect the physics as it should. The associated <code><a href=\"https:\/\/castle-engine.io\/apidoc\/html\/CastleTransform.TCastleMeshCollider.html\">TCastleMeshCollider<\/a><\/code> will behave properly, following the scale change. You can test this by changing scale at design-time (in editor) or run-time (from Pascal code) of course.<\/p>\n<p>I added an interactive demo of this in <a href=\"https:\/\/github.com\/castle-engine\/castle-engine\/tree\/master\/examples\/physics\/physics_test_scaled_mesh_collider\">examples\/physics\/physics_test_scaled_mesh_collider<\/a>.<\/p>\n<\/li>\n<li>\n<p>Saving of STL files from our tools (like <a href=\"https:\/\/castle-engine.io\/castle-model-viewer\">Castle Model Viewer<\/a>, <a href=\"https:\/\/castle-engine.io\/castle-model-converter\">Castle Model Converter<\/a>) now accounts correctly for X3D shapes with CW (clock-wise) ordering of vertexes. This is important, as STL files must have CCW (counter-clock-wise) ordering of vertexes. Thanks to <a href=\"https:\/\/github.com\/janadamec1\">Jan Adamec<\/a>!<\/p>\n<\/li>\n<li>\n<p>Water shader important fix (for some GPUs). Affects water in our <a href=\"https:\/\/github.com\/castle-engine\/castle-engine\/tree\/master\/examples\/terrain\">terrain example<\/a>, <a href=\"https:\/\/github.com\/castle-engine\/lynch\">lynch gamejam project<\/a>, <a href=\"https:\/\/github.com\/castle-engine\/demo-models\">water in demo-models<\/a>.<\/p>\n<\/li>\n<li>\n<p><em>(Before <a href=\"https:\/\/castle-engine.io\/release_7.0-alpha.3\">7.0-alpha.3 release<\/a>):<\/em> Fixed Delphi crash at exit in <code>-dRELEASE<\/code>.<\/p>\n<\/li>\n<li>\n<p><em>(Before <a href=\"https:\/\/castle-engine.io\/release_7.0-alpha.3\">7.0-alpha.3 release<\/a>):<\/em> Fixed editor occasional crash when closing a view with camera preview open (testcase: press <em>Ctrl+W<\/em> right after selecting the camera in viewport).<\/p>\n<\/li>\n<li>\n<p><em>(Before <a href=\"https:\/\/castle-engine.io\/release_7.0-alpha.3\">7.0-alpha.3 release<\/a>):<\/em> Fixed window resolution on Retina screens. We now behave properly on macOS Retina screens, and we render with full resolution (result is &#8220;crisp&#8221;, not artificially upscaled by macOS), and dragging window between monitors behaves OK too. Big thanks to <a href=\"https:\/\/github.com\/janadamec1\">Jan Adamec<\/a>!<\/p>\n<\/li>\n<li>\n<p><em>(Before <a href=\"https:\/\/castle-engine.io\/release_7.0-alpha.3\">7.0-alpha.3 release<\/a>):<\/em> Fixed clipboard on macOS (with Cocoa backend of TCastleWindow). Cut\/copy\/paste work as they should. Again thanks to <a href=\"https:\/\/github.com\/janadamec1\">Jan Adamec<\/a>. They also react to <em>Command + C \/ X \/ V<\/em>, not <em>Control + C \/ X \/ V<\/em>.<\/p>\n<\/li>\n<li>\n<p><em>(This was a hotfix at <a href=\"https:\/\/castle-engine.io\/release_7.0-alpha.3\">7.0-alpha.3 release<\/a>, initial upload had a bug but was quickly replaced with good one)<\/em>: Fixed <em>&#8220;Configure Delphi to use engine&#8221;<\/em> menu item (from our <a href=\"https:\/\/castle-engine.io\/delphi\">Delphi integration<\/a>) to handle gracefully paths with spaces.<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Announcing a few more important fixes from the last ~month. As usual, remember that all the bugfixes are available immediately in the latest download. And if you like what we do, we appreciate your support on Patreon! Bugfixes worth mentioning: Fixed scaling . Scaling the by just setting the , like MyScene.Scale := Vector3(100, 100,100) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/castle-engine.io\/wp\/2024\/09\/16\/important-bugfixes-scaling-mesh-collider-stl-and-cw-faces-water-shader-macos-retina-and-clipboard-delphi-integration\/\" class=\"more-link\">Continue reading  \u27a4<span class=\"screen-reader-text\"> &#8220;Important bugfixes &#8211; scaling mesh collider, STL and CW faces, water shader, macOS Retina and clipboard, Delphi integration&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":5204,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"publish_to_discourse":"1","publish_post_category":"9","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"5207","discourse_permalink":"https:\/\/forum.castle-engine.io\/t\/important-bugfixes-scaling-mesh-collider-stl-and-cw-faces-water-shader-macos-retina-and-clipboard-delphi-integration\/1351","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-5196","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\/2024\/09\/water_fix.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9IgYW-1lO","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/5196","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=5196"}],"version-history":[{"count":11,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/5196\/revisions"}],"predecessor-version":[{"id":5210,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/posts\/5196\/revisions\/5210"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/media\/5204"}],"wp:attachment":[{"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/media?parent=5196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/categories?post=5196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/castle-engine.io\/wp\/wp-json\/wp\/v2\/tags?post=5196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}