Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

OpenGL obj renderer

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
602 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 6, 2011

This is an early state of my OpenGL 2.2 loader/parser/renderer for .obj files. It uses VBO's for the modeldata, and DLs for material infos. It supports multiple materials per model, lights and reflection maps. I need to add support for transparancy and attaching models to each other and animating them. When that is done, I'll begin writing the game. Implemented in C using SDL and OpenGL, captured with glc. IDE: CodeBloack, OS: Linux, Also runs on Windows.
It runs 100% smooth, and with 0% cpu load when rendering a 1.4 MiB model. For some reason the capture is kind of laggy though..

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (DusteDdekay)

  • Veree nais.

    I have an OBJ loader on an engine I'm working on, and I have decided to ween myself of the old and into the new. (built in uniforms, you will be missed).

    They way it is now is containers for normals, vertex and uvs. And indices sorted in groups -> faces.

    Offcourse, the buffer messes up the indices i heard, so I'm currently reading about making a second VBO for the indices. (Moving from 2.0 to =>3.1 is confusing but well due its time)

    How did you handle the datastructures?

  • @slitor I'm storing each object in a VBO as interlaced triangles

  • @DusteDdekay Is that, objects as groups/sections of a model or do you mean the entire mesh?

  • @slitor An entire obj file, my "engine" is very simple, and so, to make an "object" with movable parts, multiple .obj files would have to be loaded and attached together via the scene graph. To avoid myself loosing my breath, I chose to see objects with the same amount of simplicity as sprites, just in 3D, for now until I become better.

  • Very nice! Makes my object loader look like crap :-P

  • @jamwaffles Don't worry about that, 99% of the stuff I see around makes this look like it was done by a child in kindergarden with downs.. While sleep-typing.. In 30 minutes.. But well, coding is food for your soul, and about personal development and discovery, don't ever compare yourself with others, it'll only make you feel bad.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Neat! Is the source available somewhere?

  • Mmmmm delicious OpenGL.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more