Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. 3D item to code

3D item to code

Scheduled Pinned Locked Moved Graphics
graphicsgame-devquestion
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lampros Giampouras
    wrote on last edited by
    #1

    Is there a way to import an object created with a 3d-modeling program (ex. Google Sketchup) to an OpenGL application and use it? If yes what file type must it be (.obj?) and how? I'm new at this :)

    E 1 Reply Last reply
    0
    • L Lampros Giampouras

      Is there a way to import an object created with a 3d-modeling program (ex. Google Sketchup) to an OpenGL application and use it? If yes what file type must it be (.obj?) and how? I'm new at this :)

      E Offline
      E Offline
      El Corazon
      wrote on last edited by
      #2

      Lampros G wrote:

      Is there a way to import an object created with a 3d-modeling program (ex. Google Sketchup) to an OpenGL application and use it?

      In most cases people try not to reinvent the wheel, there are numerous tutorials on how to write a .obj loader for OpenGL to display it, even a couple that included material and surface normals. But then you get into rewriting what others have done for model loading for years. When you get to this point, I would recommend (you don't have to if you don't want to), switch to your openGL code on a higher level library/framework. This might be SDL, Open Scene Graph, Delta3D (highly recommended). Just as an example, Delta3D is based on OpenSceneGraph which is based on OpenGL. It loads: 3dc ac3d directx dw flt geo Inventor ive lib3ds logo lwo lws md2 obj osg pfb

      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups