Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / jMonkeyEngine / Blender exporter, and XML issues. on: 2005-01-24 11:15:32
Hi,

I am a recent convert to jME, I noticed on the tasks (before the forums were trashed) that you were looking to develop a Blender importer.

To get to the point, I have created exporters for other engines, and decided to work on a Blender exporter for jME, exporting to jME XML (for several good reasons, most off all the XML route is the easiest to take).

Unfortunately their are problems with the XML to Binary converter, it creates an invalid binary file, for some tags.

Details :

The problem is with the attributes, one affected tag (there are others) is <texture>. The wrap and texnum attributes in <texture> results in a binary file, which when loaded, results in a class cast exception.

I delved into the code and have identified the problem :

In XMLparser.XMLtoBinary.processWrite() any attributes that are not detected, are written out as jME strings, by default. This results in some numeric attributes being written out incorrectly, as jME strings.
For example in <textures> the wrap and texnum attributes are written out a strings, when the jME binary loader subsequently loads these values, it attempts casts them to Integer, which results in the the class cast exception.

I have verified this by adding in the code to detect texnum and wrap and writing these out in the correct type (jME integer), which results in a valid binary file (loads without any problems).

Unfortunately I am in a position where my exporter, as it exists so far, will only work with my corrected version of jME !

I'm happy to provide patches to correct the problems, but am unsure how to go about it, or if I should (do not want to interfere with any work in progress).


PW.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (45 views)
2014-10-17 03:59:02

Norakomi (36 views)
2014-10-16 15:22:06

Norakomi (27 views)
2014-10-16 15:20:20

lcass (31 views)
2014-10-15 16:18:58

TehJavaDev (61 views)
2014-10-14 00:39:48

TehJavaDev (61 views)
2014-10-14 00:35:47

TehJavaDev (51 views)
2014-10-14 00:32:37

BurntPizza (69 views)
2014-10-11 23:24:42

BurntPizza (39 views)
2014-10-11 23:10:45

BurntPizza (81 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!