Showing posts with label Material. Show all posts
Showing posts with label Material. Show all posts

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..