text rollOver on 3D surface

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default Re: text rollOver on 3D surface

    Hi there!!

    Anyone have an idea to make text rollover on a 3D surface within Director?

    My proposition is to assign simple static text like informations on certain
    3D surfaces.

    I'm a beginner in 3d lingo programming and i can't find info on the
    addOverlay fonction which seems to be the way to do it combine with an
    modelUnderlock fonction as far as I know.

    There is my testing code after many days of stress, coffee, headaches and
    nigthmares :

    on enterFrame me
    pObj = member("3D_world")
    textImage = member("Microphone").image
    jTexture = pObj.newtexture("jTexture", #fromImageObject, textImage)
    thisSprite = sprite(me.spriteNum)

    -- Get the mouse location, adjusted to the sprite,
    -- in the old 2D manner.

    theLoc = the mouseLoc - point(sprite(thisSprite).left,
    sprite(thisSprite).top)

    -- Find the model under the mouse closest to the camera

    theModel = sprite(thisSprite).camera(1).modelUnderLoc(theLoc)
    if theModel = member("3D_world").model("coque_avant") then
    pObj.camera(1).addOverlay(jTexture, point(0,0), 0)

    end if
    end enterFrame me

    Other problem:
    I made some tests and the resulting text had a very bad resolution without
    the capacity to solve this with any Anti-Alias solution.

    Plz help me sleep fine!

    frank.




    frank Guest

  2. Similar Questions and Discussions

    1. rollover on hyperlink in text field makes text shift
      I've put a hyperlink in a text field with an attached stylesheet, and when roll the mouse over it, it makes the other text shift slightly. The...
    2. DISPLAY TEXT ON ROLLOVER
      Hi, I need to display help text on a mousenter event for several buttons. Is it possible to do this in lingo without having to use a textfield. ...
    3. rollover on a 3D surface
      Hi there!! Anyone have an idea to make text rollover on a 3D surface within Director? frank.
    4. animated text on rollover...
      Hello there. This is my first user group experience so be gentle. I'm developing my first interactive CD rom for my furniture business I've...
    5. flash text rollover
      Is this possible? How is it done? It can be done in Dreamweaver MX but I'd like to know how in Flash MX. Thanks...
  3. #2

    Default Re: text rollOver on 3D surface

    I would use previously created images. You have more control over the look
    of the images & more control of their size. If you do try this with
    images, remember to keep the dimensions to powers of 2 (eg. 128*32). I
    have not tried using text as rollover images but have seen some examples.
    Any examples that I have seen sound similar to what you are talking about.

    One other thing that you might try is to set the texture render format of
    the text texture that you create to a higher value:

    member(x).texture("XXXXX").renderFormat = #rgba8888

    James


    "frank" <francois@outgun.com> wrote in message
    news:bn1h8p$588$1@forums.macromedia.com...
    > Hi there!!
    >
    > Anyone have an idea to make text rollover on a 3D surface within Director?
    >
    > My proposition is to assign simple static text like informations on
    certain
    > 3D surfaces.
    >
    > I'm a beginner in 3d lingo programming and i can't find info on the
    > addOverlay fonction which seems to be the way to do it combine with an
    > modelUnderlock fonction as far as I know.
    >
    > There is my testing code after many days of stress, coffee, headaches and
    > nigthmares :
    >
    > on enterFrame me
    > pObj = member("3D_world")
    > textImage = member("Microphone").image
    > jTexture = pObj.newtexture("jTexture", #fromImageObject, textImage)
    > thisSprite = sprite(me.spriteNum)
    >
    > -- Get the mouse location, adjusted to the sprite,
    > -- in the old 2D manner.
    >
    > theLoc = the mouseLoc - point(sprite(thisSprite).left,
    > sprite(thisSprite).top)
    >
    > -- Find the model under the mouse closest to the camera
    >
    > theModel = sprite(thisSprite).camera(1).modelUnderLoc(theLoc)
    > if theModel = member("3D_world").model("coque_avant") then
    > pObj.camera(1).addOverlay(jTexture, point(0,0), 0)
    >
    > end if
    > end enterFrame me
    >
    > Other problem:
    > I made some tests and the resulting text had a very bad resolution without
    > the capacity to solve this with any Anti-Alias solution.
    >
    > Plz help me sleep fine!
    >
    > frank.
    >
    >
    >

    James Watt Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139