[SDL &OGL] 3D objects

Hi, I’m a newbie, so sorry if the question is stupide, but how use an 3d
object makes with blender, 3dsmax or other soft in a game using sdl ?
thanks

You have to find some code that can read the format you want to use into
some memory structure that you can use in your OpenGL code. (Arrays of
floats is usually a good idea, as you can pass the arrays directly to the
glv() versions of the calls in some cases.)

Anyway, SDL doesn’t do anything like that, and it’s probably way out of
scope, as there’s nothing remotely similar to a standard way of doing
this. It’s a fairly high level thing, and depends very much on your
engine, so there’s probably not much point writing a “generic” object
loader except as a part of a 3D engine - and now we’re ten floors above
the level where SDL is supposed to work! :slight_smile:

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Wednesday 14 November 2001 12:06, blackshack wrote:

Hi, I’m a newbie, so sorry if the question is stupide, but how use an
3d object makes with blender, 3dsmax or other soft in a game using sdl
? thanks

Hello,

Well if you are using OpenGL (under SDL) then you have some resources
you can look at:

(1) Go to:

      http://www.gametutorials.com/Tutorials/Advanced/OpenGL_Pg3.htm

    And look under the heading "3DS File Loader".

(2) lib3ds.  Go to:

       http://lib3ds.sourceforge.net/

    (It's a free library that you can use with free or non-free
    programs.  It's under the LGPL.)

(3) Search for more info.  Go to Google.com, and search for
    "OpenGL 3ds" and also search for "OpenGL 3dsmax".  You can
    get there quick with:

       http://www.google.com/search?q=OpenGL+3ds

    and:

       http://www.google.com/search?hl=en&q=OpenGL+3dsmax

    There alot more info out there.

See ya

 Charles Iliya Krempeaux
 tnt @ linux.ca
 ckrempea @ alumni.sfu.caOn Wed, 2001-11-14 at 03:06, blackshack wrote:

Hi, I’m a newbie, so sorry if the question is stupide, but how use an 3d
object makes with blender, 3dsmax or other soft in a game using sdl ?
thanks


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

you can save object in Blender with ALT+w
then you must read it with your application, format of file is very simple
(just open it and look)
then you must draw it with OpenGLOn Wed, Nov 14, 2001 at 12:06:41PM +0100, blackshack wrote:

Hi, I’m a newbie, so sorry if the question is stupide, but how use an 3d
object makes with blender, 3dsmax or other soft in a game using sdl ?


Well it’s a cold world And I’m in the middle
Caught in the in-between I don’t belong here
So I’m writing to you It’s wrong here "Letters From Earth"
Where I’m sending you some Letters from Earth - Ronnie James Dio