All pastes #946791 Raw Edit

Something

public java v1 · immutable
·published 2008-03-17 23:11 UTC
rendered paste body
 URL model=HelloChess.class.getClassLoader().getResource(        		//"data/board/chess.3ds");        		"data/pieces/Bishop_White.model");        		//"jmetest/data/model/maggie.obj");        // Create something to convert .obj format to .jme        FormatConverter converter=new ObjToJme();        // Point the converter to where it will find the .mtl file from        converter.setProperty("mtllib",model);        // This byte array will hold my .jme file        ByteArrayOutputStream BO=new ByteArrayOutputStream();        try {            // Use the format converter to convert .obj to .jme            converter.convert(model.openStream(), BO);