Functions: Circles and such

Started by nvseal, January 10, 2008, 07:58:01 PM

Previous topic - Next topic

nvseal

I have an idea that I would like to try that requires circles (not filled), lines, and squares (again, not filled) for surfacing purposes (as fractals). The problem is that I don't know how to generate something like that. To mak sure you understand what I'm looking for, I want to use them as factal for a surface shader so I can add luminosty and fake "cities" on th dark side of planets. Is there anyone who can give me a hand on this one, maybe point me in the right direction?

Harvey Birdman

Setting up a little network to draw the shapes would be simple enough, but I don't understand what you mean by you mean by 'using them as fractals'. I mean, you can do pretty much whatever you want with the output of the numeric network...

old_blaggard

I'm guessing you mean that you want to use them as blendshaders?
http://www.terragen.org - A great Terragen resource with models, contests, galleries, and forums.

nvseal

Sorry, I wan't clear. I mean to use them as the fractals for surface shaders.

Harvey Birdman


nvseal

That's getting close. However, interms of the circles I'm more looking more than circle placed on the planet rather than "latitude" lines, if you get what I mean.

Virex

Well, the trick with a circle is that the distance between the ring and the center is the same eveywhere. So pick a spot for the center, a radius and then use a conditional shader and a get position shader to compare the distance. I'll try to draw up a litle network to make rings once can get to a pc with TG2.

If you want to generate multiple circles procedualy, you'll need to get someone who knows more maths then me though  :-\

Seth


Mr_Lamppost

Are you looking for a circular region defined from an arbitrary origin?

What I am working on (If I ever get out of here and do any work :-) ). Is a function to define arbitrary circular masks. 

I will publish as son as I getbthechance.
Smoke me a kipper I'll be back for breakfast.

Virex

Here's a simple one. It creates a circle with a radius of 1/radius (the node one) and a center defined by the X, Y and Z nodes. You can then use the conditionall shader to either use only the rim, the inside or the outside. Using only the rim might not yield very good results. Instead try defining a ring by using 2 nodes with diferent radiuses and a second conditional shader.