Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  $100 USD for model loading  (Read 1607 times)
0 Members and 2 Guests are viewing this topic.
Offline bobjob

JGO Ninja
***

Posts: 646
Medals: 14


David Aaron Muhar


« on: 2011-08-12 16:58:37 »

I am currently working on a job, I need to load some model formats into a java object. And I dont have the time to read up on each file specification.

I need support for vrml, 3ds, stl.

Either develop a class to load the models into, something like (seperating group by texture):
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
class Model {
 Group groups[];
}
class Group {
 String texture;
 Face faces[]
}
class Face {
 Vector3f point[3];
 Vector3f normal[3];
 Vector2f textCoord[3];
}


Or alternatively, create a converter to export them as OBJ with support for UV texture co-ordinates.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5862
Medals: 255


Hand over your head.


« Reply #1 on: 2011-08-12 17:05:14 »

you might want to look at
   http://www.cs.princeton.edu/~min/meshconv/
to convert it all to .obj

disclaimer: I didn't use it, I googled Smiley

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline bobjob

JGO Ninja
***

Posts: 646
Medals: 14


David Aaron Muhar


« Reply #2 on: 2011-08-12 17:06:40 »

Thanks riven.

I tried this and Meshlab. Except they dont support UV co-ordinates.

I need UV support as Im trying to develop a realtime online model viewer for a client.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Games published by our own members! Go get 'em!
Offline Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5862
Medals: 255


Hand over your head.


« Reply #3 on: 2011-08-12 17:08:55 »

You might want to use Blender to convert the model for you.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline bobjob

JGO Ninja
***

Posts: 646
Medals: 14


David Aaron Muhar


« Reply #4 on: 2011-08-12 17:14:23 »

I was hoping to package the file support in the applet itself. Ill ask the client if he has access to the server, maybe installing a converter server side would be easyer.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline SpuTTer

Full Member
**

Posts: 246
Medals: 1


Lazy Middle Class Intellectual


« Reply #5 on: 2011-08-13 23:44:40 »

<JOKE>
I thought this thread was seeking a male model and that I was about to make an easy $100... Not this week. Good luck on your real endevour.
</JOKE>

Sacramento Volleyball
"Whitty phrase goes here."
Offline pitbuller

Sr. Member
**

Posts: 339
Medals: 9



« Reply #6 on: 2011-08-14 06:03:14 »

http://assimp.sourceforge.net/
Maybe that would help. Its support almoust all formats. You need to hava some wrapper tought.

Online ra4king

JGO Kernel
*****

Posts: 3131
Medals: 195


I'm the King!


« Reply #7 on: 2011-08-14 06:11:37 »

<JOKE>
I thought this thread was seeking a male model and that I was about to make an easy $100... Not this week. Good luck on your real endevour.
</JOKE>
BAHAHAHAHA!!

Offline bobjob

JGO Ninja
***

Posts: 646
Medals: 14


David Aaron Muhar


« Reply #8 on: 2011-08-15 14:56:30 »

http://assimp.sourceforge.net/
Maybe that would help. Its support almoust all formats. You need to hava some wrapper tought.
Looks like a really great 3D tool. Looking forward to the Java documentation.

I guess Im going to drop the job for the moment, its going to be too much work also implementing the 3D formats along with the model viewer program aswell.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline kappa
« League of Dukes »

JGO Kernel
*****

Posts: 2355
Medals: 59


★★★★★


« Reply #9 on: 2011-08-15 15:01:29 »

Do keep the Jagatoo tool in mind, it already supports a dozen or so 3d model formats, so might be an idea to plug any new formats that you create into it, thus also allowing you to use the existing formats that it supports (while at the same time helping other projects that might use it).
Games published by our own members! Go get 'em!
Offline Eli Delventhal
« League of Dukes »

JGO Kernel
*****

Posts: 3573
Medals: 44


Game Engineer


« Reply #10 on: 2011-08-16 15:00:37 »

OBJ is amazingly easy to understand and import. And it supports everything you want.

See my work:
OTC Software
<br />
Currently Working On:
Secret project...
Quote from: _Riven
I edit JGO in production, because I simply don't waste time writing bugs
Offline Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5862
Medals: 255


Hand over your head.


« Reply #11 on: 2011-08-16 15:01:38 »

OBJ is amazingly easy to understand and import. And it supports everything you want.

Or alternatively, create a converter to export them as OBJ with support for UV texture co-ordinates.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.097 seconds with 20 queries.