Opened 8 years ago

Closed 2 years ago

Last modified 2 years ago

#4219 closed defect (fixed)

GLSL / Multilayered textures aren't blended

Reported by: elexis Owned by:
Priority: Should Have Milestone: Alpha 26
Component: Core engine Keywords:
Cc: _kali, Niek Patch:

Description (last modified by Vladislav Belov)

Terrain textures (multilayered) don't seem to be blended.

This is most noticeable on ngorngoro:

http://trac.wildfiregames.com/raw-attachment/ticket/4219/ngorongoro_noglsl.jpg http://trac.wildfiregames.com/raw-attachment/ticket/4219/ngorongoro_glsl.jpg

Attachments (5)

ngorongoro_glsl.jpg (162.2 KB ) - added by elexis 8 years ago.
ngorongoro_noglsl.jpg (165.3 KB ) - added by elexis 8 years ago.
4219_0.png (690.5 KB ) - added by Vladislav Belov 8 years ago.
4219_1.png (448.1 KB ) - added by Vladislav Belov 8 years ago.
4219.patch (1.1 KB ) - added by Vladislav Belov 7 years ago.
Replace the grass1_spring_fancy texture by the grass1_spring without layers

Download all attachments as: .zip

Change History (14)

by elexis, 8 years ago

Attachment: ngorongoro_glsl.jpg added

by elexis, 8 years ago

Attachment: ngorongoro_noglsl.jpg added

by Vladislav Belov, 8 years ago

Attachment: 4219_0.png added

comment:1 by Vladislav Belov, 8 years ago

I have repeated this issue, it happens with multilayered textures, because they have height.

http://trac.wildfiregames.com/raw-attachment/ticket/4219/4219_0.png

Without GLSL it works, because no multilayered textures.

Last edited 8 years ago by Vladislav Belov (previous) (diff)

comment:2 by Vladislav Belov, 8 years ago

When somebody adds add a texture, engine modify only the adding texture, so if a previous texture was multilayered, then next less layered textures won't cover this multilayered one.

comment:3 by Vladislav Belov, 8 years ago

Summary: GLSL - Some terrain textures not interpolatedGLSL / Multilayered textures aren't blended

comment:4 by Vladislav Belov, 8 years ago

Description: modified (diff)

by Vladislav Belov, 8 years ago

Attachment: 4219_1.png added

comment:5 by Vladislav Belov, 8 years ago

Terrain shader (terrain_common.fs). Patch (dicards other layers):

#ifdef LAYER
  if (LAYER > 0)
      discard;
#endif

Left with patch, Right without patch:

http://trac.wildfiregames.com/raw-attachment/ticket/4219/4219_1.png

Last edited 8 years ago by Vladislav Belov (previous) (diff)

comment:6 by gameboy, 8 years ago

@vladislavbelov, My friend, you can provide a complete patch file to fix this problem, we will help you to test, thank you!

by Vladislav Belov, 7 years ago

Attachment: 4219.patch added

Replace the grass1_spring_fancy texture by the grass1_spring without layers

comment:7 by elexis, 7 years ago

In 18890:

Don't use multilayered textures on Ngorongoro as the blending is broken. Patch by Vladislav, refs #4219.

comment:8 by Vladislav Belov, 2 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Multilayered textures were removed from maps in r26241, related materials were removed in r26242, and shader support was removed in r26243.

comment:9 by Stan, 2 years ago

Milestone: BacklogAlpha 26
Note: See TracTickets for help on using tickets.