Papervision3D 2.0: Bump map, Phong, Cell, Gouraud and Flat shading

Well, as you might have guessed, 2.0 is literally right around the corner and we’re now getting to play with the API a bit internally and I have to say – THIS FRIGGIN’ ROCKS \M/

Dynamic lighting, sure that’s nice, but let’s be honest: Shaders is what makes this a real love fest, am I right or what!? Here’s a peak at some of the new objects coming in 2.0:

FlatShader
CellShader
GouraudShader
PhongShader
EnvMapShader

At the NYC classes, we’ll be going over these in detail with the class, but for now, here are some hands on demos. Ralph’s shader’s are very FAST and look outstanding.

The box below is a collada model created in 3D Studio Max. The box is using PreciseBitmapMaterial, PhongShader with a box that only has 2 segments per side. Locally, this runs around 30fps with the latest Beta3 player – oh and btw, they’re all running at high quality.


CellShader – 7 levels

Gouraud Shading

Phong Shading

Phong Shading with Bump map

Small spaceship with phong shading and bump

Moon with phong and bump map

Teapot with phong and bump map
    • Grapefruitlips
    • November 1st, 2007

    very nice!!!

  1. Absolutely amazing!

    • micha17
    • November 1st, 2007

    too. dark.

  2. “gimme gimme gimme gimme gimme…”

    Seriously tho’, nice job! Looking forward to playing around with 2.0.

    Cheers!

    • 3DRulez
    • November 1st, 2007

    “literally right around the corner”

    Does that hopefully mean this afternoon???

    Waits impatiently

  3. awesome

  4. this = \m/

    2.0 is gonna’ own!
    great job!

  5. @micha7: I changed ambient light on the phong bump box demo as well as the teapot

    You can really see how easy it is to play with specular, ambient and colors of light

  6. yeah I have to admit, it’s a TON of fun to play with!

  7. @3DRulez: Almost! I had thought this week, but forgot that Ralph’s in Japan speaking at Max and was going to release when he got back.

  8. yeah wow, on a PC monitor, these are really dark. I’ll lighten them up😉

    • Daniel
    • November 1st, 2007

    holy crap!! can’t wait to get 2.0 in my fingers! awesome work guys!

  9. Ok. I lighened up the moon, the phong/bump box and the spaceship

  10. Eagerly awaiting 2.0! Great work!

  11. 100% CPU without any moving

  12. Hi John,

    When I run the examples I get the “Where is the debugger or host application running?” debug popup.

    Very nice BTW. I am working towards playing with more pv3d sometime soon!
    So much code to write, so little time!

  13. Nice robo box! Reminds me of that wall e!

    http://build.avatarlabs.com/wall-e/pv3d/

    Can’t wait! Thx for the update!

  14. @David: that’s the Flash debug player asking you where your debugger host application is running. Just hit cancel.

  15. Wow!!! I don`t even know that it can be done with Flash. Awsome!

  16. Did you say “a box that only has 2 segments per side”? – Well I know you did.

    Is this a new technique? Where is the distortion? Does it hit the processor?

    Nice work

  17. If the debug dialog is popping up it means you deployed the debug swf. Go to “Project/Export Release Version…” to export a non-debug swf. It will probably run better and should be smaller.🙂

    As for 2.0…..where is it? I’ve seen no work in the svn repo for quite a while. Are you using a private svn repo?

  18. Man you know what’s fucking amazing?
    a Gouraud shaded 3d box with 2 segments running at 25 fps on the latest bleeding edge beta player.

    Holy smokes!

  19. yeah, and phong shaded bump map box doing the same thing – incredible \m/

  20. @Justin: Ralph has a repo he uses for his own business etc, so it’s not open unfortunately. He has wanted to get it completed first and then release, so it’s not been added to any of the branches as yet. Given the complexity of these additions, I think it makes total sense from the stand point of the amount of help center emails we’ll get on the list concerning shader/material/light use.

    The release, however, should be a matter of days at this point.

  21. bringing industrial grade shading to Flash
    amazing work on pv3d 2.0

    i’m going to use this on my next project

  1. November 1st, 2007
  2. November 5th, 2007
  3. December 29th, 2007

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s