123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|429|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Texture on a textured terrain

Sat, 28 Oct 2006, 16:16
ingenium1
mmm...
i want to place a texture on a textured terrain...
like a circle to indicate what unit i have selected...
how can I?

-=-=-
Roger Federer is go(o)d.
But he is not alone.

Just relax... sometimes there's no need to argue.
Sat, 28 Oct 2006, 16:20
HoboBen
Could you align a sprite 0.1 up off the surface, parented to the model of the unit(s)?

I know you may be using a terrain where this sprite would go into the hills a little where the slope changes, but I've seen this happen on a lot of games. You could perhaps find a way to measure the slope of the terrain, using TerrainHeight(x,y), and angle the sprite accordingly, which may be something to think about.

-=-=-
blog | work | code | more code
Sat, 28 Oct 2006, 16:23
ingenium1
No i can't use a sprite...
And i have no hills... only high mountains...

-=-=-
Roger Federer is go(o)d.
But he is not alone.

Just relax... sometimes there's no need to argue.
Sat, 28 Oct 2006, 16:26
HoboBen
Okay, well, a few ideas to maybe think about...

  • How about other solutions involving EntityOrder, to draw something that is always displayed (although, again, a sprite, unless you want a mesh)
  • The method I first posted, but using a plain white sprite, and using entitycolor and entityalpha to just change the colour of the texture underneath?
  • Something slow involving dynamically generating hightmaps! ;-p

    -=-=-
    blog | work | code | more code
  • Sat, 28 Oct 2006, 16:30
    ingenium1
    mmm i like the first idea...
    thnx
    Sat, 28 Oct 2006, 18:01
    ingenium1
    nah doesn't work as i want to...

    i have an image to make more clear my question:


    as you can see there is a red piece of texture under the main character, not a sprite

    -=-=-
    Roger Federer is go(o)d.
    But he is not alone.

    Just relax... sometimes there's no need to argue.
    Sat, 28 Oct 2006, 18:42
    ingenium1
    go here. solution

    -=-=-
    Roger Federer is go(o)d.
    But he is not alone.

    Just relax... sometimes there's no need to argue.
    Sun, 29 Oct 2006, 08:54
    magicman
    wow, thats pretty nice looking.