Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
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 5071 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  
You cannot reply to this message, because it is very, very old.

Dwinin (71 views)
2015-11-07 13:29:08

Rems19 (80 views)
2015-10-31 01:36:56

Rems19 (73 views)
2015-10-31 01:32:37

williamwoles (106 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (134 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (155 views)
2015-10-11 13:26:18

BurntPizza (171 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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!