martes, 2 de marzo de 2010

OpenSceneGraph plugin for Firefox


We are currently developing a Firefox plugin which shows 3D objects in a web. It uses OpenSceneGraph to set up the render canvas. Moreover the plugin also features scripting capacities based on NPAPI technology that allow access to the plugin functions and variables from web application itself.

The plugin has been tested successfully on Windows XP, Vista, 7 and Ubuntu 9.10 Linux (only 32 bits). Currently we are working to port the plugin to MacOSX.

Installation is easy: The first time you open the example web [1], Firefox will ask about additional plugins needed for its proper visualization. Plugin installation will start once you allow it by pressing the button that appears on the top-right corner of the browser.
After the plugin installation, Firefox will ask you to restart it in order to visualize the web content.

If the plugin installation doesn't start automatically, you should download the link provided in the example page. Once downloaded, drag the ".xpi" file and drop it into a Firefox window to start the installation process.

In this example we show how to change the viewer background color by accessing the color variable of the plugin and assigning a new color to it. The plugin will take charge of all the internal operations needed to manage the background color via javascript calls (eg. onchange="pluginobj.col=colorpick.value").

[1] Example test web: http://www2.ai2.upv.es/difusion/osgplugin/simpleearth/

No hay comentarios:

Publicar un comentario en la entrada