Showing posts with label gotcha. Show all posts
Showing posts with label gotcha. Show all posts

Thursday, February 12, 2009

alpha not working gotcha papervision 2.0

Ever try to work with the alpha property in Papervision 2.0 and you're just banging your head against the wall, frustrated as to why it doesn't work?

try:
DisplayObject3D.useOwnContainer = true;

I hope this saves someone else some time, as it took me quite a while to figure this one out...the documentation is still a little few and far between for Papervision, but it's coming along....

Happy flashing.

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