Results 1 to 9 of 9

Thread: Fractal Terrains globe projection.

  1. #1
    Guild Novice Jice's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    23

    Default Fractal Terrains globe projection.

    Hi all,

    I recently needed this kind of projection for my world in order to build a custom globe.
    globe1.gif
    I discovered that we can create custom projections for fractal terrains so I did one for my need.
    globe.png
    Now I am sharing this with you in case anyone need it, enjoy

    Past the following at the end of the file Projection.txt in the folder **\ProFantasy\FT3

    You will now have 3 new projections: one for the north pole, one for the south pole and one with both.

    //---------------------------------------------------------------------------

    Projection 69, "Globe Pôle Nord"

    Extent -3.14159265, 1.57079633, 3.14159265, -1.57079633
    Scale 1
    Description "Projection pour globe pole nord."

    Segment "Sinusoidal", 0, -150, 0, 0, 1, 0, 0
    Rotate 0
    Offset 0, -0.5
    Effective -165, 90, -135, 0
    EndSegment

    Segment "Sinusoidal", 0, -120, 0, 0, 1, 0, 0
    Rotate 30
    Offset 0.25, -0.43301270189221932338186158537647
    Effective -135, 90, -105, 0
    EndSegment

    Segment "Sinusoidal", 0, -90, 0, 0, 1, 0, 0
    Rotate 60
    Offset 0.43301270189221932338186158537647, -0.25
    Effective -105, 90, -75, 0
    EndSegment

    Segment "Sinusoidal", 0, -60, 0, 0, 1, 0, 0
    Rotate 90
    Offset 0.5, 0
    Effective -75, 90, -45, 0
    EndSegment

    Segment "Sinusoidal", 0, -30, 0, 0, 1, 0, 0
    Rotate 120
    Offset 0.43301270189221932338186158537647, 0.25
    Effective -45, 90, -15, 0
    EndSegment

    Segment "Sinusoidal", 0, 0, 0, 0, 1, 0, 0
    Rotate 150
    Offset 0.25, 0.43301270189221932338186158537647
    Effective -15, 90, 15, 0
    EndSegment

    Segment "Sinusoidal", 0, 30, 0, 0, 1, 0, 0
    Rotate 180
    Offset 0, 0.5
    Effective 15, 90, 45, 0
    EndSegment

    Segment "Sinusoidal", 0, 60, 0, 0, 1, 0, 0
    Rotate 210
    Offset -0.25, 0.43301270189221932338186158537647
    Effective 45, 90, 75, 0
    EndSegment

    Segment "Sinusoidal", 0, 90, 0, 0, 1, 0, 0
    Rotate 240
    Offset -0.43301270189221932338186158537647, 0.25
    Effective 75, 90, 105, 0
    EndSegment

    Segment "Sinusoidal", 0, 120, 0, 0, 1, 0, 0
    Rotate 270
    Offset -0.5, 0
    Effective 105, 90, 135, 0
    EndSegment

    Segment "Sinusoidal", 0, 150, 0, 0, 1, 0, 0
    Rotate 300
    Offset -0.43301270189221932338186158537647, -0.25
    Effective 135, 90, 165, 0
    EndSegment

    Segment "Sinusoidal", 0, 180, 0, 0, 1, 0, 0
    Rotate 330
    Offset -0.25, -0.43301270189221932338186158537647
    Effective 165, 90, 195, 0
    EndSegment

    Segment "Sinusoidal", 0, -180, 0, 0, 1, 0, 0
    Rotate -30
    Offset -0.25, -0.43301270189221932338186158537647
    Effective -195, 90, -165, 0
    EndSegment

    EndProjection

    //---------------------------------------------------------------------------

    Projection 70, "Globe Pôle Sud"

    Extent -3.14159265, 1.57079633, 3.14159265, -1.57079633
    Scale 1
    Description "Projection pour globe pole sud."

    Segment "Sinusoidal", 0, -150, 0, 0, 1, 0, 0
    Rotate 0
    Offset 0, 0.5
    Effective -165, 0, -135, -90
    EndSegment

    Segment "Sinusoidal", 0, -120, 0, 0, 1, 0, 0
    Rotate -30
    Offset 0.25, 0.43301270189221932338186158537647
    Effective -135, 0, -105, -90
    EndSegment

    Segment "Sinusoidal", 0, -90, 0, 0, 1, 0, 0
    Rotate -60
    Offset 0.43301270189221932338186158537647, 0.25
    Effective -105, 0, -75, -90
    EndSegment

    Segment "Sinusoidal", 0, -60, 0, 0, 1, 0, 0
    Rotate -90
    Offset 0.5, 0
    Effective -75, 0, -45, -90
    EndSegment

    Segment "Sinusoidal", 0, -30, 0, 0, 1, 0, 0
    Rotate -120
    Offset 0.43301270189221932338186158537647, -0.25
    Effective -45, 0, -15, -90
    EndSegment

    Segment "Sinusoidal", 0, 0, 0, 0, 1, 0, 0
    Rotate -150
    Offset 0.25, -0.43301270189221932338186158537647
    Effective -15, 0, 15, -90
    EndSegment

    Segment "Sinusoidal", 0, 30, 0, 0, 1, 0, 0
    Rotate -180
    Offset 0, -0.5
    Effective 15, 0, 45, -90
    EndSegment

    Segment "Sinusoidal", 0, 60, 0, 0, 1, 0, 0
    Rotate -210
    Offset -0.25, -0.43301270189221932338186158537647
    Effective 45, 0, 75, -90
    EndSegment

    Segment "Sinusoidal", 0, 90, 0, 0, 1, 0, 0
    Rotate -240
    Offset -0.43301270189221932338186158537647, -0.25
    Effective 75, 0, 105, -90
    EndSegment

    Segment "Sinusoidal", 0, 120, 0, 0, 1, 0, 0
    Rotate -270
    Offset -0.5, 0
    Effective 105, 0, 135, -90
    EndSegment

    Segment "Sinusoidal", 0, 150, 0, 0, 1, 0, 0
    Rotate -300
    Offset -0.43301270189221932338186158537647, 0.25
    Effective 135, 0, 165, -90
    EndSegment

    Segment "Sinusoidal", 0, 180, 0, 0, 1, 0, 0
    Rotate -330
    Offset -0.25, 0.43301270189221932338186158537647
    Effective 165, 0, 195, -90
    EndSegment

    Segment "Sinusoidal", 0, -180, 0, 0, 1, 0, 0
    Rotate 30
    Offset -0.25, 0.43301270189221932338186158537647
    Effective -195, 0, -165, -90
    EndSegment

    EndProjection

    //---------------------------------------------------------------------------

    Projection 71, "Globe Bipolaire"

    Extent -3.14159265, 1.57079633, 3.14159265, -1.57079633
    Scale 1
    Description "Projection pour globe bipolaire."

    Segment "Sinusoidal", 0, -150, 0, 0, 1, 0, 0
    Rotate 0
    Offset 0-0.51, -0.5
    Effective -165, 90, -135, 0
    EndSegment

    Segment "Sinusoidal", 0, -120, 0, 0, 1, 0, 0
    Rotate 30
    Offset 0.25-0.51, -0.43301270189221932338186158537647
    Effective -135, 90, -105, 0
    EndSegment

    Segment "Sinusoidal", 0, -90, 0, 0, 1, 0, 0
    Rotate 60
    Offset 0.43301270189221932338186158537647-0.51, -0.25
    Effective -105, 90, -75, 0
    EndSegment

    Segment "Sinusoidal", 0, -60, 0, 0, 1, 0, 0
    Rotate 90
    Offset 0.5-0.51, 0
    Effective -75, 90, -45, 0
    EndSegment

    Segment "Sinusoidal", 0, -30, 0, 0, 1, 0, 0
    Rotate 120
    Offset 0.43301270189221932338186158537647-0.51, 0.25
    Effective -45, 90, -15, 0
    EndSegment

    Segment "Sinusoidal", 0, 0, 0, 0, 1, 0, 0
    Rotate 150
    Offset 0.25-0.51, 0.43301270189221932338186158537647
    Effective -15, 90, 15, 0
    EndSegment

    Segment "Sinusoidal", 0, 30, 0, 0, 1, 0, 0
    Rotate 180
    Offset 0-0.51, 0.5
    Effective 15, 90, 45, 0
    EndSegment

    Segment "Sinusoidal", 0, 60, 0, 0, 1, 0, 0
    Rotate 210
    Offset -0.25-0.51, 0.43301270189221932338186158537647
    Effective 45, 90, 75, 0
    EndSegment

    Segment "Sinusoidal", 0, 90, 0, 0, 1, 0, 0
    Rotate 240
    Offset -0.43301270189221932338186158537647-0.51, 0.25
    Effective 75, 90, 105, 0
    EndSegment

    Segment "Sinusoidal", 0, 120, 0, 0, 1, 0, 0
    Rotate 270
    Offset -0.5-0.51, 0
    Effective 105, 90, 135, 0
    EndSegment

    Segment "Sinusoidal", 0, 150, 0, 0, 1, 0, 0
    Rotate 300
    Offset -0.43301270189221932338186158537647-0.51, -0.25
    Effective 135, 90, 165, 0
    EndSegment

    Segment "Sinusoidal", 0, 180, 0, 0, 1, 0, 0
    Rotate 330
    Offset -0.25-0.51, -0.43301270189221932338186158537647
    Effective 165, 90, 195, 0
    EndSegment

    Segment "Sinusoidal", 0, -180, 0, 0, 1, 0, 0
    Rotate -30
    Offset -0.25-0.51, -0.43301270189221932338186158537647
    Effective -195, 90, -165, 0
    EndSegment

    //

    Segment "Sinusoidal", 0, -150, 0, 0, 1, 0, 0
    Rotate 0
    Offset 0+0.51, 0.5
    Effective -165, 0, -135, -90
    EndSegment

    Segment "Sinusoidal", 0, -120, 0, 0, 1, 0, 0
    Rotate -30
    Offset 0.25+0.51, 0.43301270189221932338186158537647
    Effective -135, 0, -105, -90
    EndSegment

    Segment "Sinusoidal", 0, -90, 0, 0, 1, 0, 0
    Rotate -60
    Offset 0.43301270189221932338186158537647+0.51, 0.25
    Effective -105, 0, -75, -90
    EndSegment

    Segment "Sinusoidal", 0, -60, 0, 0, 1, 0, 0
    Rotate -90
    Offset 0.5+0.51, 0
    Effective -75, 0, -45, -90
    EndSegment

    Segment "Sinusoidal", 0, -30, 0, 0, 1, 0, 0
    Rotate -120
    Offset 0.43301270189221932338186158537647+0.51, -0.25
    Effective -45, 0, -15, -90
    EndSegment

    Segment "Sinusoidal", 0, 0, 0, 0, 1, 0, 0
    Rotate -150
    Offset 0.25+0.51, -0.43301270189221932338186158537647
    Effective -15, 0, 15, -90
    EndSegment

    Segment "Sinusoidal", 0, 30, 0, 0, 1, 0, 0
    Rotate -180
    Offset 0+0.51, -0.5
    Effective 15, 0, 45, -90
    EndSegment

    Segment "Sinusoidal", 0, 60, 0, 0, 1, 0, 0
    Rotate -210
    Offset -0.25+0.51, -0.43301270189221932338186158537647
    Effective 45, 0, 75, -90
    EndSegment

    Segment "Sinusoidal", 0, 90, 0, 0, 1, 0, 0
    Rotate -240
    Offset -0.43301270189221932338186158537647+0.51, -0.25
    Effective 75, 0, 105, -90
    EndSegment

    Segment "Sinusoidal", 0, 120, 0, 0, 1, 0, 0
    Rotate -270
    Offset -0.5+0.51, 0
    Effective 105, 0, 135, -90
    EndSegment

    Segment "Sinusoidal", 0, 150, 0, 0, 1, 0, 0
    Rotate -300
    Offset -0.43301270189221932338186158537647+0.51, 0.25
    Effective 135, 0, 165, -90
    EndSegment

    Segment "Sinusoidal", 0, 180, 0, 0, 1, 0, 0
    Rotate -330
    Offset -0.25+0.51, 0.43301270189221932338186158537647
    Effective 165, 0, 195, -90
    EndSegment

    Segment "Sinusoidal", 0, -180, 0, 0, 1, 0, 0
    Rotate 30
    Offset -0.25+0.51, 0.43301270189221932338186158537647
    Effective -195, 0, -165, -90
    EndSegment

    EndProjection

  2. #2
    Administrator waldronate's Avatar
    Join Date
    Mar 2007
    Location
    The High Desert
    Posts
    3,604

    Default

    Hooray!! Somebody finally got around to it!! Did you know that you can use numeric expressions like 3*pi+pi/6 in places where the file takes a number?

  3. #3

    Default

    Wow!

    That's really clever.

    Thank you very much

  4. #4
    Guild Novice Jice's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    23

    Default

    Quote Originally Posted by waldronate View Post
    Hooray!! Somebody finally got around to it!! Did you know that you can use numeric expressions like 3*pi+pi/6 in places where the file takes a number?
    I did not, but thanks to you I know now!

    Edit: Can you use an expression for square root? like sqr maybe?
    Last edited by Jice; 04-12-2018 at 03:40 PM.

  5. #5
    Administrator waldronate's Avatar
    Join Date
    Mar 2007
    Location
    The High Desert
    Posts
    3,604

    Default

    Should be sqrt(). The parser is pretty much the same one found in Wilbur and the documentation for Wilbur ( http://fracterra.com/wilburdoc.zip ) should apply, for the most part. The functions present in FT (see the Wilbur documentation for discussion; # of parameters provided here for demonstration purposes) are:
    "abs", 1
    "acos", 1
    "and", 2
    "asin", 1
    "atan", 1
    "atan2", 2
    "besselj", 2
    "bessely", 2
    "bias", 2
    "ceil", 1
    "cos", 1
    "cosh", 1
    "dist", 6
    "e", 0
    "eq", 2
    "exp", 1
    "floor", 1
    "ge", 2
    "gt", 2
    "if", 3
    "le", 2
    "ln", 1
    "log", 1
    "lt", 2
    "max", 2
    "min", 2
    "or", 2
    "pi", 0
    "pow", 2
    "rem", 1
    "sin", 1
    "sinc", 1
    "sqr", 1
    "sqrt", 1
    "tan", 1
    "tanh", 1
    "xor", 2
    "xrot", 6
    "yrot", 6

    It's a bizarre assortment of functions, but it has trig functions and some of the others. For the conditionals (if, and, le, and so on), think of an unholy hybrid of Fortran and MS Excel.
    Last edited by waldronate; 04-13-2018 at 02:04 AM.

  6. #6
    Guild Journeyer Facebook Connected zhar2's Avatar
    Join Date
    Oct 2008
    Location
    Cardiff
    Posts
    249

    Default

    OMG i need this so bad

  7. #7
    Administrator waldronate's Avatar
    Join Date
    Mar 2007
    Location
    The High Desert
    Posts
    3,604

    Default

    And FT's "Pointy" projection is just 20 partial definitions away from being a linear approximation of an icosahedron...

  8. #8
    Professional Artist Naima's Avatar
    Join Date
    Mar 2010
    Location
    Italy
    Posts
    1,583

    Default

    Awesome thankyou .

  9. #9
    Guild Journeyer Guild Sponsor Arkidemis's Avatar
    Join Date
    Mar 2018
    Posts
    106

    Default

    Thank you so much for this!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •