Thursday, October 23, 2008

Papervision 2.0 InteractiveScene3DEvent Gotcha

So has anyone spent any real time frustrated as to why something simple like :

item.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, planeClicked);

public function planeClicked(ev:InteractiveScene3DEvent) {
trace("planeClicked");
}

isn't working??

Well I have just finished spending time(1.5+ hours) on something such as this, so you may be in luck having now found this, if you happen to be in a similar situation.

yes, yes you have already tried to make the Material's interactive property true,
or the plane's interactive to true, etc,
whatever.

What i forgot about was the viewport. DOH!

viewport.interactive = true;

fixed.
I love this stuff..

6 comments:

jiowfojieoij said...

hey thanks :)

Anonymous said...

YES, you solved my problem! :-)

Anonymous said...

I love you man!

Anonymous said...

You know what, you save my time!!!Thanks to you!

adnap_revol said...

ooh thx man :)

Anonymous said...

Big Russian Thanks to you, man! It took hours to resolve it!