You may notice that one can mix JavaView and DataMelt classes in a single code.
You can run this code inside DataMelt version 2.5. For example, look at this short code that visualizes a snail in 3D using parametric functions: from jv.geom import PgElementSet Using the Python syntax, it takes only a few lines of the code to make impressive interactive 3D objects. An integration of JavaView into scripting languages means that short code snippets can be used to build and configure JavaView classes, instead of using many parameters passed to Java applets as it was done in the past. DataMelt also can be used to run the JavaView library using several scripting languages, such as Groovy, JRuby, BeanShell. Recently, JavaView was added to DataMelt which allows high-quality 3D visualization of mathematical and geometry objects using the syntax of the Python language (with the help of Jython backend).
With the incredible growth of Python usage, it becomes apparent that integration of the JavaView geometry viewer into Python will bring significant benefits and can extend its usage as a scientific visualization tool. Currently, the support of Java applets in recent browsers is very limited, disabling many online examples and tutorials based on JavaView. This technology has been deprecated, thus disabling one of the main functionalities of JavaView (see a recent preprint by M.Skrodzki and R.Ithems). When originally created, JavaView was integrated in the Web using Java applets. JavaView can be used for 3D scientific visualization, geometric modeling, variational optimization, vector fields etc.
The program is written in Java, and enables a smooth integration into commercial software like Mathematica and Maple. We will finish by showing some results extracted from our WebGL application.JavaView( ) is a 3D geometry viewer and a mathematical visualization software known since 90x. Then we will describe our solution from the server and client sides. In this paper, after a brief state of the art, we will present our Environment Editor where data are prepared and exported to our server. This work has been initiated in a larger project named 3DPIE (3D Portrayal Interoperability Experiment) and proposed by OGC (n.d.) where we are involved. With the 3D geometry visualization, another important point is to keep the possibility to query semantics information linked with the geometry. Hardware-accelerated 3D graphics for the browser environment.Ī scripting environment that makes it easy to prototype 3D graphics (no compilations are needed). Tight integration with HTML content, including layered compositing, interaction with other HTML elements, and use of the standard HTML event handling mechanisms. WebGL offers a number of advantages, among them:Īn API that is based on a familiar and widely accepted 3D graphics standard.Ĭross-browser and cross-platform compatibility. Major browser vendors Google (Chrome), Opera (Opera), Mozilla (Firefox), and Apple (Safari) are members of the Khronos consortium's WebGL Working Group, along with many other 3D graphics developers.
WebGL is a DOM API, which means that it can be used from any DOM-compatible language (JavaScript, Java, etc.).
As it runs in the HTML5 Canvas element, WebGL has full integration with all Document Object Model (DOM) interfaces (Khronos Group, 2012). Based on OpenGL ES 2.0, WebGL uses the OpenGL shading language, GLSL, and offers the familiarity of the standard OpenGL API. WebGL is a cross-platform, royalty-free API used to create 3D graphics in a Web browser. In this paper, the goal is to use HTML 5 and in particular WebGL to create a thin client which means there will be no installation on the client. However, these solutions require the installation of software on a client computer or plugin on navigators in order to open the files. For instance Autodesk or Bentley have proposed software solutions to support CityGML format as Bentley Map or LandXplorer. With a growing popularity, many research and development have been proposed. This standard allows agglomerating data including 2D/3D geometric and semantic data via XML formalism. Emerging from the Open Geospatial Consortium (OGC), CityGML is a recent standard dedicated to the representation and exchange of urban data.