Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 07 Feb 2013
Offline Last Active Mar 28 2013 10:32 AM

Posts I've Made

In Topic: Chess and OpenGL

13 March 2013 - 03:53 AM

Question, how new are you to OpenGL?  I have the feeling you're getting a bit ahead of yourself; trying to take on a project that may be a bit too large for your current skill level.  Sorry if I'm wrong, but that's sorta the vibe I'm getting.


Quite new actually... I just started learning a short while ago :)

In Topic: sdl error

18 February 2013 - 09:03 AM

In addition to all of the above points, the standard and most "cross-platform" way to include SDL is:


#include "SDL.h"


Rather than:


#include <SDL/SDL.h>

thanks a lot. that seems to have been the issue. Thanks againsmile.png

In Topic: importing .obj file into OpenGL

17 February 2013 - 01:30 PM


I am trying to import chess pieces from 3dsmax to opengl.

However, I am quite new to opengl and it has been a big challenge so far.

Any help will be appreciated?

In Topic: importing .obj file into OpenGL

17 February 2013 - 12:12 PM

thanks ^^ it works. my mistake. should I delete the post?

hi, how did you fix it pls? I have a similar issue

In Topic: 5x5x5 Chessboard in OpenGL

11 February 2013 - 06:42 PM

OBJ file format I find, is the easiest type of model file to parse. However you will have to make the reader yourself since there are no standard ones. This type of parsing can be difficult in C++ but there are lots of examples. Many of which you can pull straight down from the internet and use out of the box.


Remember to make sure that you include the vertex normal's when you export the file to obj format. I don't know about 3ds Max, but I know that in blender this is not done by default. You will need the vertex normal's for lighting in opengl.


If you were looking for a video tutorial on loading OBJ files in C++, here is a good one:

All of the tutorials in this series will be quite relevant for you as you are just getting started with opengl.


As for making the 3D chess board, I would first think about how you want each level to be viewed, for example:

- Do you want to view one level at a time ?

- Do you want a free camera, and you rotate around the stack of levels freely with the mouse, each level fading out so you can see the one below it ?

- Maybe you want to display each level in a different area of the screen


Be sure to experiment with different looks and feels to find the one that you like the most.

Thanks for the tutorial link. Yes, I will be parsing the .obj format.

As for the 3D chess board, pls check out my code so far and maybe point out where I'm missing it?


Thank you!