how is it possible to read vrml97 produced i.e. by 3ds max?
I tried the easy way based on your off-file-tutorial to handle wrl with this code:
Code: Select all
package mainpackage;
import java.io.IOException;
import java.net.URL;
import de.jreality.reader.Readers;
import de.jreality.scene.SceneGraphComponent;
import de.jreality.tutorial.intro.Intro04;
import de.jreality.util.Input;
public class CompensatorInit {
public static void main(String[] args) {
SceneGraphComponent testSGC = readWRL();
}
private static SceneGraphComponent readWRL() {
URL url = CompensatorInit.class.getResource("test1.WRL");
SceneGraphComponent scp = null;
try {
scp = Readers.read(Input.getInput(url));
scp.setName("test");
} catch (IOException e) {
e.printStackTrace();
}
return scp;
}
}
In your documentation it is said that jReality is only able to handle vrml 1 data, but I see vrml97 (named there as vrml2) in your repository. Is there any way to parse a vrml97-file?SCHWERWIEGEND [ReaderVRML.setInput]: VRML 1 parsing failed, call ANTLR first!
Thanks and greetings to berlin