Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
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  
  Loading .sbm 3D model  (Read 202 times)
0 Members and 1 Guest are viewing this topic.
Offline Gremolin

Senior Newbie





« Posted 2014-06-11 18:40:34 »

Hello.

I am following a tutorial from the OpenGL superbible 6 book and I am working through one that requires me to "load" data from an sbm model.

I have been struggling to find much info at all on sbm models, especially anything like a starting point for loading one into java opengl (LWJGL).

My question is then, would I be losing any data or be at a disadvantage if I converted the sbm model to obj (through blender) ?
Also if anyone knows any Java resources for loading an sbm model that would be an interesting read aswell.

Thanks
Offline Genius Coder

Junior Member


Medals: 1
Exp: 4 years



« Reply #1 - Posted 2014-06-11 18:52:06 »

If you are getting few replies as seen its probably because no one has knowledge on the subject. What i would do if i was you is experiment! Grin give it a try and see if any data is lost after conversion, if it works well done you will have learnt something new and other people with the same issue will thankyou for starting a thread on the subject Grin remember dont be afraid to experiement

I love making games...
Offline quew8

JGO Coder


Medals: 29



« Reply #2 - Posted 2014-06-11 18:57:42 »

I don't know anything about .smb (or is it .sbm ?) but I highly doubt that wavefront (.obj) will be insufficient. The wavefront format supports position, tex-coords, normal and material data (via the .mtl format). And more importantly for a beginner it is probably the simplest format you will find to parse 3D model info. The big thing it doesn't do is any animation stuff so if that's what you need then bad idea. But I think what it has is more than enough for a beginner to get their teeth into.

Edit: According to @trollwarrior1 (all credit there) it does vertex colour info as well. Did not know that.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline trollwarrior1
« Reply #3 - Posted 2014-06-11 19:00:15 »

Same what quew said..

obj is a very very simple format. It tells you vertex position, texture coordinates and color. It also tells you faces and face normals if I'm correct.

Decide on your own if obj is enough for you.
Offline Gremolin

Senior Newbie





« Reply #4 - Posted 2014-06-11 19:07:47 »

Thanks for the replies,

I've managed to load an obj model into LWJGL and they useful as you said that do have the tex-coords and normals. I guess I was wondering whether .sbm had any additional properties or better compressed which made it stand apart from obj.


I'll be sticking to obj then for now, I am more familiar with this format anyway.
I was surprised to see how little info there is on sbm though.

Offline trollwarrior1
« Reply #5 - Posted 2014-06-11 19:12:38 »

I would think that you have .sbm or .smb or whatever it's name is, on your computer. Is it binary format? Or is it xml / json? If its xml/json, you could try writing your own loader for it. If you know how xml/json works, its pretty easy to do.

If it is binary, the only viable thing I would suggest is to search for a converter that would convert .smb format to some kind of other common format.

Maybe .smb format is really old, just like the book you are reading? (Thats the logical conclusion, because if the book author isn't dumb, he wouldn't use some kind of format that is not popular when writing the book)
Pages: [1]
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

radar3301 (11 views)
2014-09-21 23:33:17

BurntPizza (29 views)
2014-09-21 02:42:18

BurntPizza (19 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (27 views)
2014-09-20 20:14:06

BurntPizza (30 views)
2014-09-19 03:14:18

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

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

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

Tekkerue (50 views)
2014-09-09 02:24:56
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!