A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Perspective for Text

  1. #1
    Member
    Join Date
    May 2003
    Posts
    49

    Perspective for Text

    Anyone have a good way to add perspective to text? I like the way I can add some perspective to an object I draw but I want to have a rounded corner rectangle that I have added perspective to as the backgound for some text that I also want to be in the same perspective. In essence, I have created a "billboard" that I then want to show in a frame with some perspective but can not do it with KM.

  2. #2
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    I may have something you can use...
    It's part of my 3D / perspective ingine.

    But it does depend on if you want animation, the shape of
    your billboard, and the contents of the billboard...

    Which kind of perspective would you like?
    F is front B is back.

    A: F------B

    B: B------F

    C:
    B
    -
    -
    -
    F

    D:
    F
    -
    -
    -
    B
    _________________
    I would like to email it cause,
    I'm not quite ready to release the whole thing...
    DocRee

    Oh yeah, Long time no see. I moved across country. From Chicago area to GA. I'm almost in FL.

  3. #3
    Member
    Join Date
    May 2003
    Posts
    49
    If I understand your post correctly, either A or B is fine. However any of the 4 would be better than what I a have right now.

  4. #4
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    OK
    I will attach a zip.
    _____________________
    Notes:
    This is done using some slightly advanced masking and duplication.
    The green line is the mask.
    Place the contents in the "cont" movieclip.
    And, there are further instructions within the action script.

    The layout is
    Main Movie: Action Script, Ray MC
    ---Ray MC: Cont MC, mask line
    ------Cont MC: Content being rendered.

    Also, it takes a moment to initialise/load.
    _____________________
    When using this, all I ask, is go see something theatrical.
    [A play, show at a fair, or throw some
    money in a street performer's direction.
    After all, the whole world's a stage.]
    __________
    Thanks
    DocRee

  5. #5
    Member
    Join Date
    May 2003
    Posts
    49
    I am not very familiar with ActionScript so I do not really know what to do. I tried just running the fun file but nothing happened.

  6. #6
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    Do you mean, the fun file did not load in KoolMoves?
    I'll see about getting this thing working...
    Might take a bit, though.
    DocRee

  7. #7
    Member
    Join Date
    May 2003
    Posts
    49
    Yes the fun file loaded. I was not sure if there was supposed to be some animation or what. When I look at the image and where it is located before I run the file and after, I do not fully understand what I am seeing.

  8. #8
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    If you play the fun file, without changing anything, it should show the pig's picture,
    scaled to the side appearing smaller in the distance.

    If it is broken then...
    You may need to change your export settings to flash version 5 or 6.
    6 allows you to compress the final swf.

    It also seems that adding a swf to the content MC breaks it.
    So, a work around is to import your animation as a movieclip.

    I would like to see this working for anyone else but me.
    Doc'Ree
    ______________________
    I would also be willing to take a look at the content you want to render.
    That way I can see what is going wrong.

  9. #9
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Pertaining to the original title of the thread, perspective can only be applied to non-symbol shapes because it is not a transform that can be described by a simple 2 x 2 matrix. There is some name for this type of transform but I don't remember what it is. To apply it to text requires that the text be transformed into shapes with points using menu bar Transform.

  10. #10
    Member
    Join Date
    May 2003
    Posts
    49
    Actually, this permitted me to do what I wanted to do. I created a background, created some text and transformed it, then I grouped it with the background and added perspective and now it looks the way I wanted it to.

    Thanks for the tip.......there is so much I still need to learn about how the product works........

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center