Results 1 to 10 of 23

Thread: How to progressively map a plane to a semisphere?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Post

    Quote Originally Posted by PhotoComix View Post
    I failed to find the discussion on the formula to be applied but if may help i have as Mathmap code
    Code:
    filter rel2ellv3(image in)
    xprime=x/sqrt(1-4*(y/H)*(y/H));
    yprime=y/sqrt(1-4*(x/W)*(x/W));
    in(xy:[xprime,yprime])
    end
    I've just had a brief look at mathmap's documentation and examples, and it appears to be able to do animations; as far as I can tell, if you use a "t" parameter it will automatically generate an animated gif (see http://www.complang.tuwien.ac.at/sch...map/anims.html and http://www.complang.tuwien.ac.at/sch...tml#animations). So assuming your xprime, yprime transformations work correctly in mathmap to give your final image, then I'd guess you might be able to get your desired animation with this:

    Code:
    filter rel2ellv3(image in)
    xprime=x/sqrt(1-4*(y/H)*(y/H));
    yprime=y/sqrt(1-4*(x/W)*(x/W));
    in(xy:[x+t*(xprime-x),y+t*(yprime-y)])
    end
    I haven't tried it, though.
    Last edited by isomage; 05-02-2009 at 10:00 PM.
    My random map generators and GIMP scripts: http://axiscity.hexamon.net/users/isomage/

  2. #2

    Post

    Quote Originally Posted by isomage View Post
    Code:
    filter rel2ellv3(image in)
    xprime=x/sqrt(1-4*(y/H)*(y/H));
    yprime=y/sqrt(1-4*(x/W)*(x/W));
    in(xy:[x+t*(xprime-x),y+t*(yprime-y)])
    end
    I haven't tried it, though.
    I tried it. works brilliantly!

    Good job.

    -Rob A>

  3. #3

    Post

    filter rel2ellv3(image in)
    xprime=x/sqrt(1-4*(y/H)*(y/H));
    yprime=y/sqrt(1-4*(x/W)*(x/W));
    in(xy:[x+t*(xprime-x),y+t*(yprime-y)])
    end

    I haven't tried it, though.
    @Isomage

    I did try...perfect ! ...exactly what i was looking for, thank a lot (and thanks for all the other contribute )

    PS the image you posted as example was strange but the code work well !

    ###############################

    About animation gif has to low quality for my taste, but gimp (with a AVI plugin, or with GAP ) may save as uncompressed AVI, then is quite simple apply a codec to shrink the file size or convert to FLV
    Last edited by PhotoComix; 05-04-2009 at 04:06 AM.

  4. #4

    Post

    I exported it as an AVI using the AVI plugin (which uses some really funky codec... if anyone uses it, one tip is to make sure your image size is divisible by 2 in both directions).

    virtualdub would read it, so I piped it through avisynth, then used virtual dub to convert it to a divx.

    In you are interested, the result is here:
    http://ffaat.pointclark.net/incoming/test-divx.avi

    -Rob A>

  5. #5

    Post

    there is a even better way to save a animation:
    simply export all layers as PNGs (GAP may do it,as several scripts)

    Then are a lot of free SW (one for Win is SUPER) that may convert that in AVI or in other Video format,with no more effort then a couple of clicks

    thank for the test, yes if what i was looking for, i will do a bit slower and maybe with some loops
    Last edited by PhotoComix; 05-04-2009 at 09:48 PM.

Posting Permissions

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