{"id":4352,"date":"2012-10-26T09:30:21","date_gmt":"2012-10-26T14:30:21","guid":{"rendered":"https:\/\/spaceengine.org\/?p=4352"},"modified":"2022-08-17T09:36:23","modified_gmt":"2022-08-17T14:36:23","slug":"comets","status":"publish","type":"post","link":"https:\/\/spaceengine.org\/news\/blog121026\/","title":{"rendered":"Comets"},"content":{"rendered":"<p>I've been working a few weeks on implementing comet tails. They are based on axis-aligned sprites, animated in the vertex shader. This mean that the sprite is rendered as a long oval, while viewing it from the side, and is round while viewing from the top (the same principle is used for the stars motion blur). In SE I can't use an iterative simulation for moving particles, so particles in the comet tails are moved using formulas, that allows computing the position of the particle at any moment in time. Rendering of thousands of transparent sprites is an extremely big load for the graphics card, so to increase performance, comets are rendered to impostors or a low-res framebuffer - the same system is used for galaxies and nebulae.<\/p>\n<p>Here's a bunch of screenshots. I'll upload a short video showing an animation of the particles later.<\/p>\n<p>View on comet Halley from Earth at dawn:<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4366\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9911697.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>View from space.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4365\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9070806.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>View of the comet's core. When I implement volcanos (the particle system needed for the planetary surface), I'll add a few geysers to the comet's core.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4364\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0579405.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>A set of images showing a change in the comet's shape during its orbital motion. Note the blue ion tail and a few grey dust tails. Ions in the ion tail interact with the solar wind - it blows them away, so the tail is always directed away from the sun. Blue color is due to luminescence. Dust tail particles are accelerated by solar light pressure and [url=http:\/\/en.wikipedia.org\/wiki\/Poynting\u2013Robertson_effect]Poynting\u2013Robertson effect[\/url]. Both forces make them lag behind the comet's core, so they tend to follow the comet's orbit. The dust tail color is a sun color, scattered on the dust particles.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4363\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/0498649.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4362\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4279595.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4361\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4451992.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>A comet-rich procedural system. Note comet tails are always directed outwards from sun.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4360\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7231307.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Orbits of the comets in the same system. SE can't handle too many bodies for now, so I've limited the number of comets to a few hundred (the number of asteroids is limited too).<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4359\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/7554899.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>View from the surface of some procedural planet with a thin Mars-like atmosphere. On planets with thick atmospheres, comets are invisible at daytime, just like the stars and Milky Way are.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4358\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4946656.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>The comet tail system can be used to simulate evaporating planets. Here is a procedural system with two very hot desert planets (with average temperatures of 2000K and 1500K). With this temperature they should lose their atmospheres, making a giant comet-like tail. Note the powerful dust tails. Hot desert planets have a melted surface, and their atmospheres are saturated with silicate vapor that may condensate into a thin dust in space. Also, a powerful wind should blow dust from the surface high into the atmosphere, where it may be blown-out with an escaping gas flow. The first planet of this system is a scorched selena that has already lost its atmosphere (however, at 2000K its surface should melt, and form a silicate vapor atmosphere, that will run out into space again).<\/p>\n<p>Lens flares and Real planet brightness are disabled on these images.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4357\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4353050.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>View from one evaporating planet on another (on the second screenshot, the sun is lurking behind the disk of the planet). There is some trouble with the comet tails for now - they are rendered in the background, so you can't see a haze effect around a planet. More work on the planetary rendering system and overall engine should be done to achieve the correct hazing effect.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4356\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1625466.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4355\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/1013492.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>And this is the famous HD 209458 b, an evaporating hot gas giant, also knows as Osiris. Note there is almost no dust tail visible, because it is a gas giant, and its atmosphere is made of hydrogen and helium. The color of the ion tail should be adjusted to simulate the actual gas luminescence spectrum.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4354\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/9639963.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I've been working a few weeks on implementing comet tails. They are based on axis-aligned sprites, animated in the vertex shader. This mean that the sprite is rendered as a long oval, while viewing it from the side, and is round while viewing from the...<\/p>\n","protected":false},"author":1,"featured_media":4365,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4352","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/posts\/4352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/comments?post=4352"}],"version-history":[{"count":1,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/posts\/4352\/revisions"}],"predecessor-version":[{"id":4367,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/posts\/4352\/revisions\/4367"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/media\/4365"}],"wp:attachment":[{"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/media?parent=4352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/categories?post=4352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/tags?post=4352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}