Any hello mesh?

Hi all

I am new to sdl,

i need to know if i have vertics in c++, how do i display them ?

i wonder if there any examble program shows how to create meshes, and display them?

i tried to read the documents and create one myself, but i failed,

so i come here for a little help, please?

thank you very much!

I think you have a bit of a wrong idea of what SDL is. SDL is a low level
cross-platform library, meaning it does the bare minimum to be consistent
across all supported platforms. If you are looking to load and display a
3d mesh, you’re going to want to look into some OpenGL functions. SDL can
be used to set up an OpenGL window, so you’ll want to perhaps do some
google searches on how to load meshes from a file into something OpenGL can
use. What sort of mesh do you have? If it’s just raw vertex data, it
should be fairly easy to load, but any of us here would need a lot more
information on what file format your mesh is in, and how you want to
display the vertices.

I hope that helps,
-AlexOn Sun, Oct 7, 2012 at 10:06 PM, elvissdl wrote:

**
Hi all

I am new to sdl,

i need to know if i have vertics in c++, how do i display them ?

i wonder if there any examble program shows how to create meshes, and
display them?

i tried to read the documents and create one myself, but i failed,

so i come here for a little help, please?

thank you very much!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

thank you very much!

I saw a c++ program that shows a 3D chess model, and the program is based on SDL.

this is where the misunderstanding begins that I thought SDL handles mesh.

after your comment, i search the program again,

but somehow there shows no sign of any opengl, like glut.h, glew.h…

I wonder if it uses other 3D library to render mesh.

finally i found that it adopts lib3DS to do this work.

so far every misunderstanding is cleared

thank you very much!