Writing plugins, newbie help if possible please

  • Hi
    I've been using krpano for a while, mainly via Kolor Panotour, with some custom XML coding. I have a few ideas for plugins that I would like to develop, mainly for mobile devices. I've read the plugin documentation but am not familiar with either JS or AS. I've just started to learn some JS at w3schools.com as my priority is for mobile usage. I know a bit of Python and C so am not a total beginner, but it's been a few years:-(

    Am i understanding the documentation correctly that to write plugins I will need to write JS and AS?

    Are there any tools available that would allow 'translation' from JS code to AS, or do I need to suck it up and write both?

    If I need AS also, can anyone recommend any good websites for AS learning or reference?

    Many thanks in advance.

    Mike

    Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
    Twitter: MikeJMcFarlane
    email: moo@moosooboo.com
    www: http://www.moosooboo.com

  • Hi guys and gals

    I would really appreciate some help with this. I read the HTML5 page which gives the impression that I can do pretty much the whole thing in HTML5/CSS, minus some functionality compared to Flash. I'm going to start some design and code today, but some pointers might help.

    I also need to pick a decent IDE, I think. I've used TextWrangler in the past for the basic C/Python/XML that I have needed, but think an IDE might make life easier, especially for linking to a repository. A friend recommended Eclipse. Any other recommendations on IDEs?

    Many thanks

    Mike

    Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
    Twitter: MikeJMcFarlane
    email: moo@moosooboo.com
    www: http://www.moosooboo.com

  • There are two different ways to extend krpano in the browser. You can write javascript that "lives" in the html page, and communicates with the krpano viewer, or you can write a plugin that lives inside krpano (don't confuse plugin with the <plugin> node; plugins can be used as <hotspot> too).

    A plugin needs to be both flash (as3) and js if you want to support both platforms. There is no automated translation between the two, but depending on what you want to achieve, the code will be very similar.

    I don't use an IDE myself, but I can recommend using a (git) repository to keep track of your progress while making plugins.

    Finally, if you want to learn from examples, you could look at my collection here:
    http://fieldofview.github.com/krpano_fovplugins (descriptions)
    https://github.com/fieldofview/krpano_fovplugins (code)

  • Hi Aldo

    Thank you for the detailed reply. I hadn't realised there was that distinction between the two ways to use JS with krpano. I'm mainly interested in 360video so am probably going to have to learn both languages anyway given the krpano video player is still Flash based.

    I had come to realise that an IDE was probably overkill, at least at my skill level, so I'll stick with my current TextWrangler.

    Thank you also for the links. I had a quick look at your site, but there is a lot to see, so Monday morning will be coffee and a good look at your site.

    Hope you are having a good weekend.

    Mike

    Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
    Twitter: MikeJMcFarlane
    email: moo@moosooboo.com
    www: http://www.moosooboo.com

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!