Ahmed Nuaman


builder of internets ~ developer of dreams ~ tamer of Dachshunds

Papervision3D MovieMaterial: To Hack Or Not To Hack?

Another update: I’ve hacked PV3D to get it to work with YouTube.

Update: I’ve had a play with PV3D and this is what I found out.

Recently I’ve been helping an agency with the YouTube Player API and Papervision3D. They’re after placing a YouTube player on a plane and it being interactive.

The main problem seems to be that:

  1. In order to add an object on to a plane it needs to be a material
  2. When an object is converted into a material, whether it’s a “MovieMaterial()” or not, it subclasses the “BitmapMaterial()” class, thus making it un-interactive (as essentially it’s a flattened bitmap)

    So what to do…

    Well I’ve taken it upon myself to some how hack my way around this. I mean there must be a way that some how I can pass the X and Y of the mouse relative to the plane when the user has made an interaction to a copy of the display object class and have it react in someway.

    Furthermore, since Papervision3D tries to flatten the YouTube player, it’s having none of it, therefore you’re unable to flatten it (as you need the YouTube player to allow the Papervision3D class to manipulate it).

    So maybe the way is to somehow create a material that doesn’t flatten the display object yet still giving us the ability to display the object with all the flexibility flattening it does (such as segmentation for example).

    If anyone’s done this before, care to lend a hand? Otherwise watch this space.

Where have comments gone?

Good question my old fruity. I'm now sticking any post discussions on Google+. Why? Well simply it's better. WordPress's comment system isn't very elegant and nor are ones like Disqus or Livefyre, so to save hassle I've just shipped them off to a social network, like a real boss.

Search

My social skills

Latest blog posts

  • Loading posts...

Subscribe in a reader

Latest tweets

  • Loading tweets...