3d model renderer: C + OpenGL + SDL

D5a9cae0d7a4e0fa986c3a820ac68b77
0
Kronos25 101 May 25, 2011 at 00:34

Hey guys,

I am starting development on a 3d model render that I hope to have up by the end of the summer. I want to write it in C using OpenGL and SDL libraries. My goal is to have a POSIX, cross platform application that will compile for both windows and *-nix.

The problem is… I’ve never done this before.

*Warning*
I am a junior in college, and have only been programming since junior year of high school so please don’t be too critical of my coding, it’s improving.
*Warning*

I started about a week ago, and have been working fairly hard. Reading tutorials (Surprisingly few on C + OpenGL + SDL), reading API’s, and learning C from scratch. Anywho, I have something… not much… but something, and I’d very much like it if an old guru could help me understand what it is that I have wrought.

the complete source right now can be found right here:

http://www.filefactory.com/file/cb7f950/n/model_render.zip.

Right now it has only been compiled in unix, but I have compiled earlier versions in MinGW. It doesn’t do anything special yet so don’t expect anything.

Other help would be appreciated as well, anything to help me on the right track. Perhaps you could post some links to helpful tutorials, or contribute some source, or revise mine.

2 Replies

Please log in or register to post a reply.

3c5be51fdeec526e1f232d6b68cc0954
0
Sol_HSA 119 May 25, 2011 at 09:10

@Kronos25

The problem is… I’ve never done this before.

When was that a problem? =)

I’ve written a “minimal” OpenGL 3d engine here: http://iki.fi/sol/ambrose3d/ along with all sources and blender exporter.

D5a9cae0d7a4e0fa986c3a820ac68b77
0
Kronos25 101 May 25, 2011 at 10:08

Thanks Sol_HSA,

that link is very helpful, even if it is written in c++. I’ll be sure to study some of the designs you used in the creation of my own engine.