Ask a Question related to Macromedia Director 3D, Design and Development.
-
Folkert Jongbloed #1
rollover in 3D
I would like to make a kind of a rollover in a 3d world.
I use this script voor a mouseDown action:
on mouseDown (me)
-- update the mouse down property
thisSprite = sprite(me.spriteNum)
theLoc = the mouseLoc - point(sprite(thisSprite).left,
sprite(thisSprite).top)
theModel = sprite(thisSprite).camera.modelUnderLoc(theLoc)
member("modelklik").text = string(theModel)
if theModel.shaderList[1] = pMember.shader("tegelShader") then
pMember.shader("tegelShader").specular = rgb( 238, 0, 0 )
pMember.shader("tegelShader").shininess = 1.0000
else
pMember.shader("tegelShader").specular = rgb( 255, 255, 255 )
pMember.shader("tegelShader").shininess = 30.000
end if
end mouseDown
This script is working fine but I would like to convert it to a mouseEnter
but i can't get it to work.... where can I find a tutorial for changing the
specular settings on a rollover or something
Thanx in advance!
Folkert Jongbloed Guest
-
help with rollover in DW 8
im trying to do this http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm and here is my code. it doesnt actually do what is... -
Rollover
take a look at this for example of rollovers... http://portfolio.jumpout.co.uk/examples/director "Robert Lee" <rjlee@earthling.net> wrote in... -
trying to do a rollover - please help!!!
Hi, I'm a bit new to Director and i'm trying to make a rolloverbutton so that when i entermouse i want the transparency to go from 100 to 0. And... -
Rollover and making another rollover with links
Hi, This website is nicely designed and the rollover menu design is simple, but clear and effective. http://earthtrends.wri.org/ Does... -
Rollover ???
hi, I am trying to build my first site with flash and i have a question. what I am trying to do is to get photos to change from grayscale to... -
Dave Mennenoh #2
Re: rollover in 3D
It might be that mouseEnter doesn't work as it's only called one time - when
the mouse first enters that sprite. How about trying mouseWithin instead...
--
Dave
[url]http://www.blurredistinction.com/director[/url]
Dave Mennenoh Guest
-
Folkert Jongbloed #3
Re: rollover in 3D
Ok, the mouseWithin really does the job! Perfect! Thanx!
Folkert Jongbloed Guest
-
Karl Sigiscar #4
Re: rollover in 3D
This feature has already been coded. Check the "Go To URL with Rollover"
behavior in the Chrome Lib:
[url]http://membres.lycos.fr/karlsigiscar/shockwave3d[/url]
Karl Sigiscar Guest
-
Karl Sigiscar #5
Re: rollover in 3D
BTW, the emissive color shader property is the one used for a rollover as it
makes the object look as if it were emitting some light while it's not a
lightsource.
Karl Sigiscar Guest
-
Folkert Jongbloed #6
Re: rollover in 3D
WOW! I'ne never seen this, thanx!!!!
"Karl Sigiscar" <karl.sigiscar@laposte.net> schreef in bericht
news:bnjki6$drq$1@forums.macromedia.com...> This feature has already been coded. Check the "Go To URL with Rollover"
> behavior in the Chrome Lib:
> [url]http://membres.lycos.fr/karlsigiscar/shockwave3d[/url]
>
>
>
Folkert Jongbloed Guest
-
Pezito webforumsuser@macromedia.com #7
Re: rollover in 3D
I have the same problem but I think the solution is different (although I haven't found it yet - that's why I'm asking here :D )...
I want to do a rollover effect on an object in my 3D scene, but the problem is that this object isn't a separate cast member ! I mean, I only have one SW3D cast member, which is my (empty) scene ; then all textures and models are generated with Lingo, on the run, in the "on beginSprite me" loop... So I can refer to my various 3D objects with expressions such as « member("scene").model[16] », but I have no distinct 3D cast members to apply behaviours to. :\
I run all my animations and effects in an "on exitFrame" loop at the first frame, and tried to implement the rollover there, but so far it doesn't work. I've tried to use « on mouseOver member("scene").model[18] » for instance, but Director won't accept this (I thought it would)... What should I use instead as a reference to the object I want to highlight ?
By the way, I don't need the highlighting function itself, as I know how I'll do it (just change update te texture, at least I got that working) ; all I need is a way to trigger the change when the mouse goes over my object...
Pezito webforumsuser@macromedia.com Guest



Reply With Quote

