load 3d models into openGL

  • Follow


Dear all,
I'm a newbie in openGL, I need to load my 3D-scanned face model into
openGL to generate a picture. Is there any simple loader that can meet
my needs? It's ok for me to use any format of files :3ds, stl,obj,
etc...

Thanks in advance.

0
Reply cloudet (61) 4/11/2006 12:17:23 PM

I've googled and found 3DS Loader & Viewer from GarageGames by Matthew
Fairfax,
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=506

But I juz can't execute it. Can someone try it for me?
Thanks again.

0
Reply cloudet 4/11/2006 12:25:41 PM


you will get your solution on morrowland.com. if you still face any
problem then please mail me.

0
Reply raghunandan_1081 4/11/2006 2:11:07 PM

On 2006-04-11, cloudet@gmail.com <cloudet@gmail.com> wrote:
>
> I've googled and found 3DS Loader & Viewer from GarageGames by Matthew
> Fairfax,
> http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=506
>
> But I juz can't execute it. Can someone try it for me?
> Thanks again.
>

If you want to load 3ds files, I would suggest taking a look at lib3ds.
It's very easy to use and quite robust. Try googling it, it should be
somewhere in sourceforge.


-- 
John Tsiombikas (Nuclear / Mindlapse)
nuclear@siggraph.org
http://nuclear.demoscene.gr/
0
Reply John 4/13/2006 11:53:47 AM

A 3D tool 'Obj2GL' converts 3D model into pure OpenGL code with all textures that directly can be incorporated in to your OpenGL project. 'Obj2GL' is downloadable from www.easterndeltasoftware.com. Once you got the pure OpenGl code then you can export it to any platform android/iphone/mac/java etc. with very little or no modifications.
0
Reply mihbd1207 (3) 8/9/2012 3:47:23 PM

There are some routines in C++ that can load 3Ds file into openGL. Just search with key word '3Ds loader' you will find such routines. But they are enough for learning purposes. You can also use a 3D tool 'Obj2GL' that converts 3D model into pure OpenGL code including textures. It is downloadable from www.easterndeltasoftware.com. Obj2GL is mainly for serious game developers.
0
Reply mihbd1207 (3) 8/10/2012 4:40:49 AM

On Thu, 09 Aug 2012 10:47:25 -0500
mihbd1207 <mih@agni.com> wrote:

> A 3D tool 'Obj2GL' converts 3D model into pure OpenGL code with all
> textures that directly can be incorporated in to your OpenGL project.

Exporting models into OpenGL code is a bad practice and leads only to
problems. A model exported into OpenGL code is not available to the
rest of the program and hence can not be used for simulation and other
computations involving the geometry.

Always load your model data from a file or a resource embedded into the
executable, but never hardcode it.

Tools like the one advertised here are counterproductive and a waste of
time.


Wolfgang

0
Reply wdraxinger (404) 8/14/2012 11:03:21 PM

On 8/14/2012 6:03 PM, Wolfgang Draxinger wrote:
> On Thu, 09 Aug 2012 10:47:25 -0500
> mihbd1207 <mih@agni.com> wrote:
>
>> A 3D tool 'Obj2GL' converts 3D model into pure OpenGL code with all
>> textures that directly can be incorporated in to your OpenGL project.
>
> Exporting models into OpenGL code is a bad practice and leads only to
> problems. A model exported into OpenGL code is not available to the
> rest of the program and hence can not be used for simulation and other
> computations involving the geometry.
>

yes, and even many rendering tasks like, say, drawing shadow volumes, 
LOD, drawing a simplified bounding volume for occlusion queries, ...


> Always load your model data from a file or a resource embedded into the
> executable, but never hardcode it.
>
> Tools like the one advertised here are counterproductive and a waste of
> time.
>

generally agreed.

even in cases where geometry is generated procedurally, IMO it tends to 
be much more effective to flatten it to a mesh of some sort, and then 
use this mesh for any rendering tasks or similar, ...


0
Reply cr88192355 (1754) 8/20/2012 8:06:33 PM

The OpenGL is a low level graphics programming language that does not depend on external resources for rendering or texturing in simulation.
When model is exported to the OpenGL code the simulation and rendering processes speeds up and it allows graphics fx too. The individual triangles can be manipulated for extra graphics fx. Whether the model loaded from file or OpenGL code it goes to memory. When model loads from file it involves an intermediate process that shares the CPU clock tics. On the other hand embedding model into core OpenGL reduces programming complexity keeping all functions open and efficient.

--
0
Reply mihbd1207 (3) 8/21/2012 7:44:28 PM

On Thursday, 9 August 2012 17:47:25 UTC+2, mihbd1207  wrote:
> A 3D tool 'Obj2GL' converts 3D model into pure OpenGL code with all textu=
res that directly can be incorporated in to your OpenGL project. 'Obj2GL' i=
s downloadable from www.easterndeltasoftware.com. Once you got the pure Ope=
nGl code then you can export it to any platform android/iphone/mac/java etc=
.. with very little or no modifications.

The question is over 6 years old, do you seriously believe the OP still car=
es?
0
Reply lars.pensjo (17) 9/10/2012 11:20:00 AM

9 Replies
306 Views

(page loaded in 0.261 seconds)

Similiar Articles:













7/29/2012 8:30:29 PM


Reply: