360 degree video in Flash

Technology

360cam_20080217.jpg

Quentin Lengelé put together a cool demo for a Flash application that uses the Papervision 3D library to pan around a 360 degree video while it’s playing:

The idea was to apply the BitmapData of that movie on a GeoSphere.

The GeoSphere is made in 3DSMAX with flipped faces and exported in ASE Format.
The ASE Format is readable by Papervision3D.

Then you just need to draw your bitmapData into a texture you apply to the ASE in ActionScript.

I’d be really interested in seeing a DIY version of the 360 degree camera hardware. Has anyone taken something like this on?

360 Degree Video with PaperVision 3D – [via] Link

18 thoughts on “360 degree video in Flash

  1. Twan van Laarhoven says:

    There is also a trick for ‘toggling’ comments, a single character can comment out one piece of code, and uncomment another:

    /*
    inside_comment();
    /*/
    outside_comment();
    //*/

    //*
    outside_comment();
    /*/
    inside_comment();
    //*/

  2. Jujubee says:

    If you’re in C or C++, use the preprocessor instead, like this

    #if 0
    if ( foo == bar )
    {
    dosomething();
    return();
    }
    #endif

    Changing the 0 to a 1 uncomments. Bonus, you don’t have to worry if there is an existing /**/ comment block in the code you’re commenting out. Double bonus, you can nest #if statements.

  3. Matt H says:

    ifdef’s are way better for removing code because they always work, even if you are removing code that has comments in it

  4. aoeu says:

    I sometimes put something like this while writing css files:

    /* *
    * { outline: 1px solid red; }
    /* */

    a.

  5. Tom Ritchford says:

    I used to do almost exactly the same thing, depending on syntax highlighting to reveal the comments.

    I do occasionally but almost every other time I use #ifdefs. Much long but MUCH more formal and it allows me to see the code that’s being hidden in the syntax highlighting – or conversely, if someone’s reviewing my code and doesn’t have syntax highlighting, the fact that those lines of code are not being compiled is far more obvious with the #ifdefs.

  6. Michael says:

    You know, quickly toggling CSS comments (with their damn C-style comments only) has always driven me crazy. This is a great idea.

  7. James says:

    It may be neat for a while, but when you return to your code in 6 months, you’ll find that the code is now less readable.

  8. Matthew says:

    You could also use the blockcomment plugin for vim. Admittedly, it’s a little more than a single character (select block + x and same to uncomment)

  9. Man says:

    If you need to put documentation, liscence, or other rather uniform (i.e. you want to script their insertion) headers on something written in scheme and C you can do something like:

    ;;/*
    ;; Commentary here
    ;;*/

    and have only one script. Depending on compiler settings the C compiler might whine about empty statements, but there’s really no way arround that one. This way you only need one headerify script.

  10. Jean-Claude Wippler says:

    FYI, the Lua language has this feature by design – with “–[[” on the opening line and “–]]” on the closing line. To disable the comment, insert a space on the first line, i.e. change it to “– [[“.

    See http://www.lua.org/manual/5.1/manual.html#2.1

  11. Wolf says:

    Use an editor where you can just toggle in and toggle out of comments? Textmate for example.

  12. Robin Message says:

    I’ve used

    /*/
    Old Version
    /*/
    New version
    /**/

    in the past, which can be toggle between the two blocks with an extra * in the top line.

  13. Hiro Protagonist says:

    I use this frequently:
    #if 1
    // New code here
    dosomethingelse();
    #else
    // old code here
    dosomething();
    #endif

    Changing the 1 to a 0 allows you to quickly switch between the old and new code. If you’re making multiple changes, just do:
    #define NEW_CODE 1
    #if NEW_CODE
    #else
    #endif
    This allows flipping multiple blocks between old and new with a single change.

  14. Daniel McLaren says:

    I wanted to post about the comment toggling but Twan and Robin both beat me to it! It’s funny to see how many people have discovered and use that little trick.

  15. MIke Dugdale says:

    If you want to read this in its original form (from 8 years ago, no less) and lots of other C tricks, then head over to http://www.gamedev.net/reference/articles/article1239.asp

  16. Coach Outlet says:

    Welcome to visit Coach factory outlet store online! We offer diverse Coach outlet products as Coach bags, Coach wallets, Coach purses, shoes, jewelry, sunglasses etc, at promotional price in Coach outlet Online. The styles include lots of popular collections such as Coach kristin, Coach madison, Coach hampton, Coach poppy etc…… Coach is a leading American designer and maker of luxury lifestyle handbags and accessories. There is no doubt that here Coach outlet store is the exact place you should visit. This Coach factory outlet provides various Fashion Coach Bags to customers. We guarantee that all the coach outlet bags offered at our website shop have high quality.If you want to purchase Coach Outlet Store, please feel free to contact us here.All are 70% off. I ensure we can satisfy you needs at Coach Factory Outlet. What you need to do is to visit our Coach Outlet online shop immediately, and get the products that you long for back to your home. Click Coach Purse to find the best buy in this Coach outlet online store !

Comments are closed.

Discuss this article with the rest of the community on our Discord server!
Tagged

ADVERTISEMENT

Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).

FEEDBACK