Blended texture - detail sprites on half

Modelling, Textures, Animating and other general engine asset topics.

Blended texture - detail sprites on half

Postby andy4729 on Mon Jan 23, 2012 1:45 am

I have a blended texture that I've crated and some custom detail sprites all set up and working. However, I'd like the detail sprites to only appear on on of the blended texture so I can create a kind of dirt road effect with grassy areas either side.
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: Blended texture - detail sprites on half

Postby andy4729 on Mon Jan 23, 2012 2:15 am

Nevermind, sorted it. Here's how if anyone needs to know:

ankhsethamon wrote:Well.. I think I have the answer...

If I got it well, you want the grass details only in the Grass texture, and not in the Dirt one... ( respecting the alpha you drew in your displacement...)

Well.. try this ( i just tested it and worked.. XD)

You need to add a Group2 to your detail!

This is how you do it:

Code: Select all
details
{
   city
   {
      "density" "4000"

      Group1
      {
         "alpha" "0"
         //models here.... Model1 { ... } etc
      }
     Group2
     {
             "alpha" "1"
     }
     
   }

}


So the important thing ( the one you just need to add) is the group2 with the alpha 1, and no models... If you get it working the other way ( I mean, the details appearing in the dirt and not in the grass.. just invert the alpha value 0/1 in both groups... )

Hope this helps!!! Let me know... 8)
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Return to Art Creation

Who is online

Users browsing this forum: No registered users