no random function!!??

Started by ricky31284, February 03, 2010, 10:38:30 PM

Previous topic - Next topic

ricky31284

terragon is pretty cool dont get me wrong,but what making me angry is that there is no random function.

I mean there are so many functions but no random whats going on here.

am i missing it if anybody knows where it is can you tell me where or at least if i can fake it.

by the way im not talking about the random seed button but an actual random function in the function menu.

thank you.

old_blaggard

If you need a constant random number, just go on the internet and find a random number generator.

If you want a random number changing over time, try using the "Noise" functions in the function menu. This creates pseudo-random and somewhat patterned numbers between -1 and 1 based on where you are in 3D space.

If you're looking for a truly random point for each point in space... care to share why? There's nothing that I can really think of doing with a uniform field of random numbers in landscape generation.
http://www.terragen.org - A great Terragen resource with models, contests, galleries, and forums.

mogn

You can base a ramdom generator on the fact that the fractional part of feed*PI is unic for differnt values of integer feed.

mogn

Another base is the fractional part of length(integer scalar), both is based on the fact the fractional part of multiplies of irrational numbers are all different.
Length(N) == sqrt(3)*N

inkydigit

is this for a seed?
you can use a constant scalar as seed input and type in a random number??

ricky31284

Maybe i should say why i need it. Im attempting to create a landscape of the week type project similar to that created with pov-ray.  I need a random seed for many different settings so when I render an animation
I can simply look at each frame decide what ones I like and go on from there.

thanks for the input i hope i can learn to use your advice (im pretty new at this.)

Tangled-Universe

So actually you ARE looking for something similar to the random seed button.
I guess you're looking for something similar found in WM2, where you can press "randomize world" which changes all the seeds in the nodes.
TG does not have something like that on the shelf and I don't have an idea how you could do this....well maybe you could use a random generator and generate lists of random numbers and import one list for every shader as a .chan ifle into the animation-parameter for the seed. That's the only thing I could come up with.

Cheers,
Martin

jaf

I believe you could also work directly with the tgd xml file.  I've written a small program to parse this file to remove/replace camera data, tgo's, etc. and it seems to work.

It isn't interactive (for example, I can't change an objects position in my utility and see it change in TG2; TG2 has to reload the tgd file.)  But I could see a 1) create scene, 2) run random script on it, 3) reload scene and render.

Actually, that might be a pretty interesting project as I think about it.
(04Dec20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 457.51 (04Dec20), Win 10 Pro x64, Terragen Pro 4.5.43 Frontier, BenchMark 0:10:02

N810

You might use Terragen clasics semi random terrain to find some you like and then import the .ter in to Terragen 2
Hmmm... wonder what this button does....

Seth

or you can select "set animation key" on each powerfractal seed on image 1 and then go on image 100 and enter any other random seed on those powerfractals and set the animation key.
if you render the animation now, you should have different procedural terrain in each frame as the seed changes from the seed of the first image to the seed of the last one.

bobbystahr

Quote from: Seth on February 05, 2010, 11:46:34 AM
or you can select "set animation key" on each powerfractal seed on image 1 and then go on image 100 and enter any other random seed on those powerfractals and set the animation key.
if you render the animation now, you should have different procedural terrain in each frame as the seed changes from the seed of the first image to the seed of the last one.


Ooooh..that sounds cool...now I really want the Full version.. ...
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist