Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 2161 times)
0 Members and 1 Guest are viewing this topic.
Offline Gremolin

Senior Newbie

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


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.

Offline Genius Coder

Junior Devvie

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 Knight

Medals: 53

« 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  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (261 views)
2018-05-13 18:23:11

nelsongames (159 views)
2018-04-24 18:15:36

nelsongames (158 views)
2018-04-24 18:14:32

ivj94 (901 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (813 views)
2018-03-24 14:43:53

Solater (177 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!