HOW DO I JOIN 2 DIFFERENT TEXTURES

GTA:V Modding with ZModeler3 discussion.
Post Reply
brianzado
Posts: 1
Joined: Wed Sep 28, 2022 10:06 pm

HOW DO I JOIN 2 DIFFERENT TEXTURES

Post by brianzado »

:?: I WOULD LIKE TO MAKE SOMETHING SIMILAR TO THIS IMAGE USING TWO DIFFERENT TEXTURES
Image
SIMILAR TO THE IMAGE ABOVE
GOING FROM GRASS TO SAND
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: HOW DO I JOIN 2 DIFFERENT TEXTURES

Post by Oleg »

GTA uses 4 textures to blend one to another, you can use shaders:

terrain_cb_w_4lyr
terrain_cb_w_4lyr_pxm
terrain_cb_w_4lyr_pxm_spm
terrain_cb_w_4lyr_cm_pxm_tnt
terrain_cb_w_4lyr_spec_pxm
terrain_cb_w_4lyr_2tex_blend_pxm_spm
terrain_cb_w_4lyr_2tex_blend_lod
terrain_cb_w_4lyr_lod

Shaders with with _pxm is parallax-mapped. Shaders _2tex uses additional mask texture (UV#2) whose R,G,B,A channels are the levels of respective 4 texture layers. So, you can "paint" every one of texture layers onto surface via texture. Shaders with no _2tex in name uses per-verteg Green and Blue channels for textures transition. I'm not quite sure whether ZModeler's shader represent exactly the same transition as the game does, but at least you can make some tests and compare what it does and how it goes.
Post Reply