[Source] [x3dom-users] vrml2 to x3d xslt stylesheet
Don Brutzman
brutzman at nps.edu
Tue Feb 19 21:54:11 PST 2013
On 2/15/2013 1:18 AM, Johannes Behr wrote:
> BTW Java: AFAIK includes the Xj3D codebase a small tool which utilizes the VRML reader and X3D writer to build a basic command line converter.
Yes this works pretty well. I have integrated it into the jenkins
"continuous integration" nightly builds of all 3000+ .x3d examples. has
some bugs which recur. apparently no one on source list (cc:ed) is
tracking those, would be nice tho.
http://www.web3d.org/x3d/content/examples/X3dResources.html#Examples
https://savage.nps.edu/jenkins
http://www.web3d.org/x3d/content/examples/Basic/build.xml
================================================
also NPS branch of Xj3D
https://savage.nps.edu/Savage/developers.html#Xj3D
converter.bat
@rem # Shell file to run Xj3D's CADFilter (format converter) using
Apache Ant
@echo off
@echo Running Xj3D Format Converter
@echo cadfilter.args %1 %2 %3 %4 %5 %6 %7
ant -f \javaapis\NPS-Xj3D\build_nps.xml -Dcadfilter.args="%1 %2 %3 %4 %5
%6" run.cadfilter
build_nps.xml
<target name="run.cadfilter"
depends="check.cadfilter"
description="Run the Xj3D Converter App">
<!--property name="cadfilter.args"
value="/javaapis/xmsf/xsbc/examples/Teapot.x3d ./Teapot.x3db"/-->
<property name="cadfilter.args" value="${cadfilter.args}"/>
<!--java classname="xj3d.cdfviewer.CDFViewer"-->
<java classname="${cadfilter}"
fork="true"
dir="${cadfilter.dir}">
<jvmarg line="${runarg4}"/>
<classpath refid="app.classpath"/>
<!-- args should be the full path to convertible file -->
<!-- commandline given/supplied arguments args=%1 etc -->
<arg line="${cadfilter.line.args} ${cadfilter.args}"/>
</java>
</target>
================================================
================================================
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 Source
mailing list