{"id":4248,"date":"2012-03-22T06:15:46","date_gmt":"2012-03-22T11:15:46","guid":{"rendered":"https:\/\/spaceengine.org\/?p=4248"},"modified":"2022-08-17T06:24:47","modified_gmt":"2022-08-17T11:24:47","slug":"skybox-and-procedural-planetary-texture-export","status":"publish","type":"post","link":"https:\/\/spaceengine.org\/news\/blog120322\/","title":{"rendered":"Skybox and procedural planetary texture export"},"content":{"rendered":"<p>Yesterday I'd implemented the skybox exporting and procedural planetary textures exporting feature. Here I'll show examples of the interface dialogs and examples of exported textures. I've also added a new \"projection\" mode - the skybox mode.<\/p>\n<p>This is some procedural planet:<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4253\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/8519347.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>And this is the skybox capture interface (it is fully real-time and also avaliable through the Projection settings dialog):<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4252\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/6259429.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>You can choose any resolution that is supported by your graphics card (8192 for my GeForce 9800 GTX+, but trying to set it to more than 4096 had crashed my video driver). Image format can be choosen via config as for regular screenshots. After rpressing the \"Export\" button, SpaceEngine will save six square images to the cache\/export\/ fodler.<\/p>\n<p>Next feature is the texture exporting interface. You can export textures in two forms - cylindrical projection (it is used in SE for base \"-1\" level for planets) and cubemap projection (default SE format), but only for a zero level. However, you can choose any resolution that your graphics card can support, like for the skybox exporting. You can choose which layer you would like to export (surface and\/or one to three clouds layers) and which texture - color map, heightmap and normalmap.<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-4251\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585-1024x576.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585-300x169.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585-768x432.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585-1536x864.jpg 1536w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585-700x394.jpg 700w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5595585.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Here are the examples of cylindrical surface map and elevation map of this planet:<\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4857835.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4857835.jpg\" alt=\"\" width=\"1024\" height=\"512\" class=\"aligncenter size-full wp-image-4250\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4857835.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4857835-300x150.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4857835-768x384.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4857835-1000x500.jpg 1000w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/4857835-700x350.jpg 700w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5791094.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5791094.jpg\" alt=\"\" width=\"1024\" height=\"512\" class=\"aligncenter size-full wp-image-4249\" srcset=\"https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5791094.jpg 1024w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5791094-300x150.jpg 300w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5791094-768x384.jpg 768w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5791094-1000x500.jpg 1000w, https:\/\/spaceengine.org\/wp-content\/uploads\/2022\/08\/5791094-700x350.jpg 700w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>It is not difficult for software to add exporting for any level, but it is performance and \"interface\" difficult. And what can they be used for? Finest levels of typical procedural planet has a total of 1 million x 1 million pixels resolution (1 terapixel) and will be 15 terabytes in size (or 4096 x 4096 = 16777216 tiles of 256 x 256 resolution). I think only the few first layers can be useful. Some tiles of very detailed levels can be used as independent heightmap for creating a level for some other game, so I may add such interface feature some day (such as click on a mountain and choose \"export heightmap and textures\").<\/p>\n<p>SpaceEngine saves exported textures in the cache\/export\/ folder. Old files are overwritten, so make sure you save them before making a new export.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I'd implemented the skybox exporting and procedural planetary textures exporting feature. Here I'll show examples of the interface dialogs and examples of exported textures. I've also added a new \"projection\" mode - the skybox mode. This is some procedural planet: And this is the...<\/p>\n","protected":false},"author":1,"featured_media":4252,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/posts\/4248","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=4248"}],"version-history":[{"count":3,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/posts\/4248\/revisions"}],"predecessor-version":[{"id":4256,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/posts\/4248\/revisions\/4256"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/media\/4252"}],"wp:attachment":[{"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/media?parent=4248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/categories?post=4248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spaceengine.org\/wp-json\/wp\/v2\/tags?post=4248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}