Difference between revisions of "Korman:Detail Textures"

Line 1: Line 1:
<gallery>
 
</gallery>
 
 
{{Tutorial|Detail Textures|Korman}}
 
{{Tutorial|Detail Textures|Korman}}
 
[[File:PlasmaLayerOptions_DetailTexture.png|right]]
 
  
 
Materials with "Detail Blended" texture layers are useful in avoiding textures that would otherwise be too blurry or pixelated when your avatar (or more specifically, your active camera) gets close to them, while also avoiding excessive tiling on large objects when you are very far away.
 
Materials with "Detail Blended" texture layers are useful in avoiding textures that would otherwise be too blurry or pixelated when your avatar (or more specifically, your active camera) gets close to them, while also avoiding excessive tiling on large objects when you are very far away.
Line 27: Line 23:
  
 
d) In the Texture Panel add a '''second''' (new) texture layer and rename it. In this example it was renamed to "rock-detail" .
 
d) In the Texture Panel add a '''second''' (new) texture layer and rename it. In this example it was renamed to "rock-detail" .
In the '''Image panel''', use the dropdown button and select the same texture data block, in this example "aRock_.png"  
+
In the '''Image section''', use the dropdown button and select the same texture data block, in this example "aRock_.png"  
  
so your image panel should look something like this ...
+
[[File: Textureblock.jpg]]
 
+
IMAGE
+
  
 
(Notice that the image now has TWO users)
 
(Notice that the image now has TWO users)
  
e) Untick the Alpha box.
+
e) Now, UNtick the Alpha box and your image panel should look something like this ...
 +
 
 +
[[File: UntickAlpha.jpg]][[Category:Korman]]
 +
 
 +
and if you scroll back up you should now have two texture layers. In this example, "rock" and "rock-deta. ( (Note:In this example, 2 further layers have been added, "stencil" and "grass", but more about that later) ... like this:
 +
 
 +
[[File: PlasmaLayerOptions_DetailBlending_texturepanel1.jpg]][[Category:Korman]]
 +
 
 +
(Make sure that these texture layers are ticked or Korman won't export them!)
 +
 
 +
f) Select the "detail" texture in this panel and then make sure that your 3d view window is showing the '''Material View'''
 +
 
 +
g) Scroll down to the Mapping section where the X,Y and Z values should all be be the same value, 1.
 +
 
 +
[[File: PlasmaLayerOptions_DetailBlending_mappingSize.jpg ]]
 +
 
 +
h) Check in your 3D View window and  increase this number for X.Y & Z. As the value increases, you will see that the texture on the object will get smaller.
 +
 
 +
Increase this number until the texture size is mapped correctly on your object for its "close up" view in game.  In this example, it was increased to 24
 +
 
 +
i) Now, scroll down to the '''Plasma Layer Options''' section and tick the "Detail Blending" checkbox.
 +
 
 +
[[File:PlasmaLayerOptions_DetailTexture.png]]
 +
 
 +
j) Finally, adjust the values of FallOffStart/Stop and Opacity Start/Stop.
 +
 
 +
These values control how and when the blending from the "far away" view to the "close up" takes place in real time.
 +
 
 +
The values shown here seem to work reasonably well for most walls, cliffs and ground objects.
 +
 
 +
[[File:PlasmaLayerOptions_DetailBlending_FallOff.jpg]]
 +
 
 +
If you want a more detailed, technical explanation of exactly how these values work, then check out this post
 +
 
 +
https://forum.guildofwriters.org/viewtopic.php?p=73744#p73744
  
 
[[Category:Korman]]
 
[[Category:Korman]]

Revision as of 12:34, 4 February 2020

Disambig gray.png

This is a tutorial page.Versions available: PyPRP; 3ds Max; Korman.
 

Materials with "Detail Blended" texture layers are useful in avoiding textures that would otherwise be too blurry or pixelated when your avatar (or more specifically, your active camera) gets close to them, while also avoiding excessive tiling on large objects when you are very far away.

This is particularly noticeable with large areas (walls, floors, terrain) that will be seen from a distance and close up. Good UV mapping helps, but cannot completely stop this from happening with large surfaces.

Using a "detail" texture layer solves this by slowly blending one of the material's texture layers into another one, in real time, as the camera gets closer to the object. As the camera gets closer to the material, the amount of blending gets more intense until you eventually see only the "near" texture layer. The opacity of the "near" texture changes from 0% to 100% as the camera gets closer, and it does so in real-time, while the "far" texture goes from 100% to 0% opacity.

Note for former PyPRP users: The main difference between using this option in Korman from PyPRP is that your textures images do not need an alpha channel in Korman. In fact, images with no alpha give the best results.

You can use the same texture image file for both the "far" texture layer and the "near" texture layer, although you will often be using completely different images for "far" and "near". However this tutorial will use the same image for simplicity.

NOTE: This tutorial assumes you are already familiar with creating basic, single texture layer materials in Blender.

Creating the material

Create a new object, and make sure its selected in the 3D window and then:

a) In the Properties Panel, click on the Material button and add new material and rename it to something easy to remember. In this example it was renamed to "bryceisland"

b) Click the Texture button and add a single texture layer and rename it. In this example it was renamed to "rock"

c) Use a NON-transparent .png image file and then UV map it so it looks good from a distance. In this example the image file is called "aRock_.png.

d) In the Texture Panel add a second (new) texture layer and rename it. In this example it was renamed to "rock-detail" . In the Image section, use the dropdown button and select the same texture data block, in this example "aRock_.png"

Textureblock.jpg

(Notice that the image now has TWO users)

e) Now, UNtick the Alpha box and your image panel should look something like this ...

UntickAlpha.jpg

and if you scroll back up you should now have two texture layers. In this example, "rock" and "rock-deta. ( (Note:In this example, 2 further layers have been added, "stencil" and "grass", but more about that later) ... like this:

PlasmaLayerOptions DetailBlending texturepanel1.jpg

(Make sure that these texture layers are ticked or Korman won't export them!)

f) Select the "detail" texture in this panel and then make sure that your 3d view window is showing the Material View

g) Scroll down to the Mapping section where the X,Y and Z values should all be be the same value, 1.

PlasmaLayerOptions DetailBlending mappingSize.jpg

h) Check in your 3D View window and increase this number for X.Y & Z. As the value increases, you will see that the texture on the object will get smaller.

Increase this number until the texture size is mapped correctly on your object for its "close up" view in game. In this example, it was increased to 24

i) Now, scroll down to the Plasma Layer Options section and tick the "Detail Blending" checkbox.

PlasmaLayerOptions DetailTexture.png

j) Finally, adjust the values of FallOffStart/Stop and Opacity Start/Stop.

These values control how and when the blending from the "far away" view to the "close up" takes place in real time.

The values shown here seem to work reasonably well for most walls, cliffs and ground objects.

PlasmaLayerOptions DetailBlending FallOff.jpg

If you want a more detailed, technical explanation of exactly how these values work, then check out this post

https://forum.guildofwriters.org/viewtopic.php?p=73744#p73744