Planetside Software Forums

General => File Sharing => Topic started by: j meyer on March 16, 2014, 12:39:33 pm

Title: Paved Road
Post by: j meyer on March 16, 2014, 12:39:33 pm
Here are some example files for two types of procedural pavement.
The first one is the paved road as it appears in the other thread
http://www.planetside.co.uk/forums/index.php/topic,17933.0.html

[attachimg=1]

I have learned the way to get the offset from a file gomS (i think) posted
some years ago.(which is beyond my math horizon btw)

The second is an easier version with no offset

[attachimg=2]

Both should be warpable as long as you keep it moderate.Otherwise the
distortion of the pattern would become too extreme to be believeable.
And the roads edges would loose their parallelism too much.
To avoid that you could use a procedural road mask as shown by hetzen
in his parallel warp example to be found somewhere else on this forum.
I don't remember where though,sorry.

[attachimg=3]

General remarks
You will notice that I have used a transform shader to scale the pattern.
This could be done with the constant scalars,but I found it more convenient
for my purposes when I started to build the node network and just left it in
there.
Now the segments are squarish,but you can easily make them rectangular.
Play with the values.
I find it helpful to right click on a node and then choose Open Preview in
New Window to see and hopefuly understand what it does.
So,for example, right click the displacement shader,open the preview,zoom
in if required,and then change a value of any of the blue nodes residing
before the displ shader and you'll see how the pattern is affected.

The rather crude surfacing of the surrounding was just to have a bit more
going on than the default gray and I left it in there to give a simple example
of how the pavement pattern can be integrated.And it's just one of many
ways to hook things together.

Have fun with it!


Title: Re: Paved Road
Post by: archonforest on March 16, 2014, 12:48:56 pm
Ohh...this is very nice from u :D
Thx a lot for sharing these files.
Title: Re: Paved Road
Post by: Kadri on March 16, 2014, 01:46:11 pm

Thanks for sharing :)
Title: Re: Paved Road
Post by: TheBadger on March 16, 2014, 05:22:49 pm
Cool! Thank you.
Title: Re: Paved Road
Post by: gregtee on March 17, 2014, 02:28:49 am
Yes thanks for sharing.  I'll enjoy looking at this setup.
Title: Re: Paved Road
Post by: N-drju on March 17, 2014, 06:01:22 am
That's some nice road show! :)
Title: Re: Paved Road
Post by: Hannes on March 17, 2014, 06:12:58 am
Great, thank you! When I first saw your image I thought this was an image map.
Title: Re: Paved Road
Post by: russe166 on March 17, 2014, 10:37:43 am
Very interesting. Thanks for sharing ...  :D
Title: Re: Paved Road
Post by: j meyer on March 17, 2014, 01:01:56 pm
My pleasure,glad you like it! :)
Title: Re: Paved Road
Post by: bobbystahr on March 18, 2014, 11:01:41 pm
Brilliant...I should definitely learn from stuff from these tgd's...many thanks............
Title: Re: Paved Road
Post by: choronr on March 22, 2014, 02:31:14 am
Thank you Jochem, this is special. My mind's eye sees some good creations ahead.
Title: Re: Paved Road
Post by: mhaze on March 22, 2014, 09:43:44 am
Thanks - interesting and useful.