Planetside Software Forums

General => File Sharing => General => Topic started by: cyphyr on September 19, 2007, 11:15:02 AM

Title: 1000/100 meter Grid Overlay
Post by: cyphyr on September 19, 2007, 11:15:02 AM
Heres one for you. I've always had problems trying to visualize texture values and scales. So I created a simple mask that can be overlayed in the y axis and provides a basic acurate scale reference. The yellow squares are 1000m and the red squares are 100m. Of course you can always re-scale this your self by just changing the value of the image size in the image map shaders. To use simply extract the contents of the rar file to your working directory and plug the your planets input to the GRID OUTPUT and your last shader into the input of the GRID OUTPUT node. The attached clip file keeps everything out of the way but you can of course copy and paste the nodes in to your shader group. Hope this is helpful and please improve on it as much as possible. (I'm sure a function version would be possible which may have more advanced uses...)
Thanks
Richard
Title: Re: 1000/100 meter Grid Overlay
Post by: Volker Harun on September 19, 2007, 11:40:03 AM
Very useful thing in TG09 - now available here. Thanks for the work and sharing!
Title: Re: 1000/100 meter Grid Overlay
Post by: Harvey Birdman on September 19, 2007, 01:00:35 PM
Thanks, Richard!! That is WAY handy.

So... when are you going to release the procedural version?

:)
Title: Re: 1000/100 meter Grid Overlay
Post by: bigben on September 19, 2007, 07:58:29 PM
A good idea. I only got the group when I inserted the clip even though there was other code in it. Haven't had a close look why though.

I simplified this a bit to use a single BW image as a surface layer mask. This way you don't need to warry about transparency. The grids are semi-transparent by dropping the coverage below 0.5

You can add finer grids to heart's content for working at different detail levels by simply duplicating a surface layer/image map pair and changing the scale of the image map. The final node is not really required, I just added it as a connection point. Whose up for a functional version?  ;)
Title: Re: 1000/100 meter Grid Overlay
Post by: Harvey Birdman on September 19, 2007, 08:31:44 PM
Cool!

Quote from: bigben on September 19, 2007, 07:58:29 PM
The final node is not really required, I just added it as a connection point.

What's the matter? Getting defensive?

;)   ;D


Quote from: bigben on September 19, 2007, 07:58:29 PM
Whose up for a functional version?

It was cyphyr's idea. Let's make him do it.    :)
Title: Re: 1000/100 meter Grid Overlay
Post by: cyphyr on September 19, 2007, 08:59:02 PM
Half the reason I posted it here was to get it improved and hey guess what, it already has been :D
old_blaggard has just posted a tutorial on functions and once I've got my head around that maybe theres a way forward there. I don't want to add anything to the computer overhead so the simpler the better.
Richard
Title: Re: 1000/100 meter Grid Overlay
Post by: bigben on September 19, 2007, 09:31:51 PM
Quote from: Harvey Birdman on September 19, 2007, 08:31:44 PM
Cool!

Quote from: bigben on September 19, 2007, 07:58:29 PM
The final node is not really required, I just added it as a connection point.

What's the matter? Getting defensive?

;)   ;D

Not defensive, merely stating a fact  :P I use nodes like this in development to reduce the amount of reconnections required to preview a result. I leave them in if they provide a clearer connection point to reduce the amount of explaining needed.

Quote from: Harvey Birdman on September 19, 2007, 08:31:44 PM

Quote from: bigben on September 19, 2007, 07:58:29 PM
Whose up for a functional version?

It was cyphyr's idea. Let's make him do it.    :)

OK, we'll give him 48 hours  ;)
Title: Re: 1000/100 meter Grid Overlay
Post by: cyphyr on September 19, 2007, 09:44:54 PM
Great Now the pressures on lol :D

Richard
Title: Re: 1000/100 meter Grid Overlay
Post by: Volker Harun on September 20, 2007, 04:00:34 AM
Richard asked me to upload his work  ;D

It is not very accurate as a Sin is used - and scaling a Sinus to 100m ... hmmmmm.

Anyway, attached
Title: Re: 1000/100 meter Grid Overlay
Post by: bigben on September 20, 2007, 07:32:29 PM
And well within the 48 hours... that must be a good tutorial   ;)

Now all we need is one from a boolean geek   ;D
Title: Re: 1000/100 meter Grid Overlay
Post by: mogn on September 25, 2007, 10:16:23 AM
Another version (no magic numbers and trigometric functions)

The last node is connected to the Fratal breakup and the colour layer (colour=yellow,fractal breakup=1,coverage=0.5)
Title: Re: 1000/100 meter Grid Overlay
Post by: cyphyr on September 25, 2007, 03:03:59 PM
Excelent :) very nicely put together
Richard
Title: Re: 1000/100 meter Grid Overlay
Post by: rcallicotte on September 25, 2007, 03:55:07 PM
mogn - this is cool.  Thanks.
Title: Re: 1000/100 meter Grid Overlay
Post by: bigben on September 25, 2007, 08:33:30 PM
It's got 0,1 clamps... that's effectively boolean  ;)
Title: Re: 1000/100 meter Grid Overlay
Post by: Volker Harun on September 26, 2007, 12:59:59 AM
Very good!
Title: Re: 1000/100 meter Grid Overlay
Post by: mogn on September 26, 2007, 01:25:41 AM
Thanks  ;D
I appologize for the bugs:

bug or feature: The B&W areas are connected by a 1 meter ramp.
bug:               The linewidth are the double of the specified.
serious bug:     The algorithm can not be used for small grid sizes

:'( :'( :'(

I think I have an solution, I will be back

Ok, I think this version is correct although a bit more complicated:
Title: Re: 1000/100 meter Grid Overlay
Post by: bigben on September 26, 2007, 07:34:17 PM
Quote from: mogn on September 26, 2007, 01:25:41 AM
serious bug:     The algorithm can not be used for small grid sizes

Now it can...  ;)  I changed the line width to a proportion of the grid size and then multiplied it by the grid size. That leaves just a single variable to change and you can scale it to your whatever you want.
Title: Re: 1000/100 meter Grid Overlay
Post by: rcallicotte on September 27, 2007, 08:38:59 AM
Thanks guys.  This is handy work, though I have yet to implement anything with it.  Looks very useful, though.
Title: Re: 1000/100 meter Grid Overlay
Post by: cyphyr on September 27, 2007, 10:33:41 AM
Great work guys, I knew I could rely on the team :D
Its now part of my default set up :)
Richard