Просмотр исходного кода

Update free_skymaps.adoc

Fixed random errors generated upon creation.
mitm001 8 лет назад
Родитель
Сommit
450d4f54e1
1 измененных файлов с 1 добавлено и 117 удалено
  1. 1 117
      src/docs/asciidoc/jme3/advanced/free_skymaps.adoc

+ 1 - 117
src/docs/asciidoc/jme3/advanced/free_skymaps.adoc

@@ -64,123 +64,7 @@ This tutorial is an adaptation of contributor glaucomardanos production, not an
 .  Place your mouse inside the right side 3d view and press kbd:[NumPad 5] to toggle ortho view. You're now setup to render your Angular map.
 .  Save your file.
 .  With your first camera selected (in this case Camera-down) and your mouse inside the right side 3d view, press kbd:[Ctrl+NumPad 0] to set your selected camera to be the active camera. 
-*  Press kbd:[F12] to render the scene. A imag= How to create SkyMaps
-:author: Robert Allen
-:revnumber: 
-:revdate: 2017/04/4 10:23
-:relfileprefix: ../../
-:imagesdir: ../..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
-
-There are a plethora of ways to create skymaps with varying levels of difficulty and expense. The link:http://planetside.co.uk/[Terragen] program has been mentioned as one way to do so but it is now limited in its use and for commercial purposes is not free. Another program, link:https://www.daz3d.com/bryce-7-pro[Bryce], is also not free and seems to of stalled in developement based off there only being a 32bit version available. Maybe they are doing things behind the scenes but its still not a free program. This articles intent is to give the JME3 user other options for the creation of skymaps using the free programs Blender and Gimp. It is not the be all, end all of skymap creation. If you know of better methods or tools please feel free to share your wisdom on the link:https://hub.jmonkeyengine.org/[forums].
-
-
-== Blender
-
-
-Using Blender you can create your skymaps for free. Once link:https://www.blender.org/[Blender] is setup, your skymaps creation can be done easily. For this article I will go into detail on how to setup Blender to create Angular maps based off a video produced by jMonkey contributor glaucomardano and mentioned in this link:https://hub.jmonkeyengine.org/t/jmonkeyengine-tutorial-how-to-create-skymaps-using-blender/19313[forum post]. Contributor glaucomardano did a good job on the video but it requires previous knowledge of Blender to be able to easily follow along. As such, I will translate it to paper for you. You can view his video by following this link: link:https://youtu.be/z38Aikz5nE8[jMonkeyEngine Tutorial - How to create skymaps using blender].
-
-These steps assume you're using the default blender setup and apply to vers 2.78c+. We will use shortcut keys to keep things simple.
-
-[NOTE]
-====
-This tutorial is an adaptation of contributor glaucomardanos production, not an exact duplicate. 
-====
-
-.  Start with a new file in blender.
-.  Select the lamp and the default cube in the 3d view or in the Outliner panel (top-right panel) and delete them: kbd:[X]. They are not needed for this procedure.
-.  Select the camera object in the 3d view or in the Outliner panel then clear its location and rotation by using keyboard shortcuts kbd:[Alt+G] and kbd:[Alt+R].
-.  In the properties panel (lower-right panel) select the Object tab (orange box). This will give you a visual perspective of the camera changes you are about to make.
-.  Rename the Camera to Camera-north.
-.  Change your 3d view to top-ortho by pressing kbd:[NumPad 7] followed by kbd:[NumPad 5].
-.  With the camera still selected, press kbd:[R] immediately followed by kbd:[X] immediately followed by 90 immediately followed by kbd:[Enter] to rotate the camera 90 degrees around the X axis.
-.  With the camera still selected, press kbd:[Shift+D]. This will duplicate the camera. Next press kbd:[Enter] to set the selection.   
-*  Press kbd:[R] immediately followed by 180 immediately followed by kbd:[Enter]. This will rotate the camera 180 degrees around the Z axis. Rename this camera to Camera-south.
-.  With the camera still selected, press kbd:[Shift+D]. This will duplicate the camera. Next press kbd:[Enter] to set the selection.   
-*  With the camera still selected, press kbd:[R] immediately followed by 90 immediately followed by kbd:[Enter]. This will rotate the camera another 90 degrees around the Z axis. Rename this camera to Camera-west.
-.  With the camera still selected, press kbd:[Shift+D]. This will duplicate the camera. Next press kbd:[Enter] to set the selection.   
-*  With the camera still selected, press kbd:[R] immediately followed by -180 immediately followed by kbd:[Enter]. This will rotate the camera -180 degrees around the Z axis. Rename this camera to Camera-east.
-.  With your mouse inside the 3d view change your view to right-ortho by entering kbd:[NumPad 3].
-.  Select Camera-south in 3d view or in the Outliner panel (top-right panel) and press kbd:[Shift+D]. This will duplicate the camera. Next press kbd:[Enter] to set the selection.
-* With the camera still selected, press kbd:[R] immediately followed by 90 immediately followed by kbd:[Enter]. This will rotate the camera 90 degrees around the X axis. The camera should now be pointing up. Rename this camera to Camera-up.
-.  With the camera still selected, press kbd:[Shift+D]. This will duplicate the camera. Next press kbd:[Enter] to set the selection.    
-*  With the camera still selected, press kbd:[R] immediately followed by 180 immediately followed by kbd:[Enter]. This will rotate the camera 180 degrees along the X axis. The camera should now be facing down. Rename this camera to Camera-down.
-.  Save your file.
-.  Open up a web browser and search for "free high res skymap" and select a Angular map of your choice or you can find some here at link:https://blenderartists.org/forum/showthread.php?24038-Free-high-res-skymaps-%2528Massive-07-update!%2529[https://blenderartists.org/forum/showthread.php?24038-Free-high-res-skymaps-%2528Massive-07-update!%2529] instead. Remember to select an *ANGULAR* map.
-.  Save a map to your pc in a place you can easily locate it from later in blender.
-.  From the properties panel (bottom-right panel) select the Textures tab (red-white checkerboard) then press the new button to create a new texture. Rename this texture to AngMap.
-*  Under the Image panel select open and navigate to the file you saved earlier.
-*  In the Mapping panel select AngMap from the drop down box.
-*  In the Influence panel de-select blend (ble) and select horrizon (hor).
-.  From the properties panel select the Data tab (reel to reel camera).
-*  In the lens panel change the Focal Lens value from 35 to 16. Do this for every camera.
-.  From the properties panel select the Render tab (normal looking camera).
-*  In the Dimensions panel set the resoloution to any number that is a power of 2. For this example 1024 x 1024. 
-**  Slide the resoloution scale to 100%.
-*  In the Output panel change the image type to JPEG. I have found out by trial and error that using a JPEG file has the same image quality as a PNG or DDS file but with a huge difference in image size. A single PNG image will clock in at over 8mb to the JPEG size of 325kb. Even converting to a DDS file comes in at over 3mb for comparrison (using RGB888 as is recommended by Momoko_Fan/Core Developer in this link:https://hub.jmonkeyengine.org/t/best-dds-format-for-skyfactory/17668/2[forum post]) with no gain in image quality that I could see. Your welcome to experiment on your own if you wish.
-*  Set the image format to RGB.
-*  Setting the quality slider to 0 has the effect of reducing the image size. In this example it reduced the image sizes to less than 125kb, once again with no discernable image degradation that I could see.
-.  In the properties panel select the World tab.
-*  Check the Real Sky toggle.
-.  Next we will setup the 3d view for your Angualr map generation. 
-*  From the header at the top of the 3d view click the "Choose Screen Layout" drop down list next to the word "Default" and select "Split Verticle F/R". 
-*  Click the "+" sign to create a new layout. 
-*  Rename this new layout Angular Map Generator or a name of your choosing.
-.  In the left side 3d view, at the bottom, next to the word view, is the "Current Editor Type" button. Click it and change it to UV/Image Editor.
-.  Place your mouse inside the right side 3d view and press kbd:[NumPad 5] to toggle ortho view. You're now setup to render your Angular map.
-.  Save your file.
-.  With your first camera selected (in this case Camera-down) and your mouse inside the right side 3d view, press kbd:[Ctrl+NumPad 0] to set your selected camera to be the active camera. 
-*  Press kbd:[F12] to render the scene. A image will appear in the left side UV/Image Editor. 
-.  With your mouse inside the left side UV/Image Editor you can scroll in or out to center the view.
-*  With your mouse inside the left side UV/Image Editor press kbd:[F3] to save your image. Rename the image (down.jpg in this case). 
-
-Follow this same procedure for the remaning cameras. Rendering, renaming and saving each. After you have rendered all your images you can copy and paste them into your asset folder for JME3. Usually under the Texture directory. To use them in your code, in simpleInitApp(), load the Textures and use the SkyFactory to create your sky.
-
-[source,java]
-----
-Texture west = getAssetManager().loadTexture("Textures/Sky/west.jpg");
-Texture east = getAssetManager().loadTexture("Textures/Sky/east.jpg");
-Texture north = getAssetManager().loadTexture("Textures/Sky/north.jpg");
-Texture south = getAssetManager().loadTexture("Textures/Sky/south.jpg");
-Texture up = getAssetManager().loadTexture("Textures/Sky/up.jpg");
-Texture down = getAssetManager().loadTexture("Textures/Sky/down.jpg");
-getRootNode().attachChild(SkyFactory.createSky(getAssetManager(), west, east, north, south, up, down));
-----
-
-Listed below are other Blender tutorials JME3 users may find valuable. 
-
-*  link:https://www.katsbits.com/tutorials/blender/cycles-skybox.php[Render a Skybox using Cycles]
-*  link:https://www.katsbits.com/tutorials/blender/render-skybox.php[Render a Skybox Environment Map]
-
-Many thanks go out to contributor glaucomardano for his video. He has excellent taste in music.
-
-
-== Gimp
-
-
-You can use link:https://www.gimp.org/[Gimp] to create SkyMaps from a single image with the addition of 2 scripts.
-
-*  link:https://code.google.com/archive/p/gimp-dds/[Gimp-dds]
-*  link:http://registry.gimp.org/node/25532[Cubemap Layers Generator]
-
-After installing the scripts you open a image in gimp. This script works by slicing up the image into 6 layers of equal size. Keep the image size the power of 2. So for example if you want 1024 sized image layers your image needs to be 3072x2048 in size. 
-
-.  After you open the image you select Filters/Generic/Cubemap Layer Generator.
-.  Fill in the details. 
-**  Source 
-**  power of 2 (10 for 1024 sized Layers) 
-**  Cubemap layout (Cross Horizontal)
-.  Slice up the image.
-.  Select File/Export as.
-.  Change file type and name to .dds and choose your location to export into.
-.  Click export.
-* In the dds exporter select none for compression
-* Select RGB8 for the format
-* Select Save: as cube map
-* Select No mipmaps
-. Export
-
-You add it to your scene as is explained in the <<jme3/advanced/sky#,How to add a Sky to your Scene>> tutorial.e will appear in the left side UV/Image Editor. 
+*  Press kbd:[F12] to render the scene. A image will appear in the left side UV/Image Editor.
 .  With your mouse inside the left side UV/Image Editor you can scroll in or out to center the view.
 *  With your mouse inside the left side UV/Image Editor press kbd:[F3] to save your image. Rename the image (down.jpg in this case).