====== Modifying Scene Textures ====== ===== Overview ===== Creating scene textures is a similar process to creating model textures. Textures are image files that are used to "skin" the 3D models in the scenes. Every object in the scene has a texture associated with it. Some textures are re-used in different places (E.g. wood deck) so changing one texture may affect multiple objects. Also, some texture images contain textures for multiple scene objects. {{:en:scenemod:yachtmods2.jpg?1125}}\\ Vulcano and German I by [[http://www.gamerotica.com/profile/Condoria/shares|Condoria]], Donnagrey by [[http://www.gamerotica.com/profile/celebwrecker/shares|Celebwrecker]], MV Luisa by [[http://www.gamerotica.com/profile/MaXsiM/shares|MaXsiM]], %%ElizabethNight%% by [[http://www.gamerotica.com/profile/Lotter/shares|Lotter]] ==== Regular Textures ==== For the most part the textures are basic color images that get wrapped around the 3D geometry in the scene. Here are some typical examples. |{{:en:scenemod:texture_objects_01.png|}}| Texture for the airbed | |{{:en:scenemod:texture_objects_02.png|}}| Island texture | |{{:en:scenemod:texture_objects_03.png|}}| The couch texture has the pillow shadows "baked in". The cast shadow\\ is added by the lightmap image (see below) | ==== Special Textures ==== There are also some "special" textures that don't fall into the basic category. |{{:en:scenemod:room_yacht01_poolwater02.png|}}| The **water** textures are "tileable" textures. This means that if you place them next to\\ each other up/down and left/right they will make a seamless pattern.\\ The water texture also makes use of a [[#What_are_those_.txf_files_for?|transparent blend mode]] | |{{:en:scenemod:room_yacht01_lightmap01.png|}}| The **lightmap** textures are multiplied with objects in the scene to create cast shadows.\\ These are pre-computed images that you should probably avoid editing. | |{{:en:scenemod:room_yacht01_locator01_uv.png|}}| In the PSD files you will find a **UV layer**.\\ This overlays an image of the polygons that the texture will be mapped onto.\\ \\ The UV image can be particularly useful as a guide when the colors in the image\\ don't provide a clear enough reference.\\ \\ Be sure to turn off this layer when you save the image or your objects\\ will have lines on them! \\ \\ **Note:** The PSD files are in the zip file that gets installed in your "Mod" folder.| \\ \\ \\ \\ ===== Creating textures for scenes ====== ==== Step One: Download the base texture set ==== The base texture set contains the texture files used in the scene. Download the texture set for the [[http://www.gamerotica.com/share/view/texture/207234-thrixxx_texturepack_yacht|Yacht]]. Be sure to download the one that is matches your [[en:versions|version]]. These are the texture files that you need to edit to customize the scene. {{:en:scenemod:scmod_download_texture_set.png?1125}} You can also choose individual textures if you don't want the whole set (Example below is the Vulcano mod by [[http://www.gamerotica.com/profile/Condoria/shares|Condoria]])\\ {{:en:scenemod:texture_cart.jpg?1125}}\\ If you download for the wrong game [[en:versions|version]] the textures may still work but you're better off to download the set that matches your version.\\ {{:en:scenemod:wrong_version.jpg|}} ==== Step Two: Install the texture set ==== Locate the downloaded file. If you are using Firefox it will show up under Tools -> Downloads (will be slightly different for different browsers)\\ {{:en:scenemod:download_bar.jpg|}} Double click on the .exe file to open it. This will install a zip archive file to your "mod" folder.\\ {{:en:scenemod:install_texture_set.jpg?1125}} ==== Step Three: Activate the texture set ==== {{:en:scenemod:activate_mod.jpg|}} - Run the game - Go to the Settings tab - Turn on the texture set (note: you may not be able to see the full name of the zip archive. You can rename the zip file in the "mod" folder if this makes it easier. Otherwise, take your best guess. - This will unzip the textures into a folder underneath the "%%ActiveMod%%" folder - E.g. "%%ActiveMod%%\thriXXX_TexturePack_Yacht.zip" Note: The "%%ActiveMod%%" folder location depends on either your installation directory (Windows XP) or your windows user directory (Windows Vista). The easiest way to find it, is to check the start menu for the "Open mod folder" shortcut. ==== Step Four: Modify a Texture ==== {{:en:scenemod:change_color1.jpg?1125}} - Look at the textures that were unzipped in the previous step and pick one to modify - Run your image editor (E.g. Photoshop, Gimp, etc) - Load up the image and make some changes - Save it over the original image Tip: You can always get the default images out of the .zip archive file in the "mod" folder if you need them Tip: The zip file contains the source .PSD (Photoshop) files for the textures. These will not be unpacked by installing the mod. Advanced users may want to mess with these. ==== Step Five: View your new texture in-game ==== {{:en:scenemod:change_color2.jpg|}} - Load up the scene. It will show up as a clone of the original set with the name of the texture mod - Locate the object with your modified texture Tip: Hit ALT+R to reload the texture after you make additional changes. This allows you to make adjustments without restarting the game. ==== Step Six: Rinse and Repeat ==== Now that you have the workflow down you can continue to edit as many of the textures as you like. You can use ALT+R to reload the textures in the scene so you don't have to exit and restart. That makes it really handy to try different things and see the results. ===== Tips and Tricks ===== ==== What are those .txf files for? ==== ==== What are those TXF files for? ==== Check out [[:en:txf_files|txf files]] for more info. ==== Creating tiling images in Photoshop ==== Some textures like the water need to tile seamlessly in both directions. There's a tutorial on making tiling textures [[http://www.instructables.com/id/Make-a-Tiling-Image-in-Photoshop/|here]]. ==== Creating partially transparent images in Photoshop ==== Here are two quick and simple techniques to create partially transparent images in Photoshop: - Use the Eraser tool and set the opacity to about 10%. Then paint away at your image. - Change the Opacity of the entire layer in the Layer panel. Ensure that Image->mode is set to RGB color and save your image as a .png file. This should preserve the transparency information. You will also need to change the matching .txf file to be "RGBA_8888" "%%AlphaBlend%%" if it isn't already. ==== Stuff to watch out for ==== * **Don't** change the base name of any file (i.e. the filename without the extension). The names are important for the game to find the images you want to replace. * You may change the size of the images to increase details, but the **aspect** of the image needs to remain the **same**. Furthermore, all images need to have width and height to be **power of 2** (i.e. 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) The maximum size is limited by the graphics card (and the graphics card memory) and must __not exceed 2048__. We recommend to leave the image size as it is (or by max double width and height to be on the safe side). * Supported file formats are: **JP2** and **PNG**. You may change the fileformat from jp2 to png or vice-versa. It's just a matter of compression and filesize (which should be held small). So if you are kind, try both formats and use the one with smaller filesize. ===== Sharing your new texture set ===== When you're ready to share your texture set with the community go to [[:en:sharing_your_texture_set|Sharing your texture set]] === Important Notices === * The uploaded zip file gets checked for its content. Do not include any additional files and/or folders except the modded images and .txf's to avoid that your upload gets rejected. * Your mod will get checked by Gamerotica staff. As long as there is nothing offensive or illegal the mod should get approved to share with the community. * **Do not use copyrighted material** for modding to prevent legal troubles for yourself and/or Gamerotica.