Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (426)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
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 4574 times)
0 Members and 1 Guest are viewing this topic.
Offline philipw

Innocent Bystander





« Posted 2005-01-24 12: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.
Offline cep21

Junior Member




Java games rock!


« Reply #1 - Posted 2005-01-24 13: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 15:57:57 »

hi, philipw

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

Is you exporter downlodable anyware?

Thanks
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 21: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 14: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 Member




ooh ooh eee eeee


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

http://www.jmonkeyengine.com/jmeforum/viewtopic.php?t=1439

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 07: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.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (73 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (79 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (80 views)
2014-04-14 15:48:38

tom_mai78101 (104 views)
2014-04-10 04:04:31

BurntPizza (164 views)
2014-04-08 23:06:04

tom_mai78101 (260 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!