Author Topic: how to....create a path on a surface layer?  (Read 10016 times)

Offline Aenea

  • Member
  • *
  • Posts: 130
how to....create a path on a surface layer?
« on: April 12, 2007, 08:18:50 AM »
Hi folks!

Hope someone can help me with this...

The question is...: I have a surface layer with an image shader (something like rocky ground or soil, or grass), now I want a path going through it (by using a texture of stones, gravel or so)...but how does that work?

First I thought by restricting a new surface layer to specific heights (using the alteration) could work, but when I have an almost plain surface this of course doesnīt work.....

I think maybe adding the surface layer with grass/soil etc, then adding a mask? But I have no clue at the moment how this should work....
I can imagine that when Iīm able to add a mask or so, I can fill the part which shows the path with a second image map shader that is my path (like gravel or stones).

I hope this doesnīt sound too confusing....can anyone help me with a quick description how to achieve that, please???

Aenea


Offline Will

  • Member
  • *
  • Posts: 2282
  • For the easily entertained!
Re: how to....create a path on a surface layer?
« Reply #1 on: April 12, 2007, 08:47:15 AM »
hmm well you could make a hite paths on a tart backround and use that as a kind of alpha that would restrict your stone texture to the area. you would need an image file shader with opacency as transparity and have that maybe leading into the texture node...I don't really know I would have to lay it out myself but I did somthing simular a while back using such a technqiue to give a planets continets with displacement and color but also making the water reflective.

Regards,

Will
The world is round... so you have to use spherical projection.

Offline RealUser

  • Member
  • *
  • Posts: 229
  • Hey Hey!
    • My Renderosity Gallery
Re: how to....create a path on a surface layer?
« Reply #2 on: April 12, 2007, 08:51:54 AM »
This is a tutorial that may can help you.
http://www.ashundar.com/page.php?id=303
Markus / RealUser
...................................................................
visit my Renderosity Gallery at
http://www.renderosity.com/mod/gallery/browse.php?username=RealUser
...................................................................

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 13097
  • Holy snagging ducks!
Re: how to....create a path on a surface layer?
« Reply #3 on: April 12, 2007, 05:40:36 PM »
It should be fairly simple to paint a black and white mask image in an image editor such as Photoshop and then use this as a Blend Shader, Fractal Breakup or Density Shader for an Image Map Shader, Surface Layer, or Fake Stones node (respectively).

- Oshyan

Offline Aenea

  • Member
  • *
  • Posts: 130
Re: how to....create a path on a surface layer?
« Reply #4 on: April 13, 2007, 07:18:55 PM »
So far so good....but how do I make it appear in the right position?

The path doesnīt appear anywhere???? I want it at the left side, on the green.....any ideas what I made wrong?

edit: I tried it with position, but nothing happened...btw....you can see the picture clearly if you zoom.....

Aenea

Offline child@play

  • Member
  • *
  • Posts: 331
  • white and nerdy
    • My Terragen2 Blog
Re: how to....create a path on a surface layer?
« Reply #5 on: April 13, 2007, 07:23:05 PM »
have you tried projection through camera yet?
perfection is not when there's nothing more to add, it's reached when nothing more can be left out


Offline Aenea

  • Member
  • *
  • Posts: 130
Re: how to....create a path on a surface layer?
« Reply #6 on: April 13, 2007, 08:48:46 PM »
yeah....same effect....nothing appears....

Offline child@play

  • Member
  • *
  • Posts: 331
  • white and nerdy
    • My Terragen2 Blog
Re: how to....create a path on a surface layer?
« Reply #7 on: April 13, 2007, 08:50:10 PM »
hm, try to make the black path white then, when you think of clouds, black is where nothing appears :)
perfection is not when there's nothing more to add, it's reached when nothing more can be left out


Offline Aenea

  • Member
  • *
  • Posts: 130
Re: how to....create a path on a surface layer?
« Reply #8 on: April 13, 2007, 09:18:07 PM »
problem is....when I make the path white....the grass/rock surface appears in it.....

Offline child@play

  • Member
  • *
  • Posts: 331
  • white and nerdy
    • My Terragen2 Blog
Re: how to....create a path on a surface layer?
« Reply #9 on: April 13, 2007, 09:27:46 PM »
which image map is the path-mask? make sure it's the second one, and, you have to set up your nodes different i think, take a fake stone layer for example, make it child of the surface layer and the image mask has to be the fake stones blending shader. just a wild guess since i'm rendering atm


edit: have a look here, think bigben has been doing the same thing  http://forums.planetside.co.uk/index.php?topic=1285.0
« Last Edit: April 13, 2007, 09:30:11 PM by child@play »
perfection is not when there's nothing more to add, it's reached when nothing more can be left out


Offline Aenea

  • Member
  • *
  • Posts: 130
Re: how to....create a path on a surface layer?
« Reply #10 on: April 13, 2007, 09:33:47 PM »
okay....I attached the tgd without textures and the lighthouse isnīt in it, deleted the obj, so there would be no probs with any objects....

I hope someone can figure out whatīs wrong there....I really donīt have a clue...  ???

Aenea

Offline Aenea

  • Member
  • *
  • Posts: 130
Re: how to....create a path on a surface layer?
« Reply #11 on: April 13, 2007, 09:44:50 PM »
Well....I got my mask working now.

I added the image mask as second image map shader to my surface layer.
So the mask appeared correctly now....but the grass/rock layer doesnīt appear on the white of the mask...hmmmm
jesuuusss....this has to work I know it..... :P

Aenea


Offline bigben

  • Member
  • *
  • Posts: 2129
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: how to....create a path on a surface layer?
« Reply #12 on: April 14, 2007, 01:27:54 AM »
Have a look at http://forums.planetside.co.uk/index.php?topic=864.msg8415#msg8415. The sample file there may help. I haven't downloaded your file 'cos I'm just passing by.  ;)

Offline child@play

  • Member
  • *
  • Posts: 331
  • white and nerdy
    • My Terragen2 Blog
Re: how to....create a path on a surface layer?
« Reply #13 on: April 14, 2007, 02:54:24 AM »
you forgot to put the terrain file in the archive, so i just created a heightfield. is this the look you're after?


perfection is not when there's nothing more to add, it's reached when nothing more can be left out


Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 13097
  • Holy snagging ducks!
Re: how to....create a path on a surface layer?
« Reply #14 on: April 16, 2007, 05:40:30 AM »
Aenea, you're 99% of the way there. All you need to do now is turn off "Fit Blend Shader To This" in your texture Image Map Shader (the one that loads b14galenslater035.jpg) and then in the Image Map Shader that uses the path.jpg simply specify a position and size (on the Projection, location tab). The size should be the size that you want the path/masked area to be *in meters*. The position should of course correspond to where you want it to show up in your scene. Use the 3d preview mouseover coordinate info to help in positioning your mask image.

Post again if you have further problems.

- Oshyan

 

anything