Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Importing an .obj Model.  (Read 4880 times)

0 Members and 1 Guest are viewing this topic.

Asteroid

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Importing an .obj Model.
« on: August 08, 2012, 06:57:59 am »
I have been searching a lot for a Tutorial or at least an Example to Load .obj model. Haven't  found any. ._.
Is there any one who can give me a link to a good Tutorial for Loading .obj in SFML or just an example?

or someone who can Explain it to me a bit.  >.<

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Importing an .obj Model.
« Reply #1 on: August 08, 2012, 08:14:50 am »
What is ".obj"? If it's a 3D format, what's the relation with SFML?
Laurent Gomila - SFML developer

Asteroid

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: Importing an .obj Model.
« Reply #2 on: August 08, 2012, 08:21:04 am »
.obj is a 3d format. I'm looking for a tutorial which explains how to Load the .obj model and Render it into the SFML Window or any example.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Importing an .obj Model.
« Reply #3 on: August 08, 2012, 08:22:25 am »
SFML is not a 3D library. What you need is a .obj loader, and an OpenGL tutorial. Which you won't find here ;)
Laurent Gomila - SFML developer

Asteroid

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: Importing an .obj Model.
« Reply #4 on: August 08, 2012, 08:58:29 am »
So where can i find that .obj loader?
I have to make it myself?
And in the Tutorials there is no such thing which explains how to load a .obj model.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Importing an .obj Model.
« Reply #5 on: August 08, 2012, 09:08:05 am »
Quote
So where can i find that .obj loader?
I have to make it myself?
And in the Tutorials there is no such thing which explains how to load a .obj model.
You know Google, right? :P
http://lmgtfy.com/?q=obj+model+loader
http://lmgtfy.com/?q=obj+model+tutorial
Laurent Gomila - SFML developer

kurasu1415

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Email
Re: Importing an .obj Model.
« Reply #6 on: August 08, 2012, 08:42:46 pm »
As laurent said, this isn't really related to SFML. You will in fact have to write the loader yourself, but luckily .obj is one of the easiest formats to load. Just look at the file specification. A fully-features format to use is .fbx. There is an FBX loading API supplied for free from Autodesk. OBJs don't support skeletal animation, fbx does. Just a few pointers there ;)