[Papervision3D] Tips for using PaperVision3D

Nick Kuh mail at editioninteractive.net
Fri Feb 2 01:33:32 EST 2007


I'm new to PV3D but have worked with 3D maths in Flash before to track
objects by treating them as each having just a single 3D co-ordinate and
rendering that co-ordinate into a 2D scene to retrieve the 2D co-ordinates
and perspective scaling.

I know that PV3D can achieve a great deal more than the above. However, I
need to find out if it can do a couple of other things. Before elaborating
here's a link to the project I'm working on, using the engine:

http://www.editioninteractive.net/work/wai/blockbusters/

The idea is that all the tiles on the board will be categories and players
will be represented by avatars moving around the board.

So, in the link above I'm generating a tiled gameboard dynamically in an MC.
Then I'm using the whole MC as a material for PV3D to use to render the 3D
board. This I found to be a much quicker method than treating all of the
tiles as individual 3D objects.

I'm wondering how to use the PV3D engine for the following 2 functions:

1) a scene gets rendered to a camera, I've done this above. Then after that
stage I then need to be able to call a (Scene3D?) method, passing it a
single 3D co-ordinate and have the scene 2D co-ord and perspective scaling
passed back. I can then use this to control a single sided MovieClip that
doesn't require any skewing, just positioning - ie an avatar. What would be
the best way to achieve this?

2) Is it possible to preserve the interactive functionality of a MovieClip
being used in a Scene - ie a MovieClip's onRelease function? Currently I
think the engine must be turning my interactive tile layout into a single
non-interactive bitmap. In this game the user needs to be able to click on
each tile - what's the best way to go about this and keep the board/camera
movement nice and fast?

Thanks for any help. Keep up the good work!

Nick





More information about the Papervision3D mailing list