Planetside Software Forums

General => File Sharing => Archive (Broken Links) => Topic started by: dandelO on August 19, 2010, 10:29:28 AM

Title: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: dandelO on August 19, 2010, 10:29:28 AM
I'm going to be away for some time after today so, here's a farewell gift. :)

You can lay this layer straight onto the ground to get complete coverage of the surface shown here:
(http://forums.planetside.co.uk/index.php?action=dlattach;topic=10555.0;attach=26198;image)

It contains 'wood 1', from the first post here (http://forums.planetside.co.uk/index.php?topic=10555.msg108540#msg108540).
I have lots more wood shaders made but 'wood 1' is all I'm posting, for now(wood 2 here is just a different variation of wood 1).

Here's the simplest way to connect the flooring to the main scene's node network(the 'base colours' node isn't required):

[attachimg=#]

The actual wood shaders(in their own groups inside) are nothing special but, when used with my 'planks' function there are many possibilities for editing pattern, combinations etc.
For the wood shaders, the direction the grain will run on is decided by one(or more) of the 'grain XYZ' nodes. Both wood groups defaults are 'X'.
The 'grain X,Y or Z' nodes can also be simply applied to anything for a plain, bare wood surface, if you wanted that instead.
Here, though, the 'wood' groups are stashed inside the main shader because, if you plan on playing with my cracks, that's where you'll need them, to edit them easily.

The cracks are a collection of functions that create masks for displacement, colour distribution and reflectivity:

[attachimg=#]

Surface layers W1 and W2 can feed either of the add/mix nodes beneath them or, you can bypass the 'add colour'/'mix colour' and 'combined colour' nodes completely, if you want to only have 1 flavour of wood on your final surface.
Default settings are for 'wood 2' to be added to wood 1 alternately.

Someone might be able to simplify the internal network a little more, it makes sense to me but, I'm not always the sharpest box in the tool! :D

Have at it! : [attachimg=#]

Cheers and, enjoy! :)

* Edit: Replaced clipfile. I forgot the reflectivity masking.

** Edit: Mega update downstairs... Old files removed.
Title: Re: Wood Flooring Shader - Part 1
Post by: Zairyn Arsyn on August 19, 2010, 10:43:03 AM
looks pretty good martin, thanks for sharing.

Title: Re: Wood Flooring Shader - Part 1
Post by: Henry Blewer on August 19, 2010, 10:50:53 AM
Bookmarked this. I am not sure where to use this, yet. But it will be handy for objects.
Title: Re: Wood Flooring Shader - Part 1
Post by: Ogre on August 19, 2010, 02:27:33 PM
Dandelo,

Thanks. You also provided the insight that I needed to fix my Brick Shader.  One thing I would look at is the displacement. If you want to have it work with objects you should reverse what you are doing and displace the board up. If you displace the edges down you may get the internal shadowing issue on objects. At least I was having the issue withthe bricks.

A quick question. Why do you use the component mix vector to mix the masks instead of an add color?  (Vectors in TG2 elude me for some reason)
Title: Re: Wood Flooring Shader - Part 1
Post by: A4size on August 20, 2010, 01:15:57 AM
Thank you for sharing
Title: Re: Wood Flooring Shader - Part 1
Post by: Dune on August 20, 2010, 02:47:59 AM
Thanks a lot Dandel0, you sure are a hell of a provider of goodies! I hope you won't go away for too long.

---Dune
Title: Re: Wood Flooring Shader - Part 1
Post by: dandelO on August 29, 2010, 04:02:04 PM
Cheers, folks! :)
Title: Re: Wood Flooring Shader - Part 1
Post by: Gannaingh on August 30, 2010, 01:28:51 AM
This is fabulous work! Thank you for all the work that you have contributed!
Title: Re: MEGA Wood Flooring Shader - by dandelO
Post by: dandelO on September 23, 2010, 06:29:56 PM
So, after a little time away from this project and some newly-infused inspiration and perseverance recently, I've come up with this multi-purpose shader. This is quite a biggie for me and I'm very happy with the way things have worked out with this. It's a very logical and free flowing network, you won't have any trouble navigating it or, editing outputs. I hope! :D

Never fear, though! I have written a very concise usage note on every function that requires user input to create multiple combination outputs easily.

It's a highly customizable wood flooring shader, with near endless possibilities. I'm attaching a few examples, by no means are these all of the variations that could be achieved with this shader, just a few tasters, I'll let you folks work out your own combinations from here on. ;)

I'll take a couple of posts to attach the previews then I'll be back with the works, I think you'll like this one, folks...

Demo 1:
[attachimg=#]

Demo 2:
[attachimg=#]

Demo 3:
[attachimg=#]
Title: Re: Wood Flooring Shader - Part 1
Post by: dandelO on September 23, 2010, 06:30:55 PM
Demo 4:
[attachimg=#]

Demo 5:
[attachimg=#]

Your Controls:
[attachimg=#]
Title: Re: Wood Flooring Shader - Part 1
Post by: dandelO on September 23, 2010, 06:32:10 PM
EDIT: Compressed images to fit into 2 posts, rather than 3.

Download file below this post. vv
Title: Re: Mega Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: dandelO on September 23, 2010, 07:24:58 PM
And here is the fully procedural Mega Wood Flooring Shader and also a .tgd which shows the general method of connecting it at default settings. The shader is a single layer that will simply slot into any network and plug into any surface.
Example images, as above, and a detailed usage note are included in the pack.
Compressed with WinRAR.

Cheers! :)
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: FrankB on September 24, 2010, 02:26:33 PM
this is so freaking amazing, Martin! Very good, excellent stuff. Are you going to put this up on the community store, too, please?

Thank you,
Frank
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: TheBlackHole on September 24, 2010, 03:20:15 PM
Very nice. My only problem with it is that the wood needs some grainy detail. Like this:
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: dandelO on September 24, 2010, 03:33:14 PM
Sorry, my wood looks better than that photo! ;)

Seriously, though, that's where you come into it, Landon! Pop some more colour detail inside the wood nodes, they're all quite basic shaders. Adding some warp factor after the 'wood surface A/B' nodes could also be an idea. And giving the surfaces some tiny displacements, between 'planks' and the 'final surface' displacement function is also a good idea. Like I said, I'll let you guys figure it out from here.
You shouldn't really grumble, it's free! ;) :D

Frank: Will do, after dinner... EDIT: Does the CS uploader accept animated .gif preview images?

Thanks, guys! :)
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: FrankB on September 24, 2010, 04:03:59 PM
Quote from: dandelO on September 24, 2010, 03:33:14 PM
Frank: Will do, after dinner... EDIT: Does the CS uploader accept animated .gif preview images?


Good news!
I have never tried, but yes, I think it would allow for this.
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: airflamesred on September 24, 2010, 04:09:20 PM
Great work dandelO - Even I can make sense of that node network
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: dandelO on September 24, 2010, 04:39:01 PM
Done.
NWDA link (http://store.nwdanet.com/component/virtuemart/6-terragen-2-presets/20-surfaces/80-mega-wood-flooring-shader.html)
Moving .gif works fine for full sized previews.

Cheers, AFR! :)
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: nethskie on September 27, 2010, 11:29:49 PM
an idea just popped on me to use this wood shader to one of my future deviation. can you help me increase the size of the woods intended for 1km? i was trying to analyze the code but i'm not successful in finding the scaling of the bricks
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: dandelO on September 28, 2010, 12:26:24 PM
Just ignore the plank functions, Nethskie. ;)

This couldn't be simpler, really. Pop it into the 'shader' port of a 'transform shader'. Now you can rescale *almost any shader.

This shows the wood multiplied to 1000x, the camera is 1000m up(see preview 'vheight');
[attachimg=#]

You don't need to have the same values in each scale field, scale away! :)

*** Edit: This is probably something I should have included with the file, it's an easy, one-step scale/move function. I will do in future uploads, where applicable. It's a good shader to get used to because you don't need to fiddle with loads of sets of numbers inside. Any input shader can be easily divided or multiplied in size and also moved around in the world space.
Title: Re: *Mega* Wood Flooring Shader - by dandelO - UPDATED 24/10/10
Post by: nethskie on October 02, 2010, 02:51:32 AM
ok thanks i'll try to use this in good use :)