Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Open source Java blender3d file format reader (vertex extractor e.g. for JOGL)  (Read 2869 times)
0 Members and 1 Guest are viewing this topic.
Offline erana

Junior Member


Medals: 1
Projects: 3



« Posted 2012-12-03 02:12:56 »

To load the vertices of a .blend file from one scene for use in JOGL (you don't need jogl to build it though) I wrote this Java library, see http://code.google.com/p/libjavablender/downloads/list
for source code. You just have to contruct triangles with 3 vertices at a time in the generated list to display your .blend model. Enjoy!
Offline erana

Junior Member


Medals: 1
Projects: 3



« Reply #1 - Posted 2012-12-03 06:10:40 »

Colors are in and some bugfixes. The lib is more or less finished. Needs a fast machine. There's a main method commented out for your convenience.
Offline gouessej
« Reply #2 - Posted 2012-12-04 15:48:23 »

Hi

It could be useful to import Blender models in various scengraphs, thanks. Are there some parts of a Blender file you don't handle yet?

Edit.: Please can you use the versioning system so that I can really see the changes in the source code?

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

Junior Member


Medals: 1
Projects: 3



« Reply #3 - Posted 2012-12-04 17:21:41 »

Hi

It could be useful to import Blender models in various scengraphs, thanks. Are there some parts of a Blender file you don't handle yet?

Yes, there's header parsing and file-block parsing but no SDNA, no scene functionality yet. Do note that the first versions were written out of the blue, I misinterpreted some things.

Edit.: Please can you use the versioning system so that I can really see the changes in the source code?

I've put it in the git repo : git clone https://code.google.com/p/libjavablender/ with better parsing than before.
Offline gouessej
« Reply #4 - Posted 2012-12-04 19:11:02 »

Thanks it's better now. On which version of Blender do you perform your test?

It would be fine to be able to use your source code to convert MD3 models into Blender models and then into Collada (by using Blender build-in Collada exporter). I cannot edit some of my models because old versions (< 2.50) of Blender have some major limitations when exporting models to Collada and lots of "old" importers and exporters are quite broken and unmaintained since its version 2.50.

Offline erana

Junior Member


Medals: 1
Projects: 3



« Reply #5 - Posted 2012-12-05 09:39:08 »

Thanks it's better now. On which version of Blender do you perform your test?

It would be fine to be able to use your source code to convert MD3 models into Blender models and then into Collada (by using Blender build-in Collada exporter). I cannot edit some of my models because old versions (< 2.50) of Blender have some major limitations when exporting models to Collada and lots of "old" importers and exporters are quite broken and unmaintained since its version 2.50.
After it works, I'll try to speed it up e.g. the String filebuffer->char[], I'm using the monkeys.blend file, version 2.61.
Offline erana

Junior Member


Medals: 1
Projects: 3



« Reply #6 - Posted 2012-12-05 14:39:30 »

The code is more or less usable to extract all vgroup[XXX...] vertex arrays except for 1 bug and except for scene parsing. Here is the latest tarball : http://code.google.com/p/libjavablender/downloads/list

You can run the commented main method with 'java javablender/Blender monkeys.blend'.

HTH
Offline erana

Junior Member


Medals: 1
Projects: 3



« Reply #7 - Posted 2012-12-06 23:20:53 »

Take the latest tarball here or use the git repo :
http://code.google.com/p/libjavablender/downloads/list

It should be more or less usable except for 1 bug. Can be sped up. Enjoy.
Offline erana

Junior Member


Medals: 1
Projects: 3



« Reply #8 - Posted 2012-12-06 23:40:02 »

There's a BoundingBox class which extends gateways (doors) and bullets. You have collision checks for bullets with enemies, bullets remove themselves offscreen, then you have a level map with falling off a list of boundingboxes with easy collision detection, no jumping (just make a list of coords to implement it if you like) and then have a look at StateImageLibrary.java which gets an image from a list of images one after the other placed in that very same list at level startup time. There's midi music support and everything is GPLed. Oh, and the Metroid dude images have been paid for for this game.

Here's the latest tarballs : http://code.google.com/p/asteris/downloads/list

Enjoy.
Offline HeroesGraveDev

JGO Kernel


Medals: 250
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #9 - Posted 2012-12-07 02:43:18 »

 Huh

Please explain properly

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

Junior Member


Medals: 1
Projects: 3



« Reply #10 - Posted 2012-12-07 12:43:09 »

Huh

Please explain properly

The source code is very easy to understand is what I mean. Read it and you can make yourself a platform shooter game.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 798
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #11 - Posted 2012-12-10 01:39:32 »

Merged three topics... Pointing

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
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.

Dwinin (23 views)
2014-09-12 09:08:26

Norakomi (56 views)
2014-09-10 13:57:51

TehJavaDev (69 views)
2014-09-10 06:39:09

Tekkerue (35 views)
2014-09-09 02:24:56

mitcheeb (56 views)
2014-09-08 06:06:29

BurntPizza (40 views)
2014-09-07 01:13:42

Longarmx (26 views)
2014-09-07 01:12:14

Longarmx (33 views)
2014-09-07 01:11:22

Longarmx (31 views)
2014-09-07 01:10:19

mitcheeb (39 views)
2014-09-04 23:08:59
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!