Question about the Node Network

Started by archre, May 24, 2011, 06:03:26 AM

Previous topic - Next topic

dandelO

#15
I would do something like this to create a constant line function that I could then modify down the line network chain(for clarity);

[attachimg=#]

Obviously, this is just a hack and slash method of arriving at an output, typical of me, but if I can understand these things better, then I can make better things from them. :)

Hetzen

#16
Have a look at these examples Martin.

Plug the 3 conditional example outs into the planet atmosphere.

Hetzen

Give me an example of what you want to achieve, and I'll try to define it in blues. With workings to explain.

eg, you want a line to run east to west with a fall off of 10m....

dandelO

#18
It's cool, Jon. I'm not actually trying to achieve anything here. Just putting in my thoughts that I had on the length to scalar node.
I can make a line of any size or direction no problems. I can easily rotate and scale the output of the simple function I posted above.
I was just seeing if my method was actually 'wrong' or not, according to Matt's earlier reply.

Cheers, though. :)

Hetzen

#19
Np. Your example above, creates a vector for the 'length to scaler' to work out from (z,z,z) to (0,0,0). Which is sort of random.

You could define how far in X you want to go with conditional less than 10m = 1 elso 0. You could even use clamps to say, Clamp (0) (10) on the convert X to scaler. You could go further to say Clamp (0) (20), if X > than 10 then inverse modulo(X) 10, to get a fade off of 10m after 10m.

dandelO

#20
In fact, I will have a look at your file, Jon. You've probably got some funky stuff going on here that I'd be interested in.
Cheers, man. :)

*reading your new reply at the same time as my new one. ;)

I'll have a looksie, this is how we all learn new tricks. Far better brains than mine use this software and it's how we all learn new tricks, besides, I'm up to nothing else this good evening, other than drinking red wine! ;) Good stuff, off for a peek at it now...

mogn

#21
See attached picture

It is important to remember that when you do operations like this or scaling,
it is the coordinate system you change, the points in geometri is not change.

mogn

The black parts in your picture are actual negative values. The length operator multiplies z with sqrt(3) and removes negative values.
invert colour, then the makes colour values greater than one negative, creating the l1 meter line you see.

mogn

To get full controll of lines, see attached picture.

Remark that in my constructions I never use conditionals. IMO they obscure the simplicity.

Matt

#24
The main thing, dandelO, is that you could replace the "length to scalar" with "abs scalar". Length to scalar is supposed to operate on a vector, but you are dealing with a scalar. The useful thing that "length to scalar" is doing to your scalar is to turn all negative values into positive, which "abs scalar" will do more quickly. Also, Length to scalar will give you values which are larger by a factor of about 1.73, but that's not really important because you would usually have adjust the result to get whatever scale you want anyway.
Just because milk is white doesn't mean that clouds are made of milk.

FrankB

Great thread!

And thanks Mogn for your contributions!

Regards,
Frank