Ask a Question related to Macromedia Director 3D, Design and Development.
-
frank #1
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
-
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... -
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. ... -
rollover on a 3D surface
Hi there!! Anyone have an idea to make text rollover on a 3D surface within Director? frank. -
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... -
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... -
James Watt #2
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...certain> 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> 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



Reply With Quote

