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
Very useful thing in TG09 - now available here. Thanks for the work and sharing!
Thanks, Richard!! That is WAY handy.
So... when are you going to release the procedural version?
:)
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? ;)
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. :)
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
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 ;)
Great Now the pressures on lol :D
Richard
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
And well within the 48 hours... that must be a good tutorial ;)
Now all we need is one from a boolean geek ;D
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)
Excelent :) very nicely put together
Richard
mogn - this is cool. Thanks.
It's got 0,1 clamps... that's effectively boolean ;)
Very good!
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:
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.
Thanks guys. This is handy work, though I have yet to implement anything with it. Looks very useful, though.
Great work guys, I knew I could rely on the team :D
Its now part of my default set up :)
Richard