Editing Orulex
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Addon| | {{Addon| | ||
1=http://orbides.1gb.ru| | 1=http://orbides.1gb.ru| | ||
− | 2=Artyom "Artlav" | + | 2=Artyom "Artlav" Litinovich |
}} | }} | ||
[[Image:Oru-080401-1.jpg|200px|thumb|right|Earth in Orulex 1.0]] | [[Image:Oru-080401-1.jpg|200px|thumb|right|Earth in Orulex 1.0]] | ||
− | [[Image:Oru-080401-2.jpg|200px|thumb|right|Brighton Beach | + | [[Image:Oru-080401-2.jpg|200px|thumb|right|Brighton Beach Crafter on the Moon in Orulex 1.0 |
− | + | ]] | |
− | |||
− | '''Orulex''' is a dynamic landscape generator add-on for Orbiter which allows | + | '''Orulex''' is a dynamic landscape generator add-on for Orbiter which allows you to add a global landable mesh to the planets. |
Simply said, it turns flat planets into mountainous planets. | Simply said, it turns flat planets into mountainous planets. | ||
− | |||
− | |||
− | |||
==Basic features (1.0)== | ==Basic features (1.0)== | ||
Line 64: | Line 60: | ||
* Magellan Imaging Radar (Grey) | * Magellan Imaging Radar (Grey) | ||
− | + | ==Generator ideas and Function desciption== | |
− | + | '''Configuration''' | |
− | |||
− | ==Generator ideas and | ||
− | |||
Orulex system configuration are done by World Studio program and config files editing, with options ranging from terrain polygon count to shapes of the worlds. | Orulex system configuration are done by World Studio program and config files editing, with options ranging from terrain polygon count to shapes of the worlds. | ||
2 PDF's with full description of world studio and file configuration can be found in the release package. | 2 PDF's with full description of world studio and file configuration can be found in the release package. | ||
+ | '''Planet functions''' (Function string in config\terrain\planet_name.cfg) | ||
− | + | '''Basic ideas''' | |
− | |||
− | |||
− | |||
− | |||
* Planet functions is written in postfix notation. | * Planet functions is written in postfix notation. | ||
Line 86: | Line 76: | ||
* Functions specified the same way - f(x,y,z+w) is x y z w + f. | * Functions specified the same way - f(x,y,z+w) is x y z w + f. | ||
− | + | '''Terrain function''' | |
The terrain is represented by a 3 to 1 function with arguments being the position on the planet and output being the altitude at this position. The concept is similar to the plotting of 1D functions, like sine and cosine - the X axis represents the position, and Y axis represents the altitude: | The terrain is represented by a 3 to 1 function with arguments being the position on the planet and output being the altitude at this position. The concept is similar to the plotting of 1D functions, like sine and cosine - the X axis represents the position, and Y axis represents the altitude: | ||
Line 92: | Line 82: | ||
[[Image:Functions in Orulex 1.jpg|800px|thumb|center|Imagine the same thing in 4D, and that's how it is done in Orulex.]] | [[Image:Functions in Orulex 1.jpg|800px|thumb|center|Imagine the same thing in 4D, and that's how it is done in Orulex.]] | ||
− | + | '''Terrain Functions:''' | |
+ | |||
+ | [[Image:Terrain Functions.jpg|200px|thumb|left|'''perlin'''(xd,yd,zd,band,scale)]] | ||
− | + | ||
− | + | ||
− | + | Classic perlin noise ground function. | |
− | + | ||
− | + | '''xd,yd,zd''' is distortion values for x,y,and z coordinates respectively. | |
− | + | ||
+ | '''band''' is the amount of noise bands to be used - the more of them the | ||
+ | more detailed terrain is, but slower. | ||
+ | |||
+ | '''scale''' is the horizontal scale of the thing. It is roughly equivalent to the | ||
+ | size of the pattern shown in viewer on the actuall planet, i.e. if scale is | ||
+ | 10000 then the pattern will be spread across 10 kilometers. | ||
Output is in -1..1 range. | Output is in -1..1 range. | ||
− | |||
− | |||
− | |||
− | + | ||
− | + | ||
− | + | [[Image:Terrain Functions 2.jpg|200px|thumb|left|'''ridge'''(xd,yd,zd,band,scale)]] | |
− | + | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Ridged perlin noise ground function. Same parameters as above. | ||
Output is in -1..1 range. | Output is in -1..1 range. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[Image:Terrain Functions 3.jpg|200px|thumb|left|'''sealevel'''(f,min)]] | |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Same as min2('''min,f'''). Returns '''f''' if '''f>=min''' and '''min''' if '''f<min'''. | ||
+ | |||
+ | Useful to truncate below the sphere part of the terrain function into | ||
+ | flat valleys. | ||
+ | |||
+ | Almost always should be removed if planet have ocean. | ||
+ | |||
+ | <-(example with perlin) | ||
+ | |||
+ | If your planet have an ocean, make sure thet the underwater part | ||
+ | of the function is not truncated! | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | [[Image:Terrain Functions 4.jpg|200px|thumb|left|'''sintf'''(xd,yd,zd,scale)]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Sinusoidal terrain. | ||
+ | |||
+ | '''xd,yd,zd''' is distortion values for x,y,and z coordinates respectively. | ||
+ | |||
+ | '''scale''' is the horizontal scale of the thing. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | [[Image:Terrain Functions 5.jpg|200px|thumb|left|'''costf'''(xd,yd,zd,scale)]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Cosinusoidal terrain. | ||
+ | |||
+ | '''xd,yd,zd''' is distortion values for x,y,and z coordinates respectively. | ||
+ | |||
+ | '''scale''' is the horizontal scale of the thing. | ||
+ | |||
+ | |||
+ | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | * '''curv'''(n,f,x1,y1,x2,y2,...,x(n-1)/2,y(n-1)/2) - Input/Output curve for f by points of xi,yi, lagrange interpolated. It is a very powerfull tool, allowing to map the inputs to according to specific curve to the output, changing gradients and similar things. The I/O curve is too big a topic for this manual. Example: Callisto | |
− | |||
− | + | Other operators/functions: | |
− | + | * '''ax,ay,az''' - world coordinates. | |
+ | * '''+, -, --, *, /, sin, cos, tan, ln, pow, round, trunc, sqr, sqrt max2, max3, min2, min3''' - arithmetics and basic math. | ||
− | + | * '''trim'''(f,min,max) - trims f into min<f<max. | |
− | |||
− | |||
− | |||
==See Also== | ==See Also== | ||
− | [[ | + | [[World Studio]] |
+ | |||
+ | ==Links== | ||
+ | '''Main''' | ||
− | |||
[http://orbides.1gb.ru/orulex.php Orulex's Homepage by Artlav] | [http://orbides.1gb.ru/orulex.php Orulex's Homepage by Artlav] | ||
− | [http://www. | + | [http://www.orbithangar.com/searchid.php?ID=2686 Download at OrbiterHangar] |
− | |||
− | |||
− | |||
− | |||
− | = | + | [http://www.orbiter-forum.com/showthread.php?t=999 Orbiter forum thread] |
− | ''' | + | '''Additionals''' |
[http://orbides.1gb.ru/orbf/MLVS-WIP-080327.zip WIP MeshLand 2, Collision Detection support for Orulex, Unstable] | [http://orbides.1gb.ru/orbf/MLVS-WIP-080327.zip WIP MeshLand 2, Collision Detection support for Orulex, Unstable] | ||
Line 196: | Line 240: | ||
[http://orbides.1gb.ru/orbf/oru-flight-080321-xvid.avi China flying in Gregburch's Swift1 (xVid, 31 MB)] | [http://orbides.1gb.ru/orbf/oru-flight-080321-xvid.avi China flying in Gregburch's Swift1 (xVid, 31 MB)] | ||
− | |||
[[Category:Add-ons]] | [[Category:Add-ons]] | ||
+ | [[Category:Celestial body add-ons]] |