Difference between revisions of "Korman:Textures"
m (→Stencils) |
|||
(26 intermediate revisions by 4 users not shown) | |||
Line 17: | Line 17: | ||
Some sites include: | Some sites include: | ||
− | * [http://www. | + | * [http://www.textures.com http://www.textures.com] |
''More to be added'' | ''More to be added'' | ||
Line 30: | Line 30: | ||
==Which Types to Use== | ==Which Types to Use== | ||
− | While Blender supports a wide range of image file types, generally, JPG, BMP and PNG are used. | + | While Blender supports a wide range of image file types, generally, JPG, BMP and PNG are used. Blender does not support some images types such as WEBP. If Blender doesn't display the image when opened, you may need to convert it to another format. |
− | + | ||
− | + | <blockquote>NOTE: PNG is used for textures with alpha transparency.</blockquote> | |
+ | All images are exported into DDS (and, in the case of images in an '''Image Library''', HSM) format by Korman upon export. | ||
==Getting Started== | ==Getting Started== | ||
− | + | [[file:KorText01.jpg|thumb|250px]] | |
Before you can add textures, be sure to add a [[Korman:Materials|material]] to the object first and modify settings to your liking. | Before you can add textures, be sure to add a [[Korman:Materials|material]] to the object first and modify settings to your liking. | ||
Once that's done, click on the '''Textures''' button next to the '''Materials''' button (white and red-checkered box). | Once that's done, click on the '''Textures''' button next to the '''Materials''' button (white and red-checkered box). | ||
− | |||
− | |||
The top three buttons determine where the texture will be placed. Make sure the middle one (material) is selected. | The top three buttons determine where the texture will be placed. Make sure the middle one (material) is selected. | ||
Line 49: | Line 47: | ||
Click on the '''New''' button to add our first texture. | Click on the '''New''' button to add our first texture. | ||
− | + | [[file:KorText02.jpg|thumb|250px]] | |
− | [[file:KorText02.jpg]] | + | |
− | + | ||
Just above '''Type:''', you can rename the texture to something unique if you'd like. | Just above '''Type:''', you can rename the texture to something unique if you'd like. | ||
Line 63: | Line 59: | ||
For the time being, we'll use '''Image or Movie'''. | For the time being, we'll use '''Image or Movie'''. | ||
− | |||
− | |||
The '''Colors''' panel can adjust the settings of your texture locally (RGB value, brightness, contrast, and saturation). | The '''Colors''' panel can adjust the settings of your texture locally (RGB value, brightness, contrast, and saturation). | ||
Line 72: | Line 66: | ||
For '''Image Sampling''', make sure '''Use''', '''MIP Map''' and '''Interpolation''' are checked. | For '''Image Sampling''', make sure '''Use''', '''MIP Map''' and '''Interpolation''' are checked. | ||
'''NOTE''': If your image is going to be used in a Linking Book or Journal, uncheck MIP Map and Interpolation. | '''NOTE''': If your image is going to be used in a Linking Book or Journal, uncheck MIP Map and Interpolation. | ||
+ | |||
+ | [[file:KorText03.jpg|250px|thumb]] | ||
'''Image Mapping''' will determine if your texture is continuous or not. | '''Image Mapping''' will determine if your texture is continuous or not. | ||
Line 92: | Line 88: | ||
* You can set the behavior of your texture animations with '''Auto Play''' and '''Loop'''. | * You can set the behavior of your texture animations with '''Auto Play''' and '''Loop'''. | ||
* With the opacity slider, you can set the transparency of the entire texture...and even [[Korman:Animations#Opacity|animate]] it too to have it fade in and out. | * With the opacity slider, you can set the transparency of the entire texture...and even [[Korman:Animations#Opacity|animate]] it too to have it fade in and out. | ||
+ | [[file:KorText04.jpg|250px|thumb]] | ||
+ | * For textures which display differently depending on the avatar's distance from the object (usually used for very large object to reduce tiling), see [[Korman:Detail Textures]]. | ||
===Environment Maps=== | ===Environment Maps=== | ||
− | For reflective surfaces, | + | For reflective surfaces, see the [[Korman:Environment_Maps|Environment Map tutorial]] for more information. |
− | + | ==Special Types of Textures== | |
− | + | These are textures with special settings designed to do various functions. | |
− | + | ===Stencils=== | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | If you'd like two textures to "mix" into one another, such as the paths in Eder Kemo, a stencil is used in between two regular textures. | |
− | + | Generally, the stencil is a grayscale image. | |
− | + | White will cause the texture above the stencil to appear fully over the one below it, while black will cause it to not appear at all, while various shades of grey will give the texture varying shades of blending into the lower texture. | |
− | + | ====Example==== | |
− | + | [[file:KorText06.jpg]] | |
− | + | [[file:KorText07.jpg]] | |
− | + | In the above example, a grass texture is used, then the stencil that will spell a path saying "Hi!", then a sand texture stenciled over the grass in the shape of the stencil. | |
− | + | Note that a vast majority of your textures will have these settings in the '''Influence''' panel: | |
− | ==== | + | [[file:KorText08.jpg]] |
+ | |||
+ | However, for your stencil texture, the settings under '''Influence''' should look like this: | ||
+ | |||
+ | [[file:KorText09.jpg]] | ||
+ | |||
+ | Simply uncheck the '''Color''' field, then check '''RGB to Intensity''' and '''Stencil'''. | ||
+ | |||
+ | Here is the finished example in URU: | ||
+ | |||
+ | [[file:KorText10.jpg]] | ||
+ | |||
+ | As you can see, the part of the texture that was all white makes the sand appear fully while the two lower lines below, as shades of grey, blend into the grass below. | ||
+ | |||
+ | ====Texture Paint==== | ||
+ | |||
+ | While using a pre-made black and white texture for a stencil is OK, being able to paint your stencil using the mesh in the 3D window will give you a much more accurate result. | ||
+ | |||
+ | Before you can use the '''Texture Paint''' function on a mesh, you only need to unwrap the mesh. Note you'll need a material and texture slots later, but for now, a UV map is all you need. | ||
+ | |||
+ | Once those are done, in the '''3D View Window''', switch to '''Texture Paint'''. | ||
+ | |||
+ | [[File:KorText11.jpg]] | ||
+ | |||
+ | You'll see a new window appear within the 3D View with some tabs. Choose the '''Slots''' tab. | ||
+ | |||
+ | While in this tab, under '''Painting Mode''', switch to '''Image'''. | ||
+ | |||
+ | [[File:KorText12.jpg]] | ||
+ | |||
+ | This should bring up a new set of options. Here, you'll be able to create a new image for your stencil AND which UV map you'd like to use for it. | ||
+ | |||
+ | It's recommended you use a UV map that encompasses the entire mesh into the grey square in the '''UV/Image Editor''' window, as the image you'll be painting will generally be set within this square. | ||
+ | |||
+ | Click on '''New''' to create a new image: | ||
+ | |||
+ | [[File:KorText13.jpg]] | ||
+ | |||
+ | You can name the file here and make this image any size you wish. Remember that the higher the resolution, the finer the detail of the stencil! | ||
+ | |||
+ | From here, click on the '''Tools''' tab in the '''3D View''' window. You'll see a couple of options: | ||
+ | |||
+ | [[File:KorText14.jpg]] | ||
+ | |||
+ | Generally, you only need to keep an eye on three things: '''Brush Color''', '''Radius''', and '''Strength'''. | ||
+ | |||
+ | '''Brush Color''' is the color that will paint to the texture. For stencils, keep this white, black, or a shade of grey. | ||
+ | |||
+ | '''Radius''' determines the size of your "brush". | ||
+ | |||
+ | '''Strength''' determines the transparency of your "paint". 1 is for the full color while 0.1 is only a small touch of color. | ||
+ | |||
+ | To see your work, you can switch another window to '''UV/Image Editor'''. If you look there now, you'll see this: | ||
+ | |||
+ | [[File:KorText15.jpg|300px]] | ||
+ | |||
+ | Note the asterisk next to '''Image'''. When you're happy with your stencil, click that and then '''Save as Image'''. | ||
+ | |||
+ | Alternately, press '''F3''' while the mouse cursor is in the UV/Image Editor window. Save it where you like. | ||
+ | |||
+ | You now have a stencil set to your UV map! Plug it in with your other textures and see how it looks. | ||
+ | |||
+ | == Plasma Layer Options == | ||
+ | |||
+ | These options will be able to add a few more functions to your textures. | ||
+ | |||
+ | [[file:KorAnim06.jpg|300px|right]] | ||
+ | * '''Animation''': Note that these options will be greyed out if there is no texture animation. | ||
+ | ** '''Auto Start''': Checking this will cause any existing texture animation to automatically start. | ||
+ | ** '''Loop''': Checking this will cause the animation to loop continuously. | ||
+ | |||
+ | * '''Opacity''': This controls exactly how transparent a texture is. 100 percent for fully visible to 0 percent for completely invisible. This value can also be [[Korman:Animations#Opacity|animated]]. | ||
+ | |||
+ | * '''SDL Animation''': This will set the texture animation to an SDL state, which is useful for day-night cycles. | ||
+ | |||
+ | * '''Z Depth''': This is mostly for textures with blending problems. | ||
+ | ** '''High Alpha Test''': If you're experiencing a sort of "aura" around your transparent texture that is eating through other textures, use this option to try and resolve it. | ||
+ | ** '''Skip Depth Write''': This will allow other transparent textures and materials to be rendered behind this texture. Best for lamp flares and the like. | ||
+ | ** '''Skip Depth Test''': This option will cause your transparent texture to show through ''everything'', including things rendered in front of it. Use this only if this is the effect you want to achieve. | ||
+ | ** '''Z Bias''': If a mesh is overlain directly on top of another, you may experience glitching where the textures of each are fighting/"shimmering". Use this option to hopefully clear that up. | ||
+ | |||
+ | === Detail Blending === | ||
+ | |||
+ | This option is used to cause some of the more detailed textures of a mesh to fade out at a distance. | ||
+ | |||
+ | ''To Be Added'' | ||
+ | |||
+ | ==Double Sided Normals== | ||
+ | |||
+ | Occasionally, you'll have an instance where you'll have a flat plane but need the texture(s) on both sides of the object's faces/normals. As of '''Korman 0.10''', this feature is now available. | ||
+ | |||
+ | Click on the '''Data''' button in the '''Properties''' window. Here, under the '''Normals''' panel, you'll find a checkbox for '''Double-Sided''': | ||
+ | |||
+ | [[file:KorText16.jpg|500px]] | ||
− | + | Simply check this box for any flat plane objects to have the texture on either side. | |
+ | <blockquote>'''NOTE: Try to use this as sparingly as possible to help performance.'''</blockquote> | ||
[[Category:Korman]] | [[Category:Korman]] |
Latest revision as of 18:19, 13 November 2024
This is a tutorial page.Versions available: PyPRP; 3ds Max; Korman. |
This tutorial will explain various types of textures that can be used with Korman.
Contents
Introduction
Multiple textures can be layered over each other to create many desired effects. Some textures can be used as a stencil to "mix" two textures together, while others can be used to simulate lighting and shadow (aka lightmaps).
Proper UV mapping and texture settings are essential to making an object look realistic in URU. This tutorial will show you the various methods, but it's always best to adjust and experiment with the given settings to see if something works better.
Getting the Best Textures
There are many texture sites that offer free textures for use in 3D modeling. You can search the internet for "free textures" to find one that fits your purposes.
Some sites include:
More to be added
You can also go out and get a texture yourself by taking a picture of a surface of your choice. Things to remember about making your own textures:
- Make sure the surface is evenly lit (otherwise more editing may be needed later).
- Higher resolution will make the surface of your object look better.
- Good photo editing software will be needed to properly prepare your texture, particularly if you want to make it tile properly (ie smooth and continuous).
- While Korman will adjust picture size, it's best to keep your picture's dimensions in multiples of 4.
- Examples: 64 by 64, 256 by 512, 1024 by 1024, etc.
Which Types to Use
While Blender supports a wide range of image file types, generally, JPG, BMP and PNG are used. Blender does not support some images types such as WEBP. If Blender doesn't display the image when opened, you may need to convert it to another format.
NOTE: PNG is used for textures with alpha transparency.
All images are exported into DDS (and, in the case of images in an Image Library, HSM) format by Korman upon export.
Getting Started
Before you can add textures, be sure to add a material to the object first and modify settings to your liking.
Once that's done, click on the Textures button next to the Materials button (white and red-checkered box).
The top three buttons determine where the texture will be placed. Make sure the middle one (material) is selected.
The up and down arrows to the right of the texture list can move the order of the textures in the material. Simply select a texture and use the arrows to move it up and down on the list.
Click on the New button to add our first texture.
Just above Type:, you can rename the texture to something unique if you'd like.
The checkbox next to each texture MUST be checked for Korman to export it. If you'd rather have the texture there for later, but prefer it not be exported, uncheck the box to the right of the texture.
For Type:, Korman currently uses two kinds:
- Image or Movie: uses an image file (movie files are not supported at this time)
- Environment Map: used for reflective surfaces
Image or Movie
For the time being, we'll use Image or Movie.
The Colors panel can adjust the settings of your texture locally (RGB value, brightness, contrast, and saturation).
The Image panel is where you can choose your image file.
For Image Sampling, make sure Use, MIP Map and Interpolation are checked. NOTE: If your image is going to be used in a Linking Book or Journal, uncheck MIP Map and Interpolation.
Image Mapping will determine if your texture is continuous or not.
- Repeat is used for a continuous texture.
- Clip is used if you'd like the texture to only appear once at the center of the UV map (decals).
Mapping is how the texture will appear on the object. Generally, this is done with a UV map for more precise mapping. See UV mapping below.
- Select which UV map you'd like to use with the Map form. If none is selected, Korman will use the first UV map on the list.
- You can alternately use Generated in Coordinates for a continuous, yet less precise, mapping.
- Offset is mostly used in animations.
- Size is generally set at 1 for X, Y, and Z for it to appear exactly as it does in the 3D view. Increasing the value will "shrink" the texture while decreasing it will make it larger.
Influence is usually best with default settings. For regular textures, only Color should be checked and at a value of 1.
- Settings for this are a bit different with Stencils. See below.
- Blend is how the texture will mix with others. Generally, this is set to Mix.
- Add and Multiply are used to "merge" into a texture below based on shades of black and white.
NOTE: Multiply was used for lightmaps in PyPRP, but that method has since been replaced with Korman's lightmapping modifier.
Plasma Layer Options is a custom panel for Korman.
- You can set the behavior of your texture animations with Auto Play and Loop.
- With the opacity slider, you can set the transparency of the entire texture...and even animate it too to have it fade in and out.
- For textures which display differently depending on the avatar's distance from the object (usually used for very large object to reduce tiling), see Korman:Detail Textures.
Environment Maps
For reflective surfaces, see the Environment Map tutorial for more information.
Special Types of Textures
These are textures with special settings designed to do various functions.
Stencils
If you'd like two textures to "mix" into one another, such as the paths in Eder Kemo, a stencil is used in between two regular textures.
Generally, the stencil is a grayscale image.
White will cause the texture above the stencil to appear fully over the one below it, while black will cause it to not appear at all, while various shades of grey will give the texture varying shades of blending into the lower texture.
Example
In the above example, a grass texture is used, then the stencil that will spell a path saying "Hi!", then a sand texture stenciled over the grass in the shape of the stencil.
Note that a vast majority of your textures will have these settings in the Influence panel:
However, for your stencil texture, the settings under Influence should look like this:
Simply uncheck the Color field, then check RGB to Intensity and Stencil.
Here is the finished example in URU:
As you can see, the part of the texture that was all white makes the sand appear fully while the two lower lines below, as shades of grey, blend into the grass below.
Texture Paint
While using a pre-made black and white texture for a stencil is OK, being able to paint your stencil using the mesh in the 3D window will give you a much more accurate result.
Before you can use the Texture Paint function on a mesh, you only need to unwrap the mesh. Note you'll need a material and texture slots later, but for now, a UV map is all you need.
Once those are done, in the 3D View Window, switch to Texture Paint.
You'll see a new window appear within the 3D View with some tabs. Choose the Slots tab.
While in this tab, under Painting Mode, switch to Image.
This should bring up a new set of options. Here, you'll be able to create a new image for your stencil AND which UV map you'd like to use for it.
It's recommended you use a UV map that encompasses the entire mesh into the grey square in the UV/Image Editor window, as the image you'll be painting will generally be set within this square.
Click on New to create a new image:
You can name the file here and make this image any size you wish. Remember that the higher the resolution, the finer the detail of the stencil!
From here, click on the Tools tab in the 3D View window. You'll see a couple of options:
Generally, you only need to keep an eye on three things: Brush Color, Radius, and Strength.
Brush Color is the color that will paint to the texture. For stencils, keep this white, black, or a shade of grey.
Radius determines the size of your "brush".
Strength determines the transparency of your "paint". 1 is for the full color while 0.1 is only a small touch of color.
To see your work, you can switch another window to UV/Image Editor. If you look there now, you'll see this:
Note the asterisk next to Image. When you're happy with your stencil, click that and then Save as Image.
Alternately, press F3 while the mouse cursor is in the UV/Image Editor window. Save it where you like.
You now have a stencil set to your UV map! Plug it in with your other textures and see how it looks.
Plasma Layer Options
These options will be able to add a few more functions to your textures.
- Animation: Note that these options will be greyed out if there is no texture animation.
- Auto Start: Checking this will cause any existing texture animation to automatically start.
- Loop: Checking this will cause the animation to loop continuously.
- Opacity: This controls exactly how transparent a texture is. 100 percent for fully visible to 0 percent for completely invisible. This value can also be animated.
- SDL Animation: This will set the texture animation to an SDL state, which is useful for day-night cycles.
- Z Depth: This is mostly for textures with blending problems.
- High Alpha Test: If you're experiencing a sort of "aura" around your transparent texture that is eating through other textures, use this option to try and resolve it.
- Skip Depth Write: This will allow other transparent textures and materials to be rendered behind this texture. Best for lamp flares and the like.
- Skip Depth Test: This option will cause your transparent texture to show through everything, including things rendered in front of it. Use this only if this is the effect you want to achieve.
- Z Bias: If a mesh is overlain directly on top of another, you may experience glitching where the textures of each are fighting/"shimmering". Use this option to hopefully clear that up.
Detail Blending
This option is used to cause some of the more detailed textures of a mesh to fade out at a distance.
To Be Added
Double Sided Normals
Occasionally, you'll have an instance where you'll have a flat plane but need the texture(s) on both sides of the object's faces/normals. As of Korman 0.10, this feature is now available.
Click on the Data button in the Properties window. Here, under the Normals panel, you'll find a checkbox for Double-Sided:
Simply check this box for any flat plane objects to have the texture on either side.
NOTE: Try to use this as sparingly as possible to help performance.