Texture Transition

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Texture Transition

Postby Ben878 » Sat May 23, 2009 9:30 pm

I really want my map to look really good and the only way I can is somehow to get the textures on the terrain to "blend" nicely.

Image

You can see here that the textures are very sharp. I want somehow to have them blend together so you can't really see where one ends and the other begins. Any help would greatly be appreciated :)

Thankyou.
Ben878
Member
 
Posts: 12
Joined: Mon May 18, 2009 1:08 am

Postby Morphed » Sat May 23, 2009 9:44 pm

Morphed
Alien
 
Posts: 197
Joined: Tue Feb 28, 2006 10:41 pm
Location: Poland

Postby Ben878 » Sun May 24, 2009 1:28 am

Morphed wrote:http://www.simonoc.com/pages/articles/terrain1_1.htm


I managed to get this working with only one problem.
Code: Select all
textures/terrain_data/snow01torock
{
        qer_editorimage textures/terrain_data/snow01torock.tga
   
   q3map_nonplanar
   q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
   q3map_shadeAngle 0
   q3map_alphaMod dotproduct2 ( 0 0 1 )
   
   {
      map textures/terrain_data/snow01.tga   // Primary
      rgbGen identity
   }
   {
      map textures/terrain_data/snow01rock.tga   // Secondary
      blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
      alphaFunc GE128
      rgbGen identity
      alphaGen vertex
   }
   {
      map $lightmap
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
   }
}


Is what I am using, at one angle the texture works perfectly but when you go around the hill the texture doesn't work correctly.

Here it isn't working right:
Image

But Here it is working right:
Image
(I know it isn't a "quick enough" transition so it looks a bit too long for a snow to rock transition but I'll fix that as soon as I have the solution to this problem.

Thanks again.

Edit: solved it myself after a few thorough readings of that article. I am going to align all the textures manually. Although it will take me some time, it seems to be working.

Thanks again for all the help.
Ben878
Member
 
Posts: 12
Joined: Mon May 18, 2009 1:08 am


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron