[x3d-public] [x3dom-developers] x3dom Open points, and development with Java

Don Brutzman brutzman at nps.edu
Sun Aug 14 11:21:56 PDT 2016


On 8/12/2016 8:36 AM, Don Brutzman wrote:
> [cc: x3d-public due to general nature of the question]
>
> Generating X3DOM scenes from a server is similar (perhaps identical) to generating HTML pages from a server.
> [...]

Additional Java resource: Xj3D is able to render scenes to an image using off-screen rendering.  In the X3D examples, each of the thumbnails for directory summaries and each of the Viewpoint images generated for the documentation HTML are created this way.

     X3D Example Archives: X3D for Web Authors, Chapter 02 - Geometry Primitives
     http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/
     http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/_thumbnails/BoxThumbnail.png

     http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/Box.html
     Viewpoint description='Book View'
     http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/_viewpoints/Box.x3d._VP_Book_View.png

The images are also checked into version control, providing a 'visual diff' when rendering changes occur.  Helpful unit test.

Example Java invocation for Xj3D can be found in each respective archive's build.xml file under targets

     processScenes.captureViewpointImages
     processScenes.captureThumbnailImages

     view-source:http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/build.xml

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list