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) {

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,

What i forgot about was the viewport. DOH!

viewport.interactive = true;

I love this stuff..


Oliver said...

hey thanks :)

Thomas said...

YES, you solved my problem! :-)

Anonymous said...

I love you man!

Anonymous said...

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

Piotr said...

ooh thx man :)

Anonymous said...

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