{"id":100028,"date":"2026-08-28T11:39:45","date_gmt":"2026-08-28T03:39:45","guid":{"rendered":"https:\/\/martinphysics.club\/?p=100028"},"modified":"2026-08-28T11:41:30","modified_gmt":"2026-08-28T03:41:30","slug":"i-built-a-simple-optical-simulation-tool","status":"publish","type":"post","link":"https:\/\/martinphysics.club\/?p=100028","title":{"rendered":"I Built a Simple Optical Simulation Tool"},"content":{"rendered":"<p>LightDraw began with a simple goal: to make optics easier to teach, explore, and understand.<br \/>\nWhile building this lightweight 2D optical simulator, I incorporated real classroom needs into its design. Since light is an electromagnetic wave, I also expanded the project to support electrostatic and magnetostatic field simulations.<br \/>\nBuilt with .NET, Avalonia, and SkiaSharp, LightDraw turns abstract physics into clear, interactive visualizations for teachers and students.<br \/>\nExplore the project on <a href=\"https:\/\/github.com\/MatinxHT\/LightDraw\">GitHub<\/a> or download LightDraw from the <a href=\"https:\/\/apps.microsoft.com\/detail\/9P9JGS0LB77D?hl=en-us&amp;gl=US\">Microsoft Store<\/a>.<br \/>\nSpecial thanks to the creators and contributors of <a href=\"https:\/\/github.com\/ricktu288\/ray-optics\">Ray Optics Simulation<\/a>, whose excellent work inspired this project.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-100029 aligncenter\" src=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic-300x184.png\" alt=\"\" width=\"484\" height=\"297\" srcset=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic-300x184.png 300w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic-1024x628.png 1024w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic-768x471.png 768w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic-1536x943.png 1536w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic.png 1983w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-100030 aligncenter\" src=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/magnetostatic-300x184.png\" alt=\"\" width=\"483\" height=\"296\" srcset=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/magnetostatic-300x184.png 300w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/magnetostatic-1024x628.png 1024w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/magnetostatic-768x471.png 768w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/magnetostatic-1536x943.png 1536w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/magnetostatic.png 1983w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-100031 aligncenter\" src=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/optics-300x168.png\" alt=\"\" width=\"478\" height=\"268\" srcset=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/optics-300x168.png 300w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/optics-1024x574.png 1024w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/optics-768x431.png 768w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/optics-1536x862.png 1536w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/optics-2048x1149.png 2048w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-100032 aligncenter\" src=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/ca05b75748f5c29d43c595fd4ce8775f-300x240.png\" alt=\"\" width=\"471\" height=\"376\" srcset=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/ca05b75748f5c29d43c595fd4ce8775f-300x240.png 300w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/ca05b75748f5c29d43c595fd4ce8775f-1024x818.png 1024w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/ca05b75748f5c29d43c595fd4ce8775f-768x614.png 768w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/ca05b75748f5c29d43c595fd4ce8775f-1536x1227.png 1536w, https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/ca05b75748f5c29d43c595fd4ce8775f.png 1592w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LightDraw began with a simple goal: to make optics easi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wpai_generated_summary":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-100028","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":7}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>I Built a Simple Optical Simulation Tool - martinphysics.club<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/martinphysics.club\/?p=100028\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I Built a Simple Optical Simulation Tool - martinphysics.club\" \/>\n<meta property=\"og:description\" content=\"LightDraw began with a simple goal: to make optics easi [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/martinphysics.club\/?p=100028\" \/>\n<meta property=\"og:site_name\" content=\"martinphysics.club\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-28T03:39:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-28T03:41:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1983\" \/>\n\t<meta property=\"og:image:height\" content=\"1217\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Martin Hung\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Martin Hung\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028\"},\"author\":{\"name\":\"Martin Hung\",\"@id\":\"https:\\\/\\\/martinphysics.club\\\/#\\\/schema\\\/person\\\/85413244415fa803d502f5febc10f3c5\"},\"headline\":\"I Built a Simple Optical Simulation Tool\",\"datePublished\":\"2026-08-28T03:39:45+00:00\",\"dateModified\":\"2026-08-28T03:41:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028\"},\"wordCount\":102,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/#\\\/schema\\\/person\\\/85413244415fa803d502f5febc10f3c5\"},\"image\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/eletrostatic-300x184.png\",\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/martinphysics.club\\\/?p=100028#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028\",\"url\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028\",\"name\":\"I Built a Simple Optical Simulation Tool - martinphysics.club\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/eletrostatic-300x184.png\",\"datePublished\":\"2026-08-28T03:39:45+00:00\",\"dateModified\":\"2026-08-28T03:41:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/martinphysics.club\\\/?p=100028\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028#primaryimage\",\"url\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/eletrostatic.png\",\"contentUrl\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/eletrostatic.png\",\"width\":1983,\"height\":1217},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/martinphysics.club\\\/?p=100028#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/martinphysics.club\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"I Built a Simple Optical Simulation Tool\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/martinphysics.club\\\/#website\",\"url\":\"https:\\\/\\\/martinphysics.club\\\/\",\"name\":\"martinphysics.club\",\"description\":\"\u7ad9\u70b9\u590d\u539f\u4e2d..\",\"publisher\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/#\\\/schema\\\/person\\\/85413244415fa803d502f5febc10f3c5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/martinphysics.club\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/martinphysics.club\\\/#\\\/schema\\\/person\\\/85413244415fa803d502f5febc10f3c5\",\"name\":\"Martin Hung\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cropped-u16851548201322649963fm26gp0.jpg\",\"url\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cropped-u16851548201322649963fm26gp0.jpg\",\"contentUrl\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cropped-u16851548201322649963fm26gp0.jpg\",\"width\":512,\"height\":512,\"caption\":\"Martin Hung\"},\"logo\":{\"@id\":\"https:\\\/\\\/martinphysics.club\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cropped-u16851548201322649963fm26gp0.jpg\"},\"sameAs\":[\"http:\\\/\\\/martinphysics.club\"],\"url\":\"https:\\\/\\\/martinphysics.club\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"I Built a Simple Optical Simulation Tool - martinphysics.club","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/martinphysics.club\/?p=100028","og_locale":"zh_CN","og_type":"article","og_title":"I Built a Simple Optical Simulation Tool - martinphysics.club","og_description":"LightDraw began with a simple goal: to make optics easi [&hellip;]","og_url":"https:\/\/martinphysics.club\/?p=100028","og_site_name":"martinphysics.club","article_published_time":"2026-08-28T03:39:45+00:00","article_modified_time":"2026-08-28T03:41:30+00:00","og_image":[{"width":1983,"height":1217,"url":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic.png","type":"image\/png"}],"author":"Martin Hung","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"Martin Hung","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/martinphysics.club\/?p=100028#article","isPartOf":{"@id":"https:\/\/martinphysics.club\/?p=100028"},"author":{"name":"Martin Hung","@id":"https:\/\/martinphysics.club\/#\/schema\/person\/85413244415fa803d502f5febc10f3c5"},"headline":"I Built a Simple Optical Simulation Tool","datePublished":"2026-08-28T03:39:45+00:00","dateModified":"2026-08-28T03:41:30+00:00","mainEntityOfPage":{"@id":"https:\/\/martinphysics.club\/?p=100028"},"wordCount":102,"commentCount":0,"publisher":{"@id":"https:\/\/martinphysics.club\/#\/schema\/person\/85413244415fa803d502f5febc10f3c5"},"image":{"@id":"https:\/\/martinphysics.club\/?p=100028#primaryimage"},"thumbnailUrl":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic-300x184.png","inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/martinphysics.club\/?p=100028#respond"]}]},{"@type":"WebPage","@id":"https:\/\/martinphysics.club\/?p=100028","url":"https:\/\/martinphysics.club\/?p=100028","name":"I Built a Simple Optical Simulation Tool - martinphysics.club","isPartOf":{"@id":"https:\/\/martinphysics.club\/#website"},"primaryImageOfPage":{"@id":"https:\/\/martinphysics.club\/?p=100028#primaryimage"},"image":{"@id":"https:\/\/martinphysics.club\/?p=100028#primaryimage"},"thumbnailUrl":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic-300x184.png","datePublished":"2026-08-28T03:39:45+00:00","dateModified":"2026-08-28T03:41:30+00:00","breadcrumb":{"@id":"https:\/\/martinphysics.club\/?p=100028#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/martinphysics.club\/?p=100028"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/martinphysics.club\/?p=100028#primaryimage","url":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic.png","contentUrl":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/eletrostatic.png","width":1983,"height":1217},{"@type":"BreadcrumbList","@id":"https:\/\/martinphysics.club\/?p=100028#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/martinphysics.club\/"},{"@type":"ListItem","position":2,"name":"I Built a Simple Optical Simulation Tool"}]},{"@type":"WebSite","@id":"https:\/\/martinphysics.club\/#website","url":"https:\/\/martinphysics.club\/","name":"martinphysics.club","description":"\u7ad9\u70b9\u590d\u539f\u4e2d..","publisher":{"@id":"https:\/\/martinphysics.club\/#\/schema\/person\/85413244415fa803d502f5febc10f3c5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/martinphysics.club\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/martinphysics.club\/#\/schema\/person\/85413244415fa803d502f5febc10f3c5","name":"Martin Hung","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/cropped-u16851548201322649963fm26gp0.jpg","url":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/cropped-u16851548201322649963fm26gp0.jpg","contentUrl":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/cropped-u16851548201322649963fm26gp0.jpg","width":512,"height":512,"caption":"Martin Hung"},"logo":{"@id":"https:\/\/martinphysics.club\/wp-content\/uploads\/2026\/08\/cropped-u16851548201322649963fm26gp0.jpg"},"sameAs":["http:\/\/martinphysics.club"],"url":"https:\/\/martinphysics.club\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/martinphysics.club\/index.php?rest_route=\/wp\/v2\/posts\/100028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/martinphysics.club\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/martinphysics.club\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/martinphysics.club\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/martinphysics.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100028"}],"version-history":[{"count":2,"href":"https:\/\/martinphysics.club\/index.php?rest_route=\/wp\/v2\/posts\/100028\/revisions"}],"predecessor-version":[{"id":100034,"href":"https:\/\/martinphysics.club\/index.php?rest_route=\/wp\/v2\/posts\/100028\/revisions\/100034"}],"wp:attachment":[{"href":"https:\/\/martinphysics.club\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/martinphysics.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/martinphysics.club\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}