[Logo]
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
[Register] Register / 
[Login] Login 
Object3D MouseEvents/Buttons  XML
Forum Index » Alternativa3D 5
Author Message
Joe


Joined: 02/06/2008 03:36:22
Messages: 45
Offline

To handle Mouse Clicks on Objects, I used the getFaceUnderPoint() and its working great



Is their already a packaged methods for doing this? Like addEventListener? Im curious because its not going to be as easy to do the rollOvers and rollOuts.

makc

[Avatar]

Joined: 02/06/2008 12:19:17
Messages: 1704
Offline

MouseEvent.MOUSE_MOVE is your only friend here

This message was edited 1 time. Last update was at 30/08/2008 21:15:38

[WWW]
Joe


Joined: 02/06/2008 03:36:22
Messages: 45
Offline

that's what I figured. Just making sure.
wolf

[Avatar]

Joined: 31/05/2008 23:19:38
Messages: 1521
Offline

We want to implement full-fledged mouse events in 6.0.
But it's late, therefore we've decided to add at least these methods now.
Joe


Joined: 02/06/2008 03:36:22
Messages: 45
Offline

Thats cool, at least I can still have interactivity untill then. I created a MouseEvent3D class if anyone is interested.
makc

[Avatar]

Joined: 02/06/2008 12:19:17
Messages: 1704
Offline

link? or swap for SpriteMaterial
[WWW]
Joe


Joined: 02/06/2008 03:36:22
Messages: 45
Offline

Sure, ill post the code as soon as I finish the MOUSE_OVER/MOUSE_OUT types. I'd like to see your SpriteMaterial Makc! I made a MovieMaterial Class, is that the same but with a Sprite?
makc

[Avatar]

Joined: 02/06/2008 12:19:17
Messages: 1704
Offline

Not just Sprite, but any DisplayObject. Check it out here. To give credits to the team, it wouldn't be possible without one tiny bit of information - big thanks for that
[WWW]
wolf

[Avatar]

Joined: 31/05/2008 23:19:38
Messages: 1521
Offline

Makc, thank you for addition. I think it'll be better to override canDraw() method in QuakeTextureMaterial.
makc

[Avatar]

Joined: 02/06/2008 12:19:17
Messages: 1704
Offline

roger that. over.
[WWW]
wolf

[Avatar]

Joined: 31/05/2008 23:19:38
Messages: 1521
Offline

And one more thing. Don't forget to override clear() if you change behavior of method draw() (like addition DisplayObjects into Skin).

This message was edited 1 time. Last update was at 03/09/2008 11:39:22

mariuszkreft


Joined: 04/08/2008 13:12:18
Messages: 10
Offline

@J O E
can i get your MouseEvent3D ?
Joe


Joined: 02/06/2008 03:36:22
Messages: 45
Offline

Hi,

Ill post up the MouseEvent3D as soon as I get a chance. I will also submit an example for you. Maybe by this weekend.
psychofreud


Joined: 19/11/2008 13:59:14
Messages: 5
Offline

Does anyone have a solution here?
The MouseEvent3D.CLICK doesnt really do anything, I get no response.
Joe


Joined: 02/06/2008 03:36:22
Messages: 45
Offline

Are your calling View.interactive = true; ?



 
Forum Index » Alternativa3D 5
Go to:   
Powered by JForum 2.1.8 © JForum Team