Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (789)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Blender exporter, and XML issues.  (Read 6487 times)
0 Members and 1 Guest are viewing this topic.
Offline philipw

Innocent Bystander

« Posted 2005-01-24 11:15:32 »


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).

Offline cep21

Junior Devvie

Java games rock!

« Reply #1 - Posted 2005-01-24 12:22:00 »

The multitexturing part was a new addition.  I'll look at it and see if I can add checks for those and commit as a bug fix.  Won't take long.
Offline ender

Junior Newbie

Java games rock!

« Reply #2 - Posted 2005-04-03 13:57:57 »

hi, philipw

I was looking for a blender to jme exporter when I found this post.

Is you exporter downlodable anyware?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline boessu

Junior Newbie

Java games rock!

« Reply #3 - Posted 2005-04-22 19:36:46 »

Blender exporter? Where is it? Can't wait for it...  Wink
Offline darko.romanov

Junior Newbie

dark[o] [in]side

« Reply #4 - Posted 2005-05-11 12:37:26 »

Well.... it's so sad to see this thread dead, after hundreds of query like "jme blender exporter" in google...  Embarrassed

I really hope to see some news here.
Offline Mojomonkey

Senior Devvie

ooh ooh eee eeee

« Reply #5 - Posted 2005-05-11 14:05:57 »

Don't send a man to do a monkey's work.
Offline darko.romanov

Junior Newbie

dark[o] [in]side

« Reply #6 - Posted 2005-05-12 05:56:17 »

that's exactly what I wanted to read  Smiley thanks man
Pages: [1]
  ignore  |  Print  

hadezbladez (2606 views)
2018-11-16 13:46:03

hadezbladez (932 views)
2018-11-16 13:41:33

hadezbladez (2560 views)
2018-11-16 13:35:35

hadezbladez (502 views)
2018-11-16 13:32:03

EgonOlsen (3679 views)
2018-06-10 19:43:48

EgonOlsen (4032 views)
2018-06-10 19:43:44

EgonOlsen (2443 views)
2018-06-10 19:43:20

DesertCoockie (3249 views)
2018-05-13 18:23:11

nelsongames (3295 views)
2018-04-24 18:15:36

nelsongames (4266 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!