Jump to content

  • Log In with Google      Sign In   
  • Create Account


hikarihe

Member Since 08 Feb 2013
Offline Last Active Mar 24 2013 10:40 PM

Posts I've Made

In Topic: Loading a model into OpenGL

20 March 2013 - 07:22 AM

or you can do it yourself if you want

 

find how the vertices and normals and texture coordinates are stored in the file produced when you export the model and use that data to maybe store it in a class or array or any data structure in your code and then use this structure to draw your model when you call glVertex / glNormal / glTexCoord

 

if you decide to do it I'll do what I can to help you through it

 

have fun ^_^


In Topic: Opengl Rotate from and to a certain point

19 March 2013 - 07:45 PM

can you explain more clearly? I could help you but I don't really understand what you need to do

 

what does your code look like now?

 

in most cases you can use glRotatef( [your rotation value], [x coordinate], [y coordinate], [z coordinate] ) before you draw 

 

> where xyz are the coordinates of the point to rotate around & rotation value is in degrees


In Topic: Confused on Big Oh

13 March 2013 - 10:18 AM

if something ( A ) is in the big Oh of something else ( B ), ignoring everything but the n's in each sides

 

B will eventually be larger than A ( from any n towards infinity ).

 

The main purpose of this is to check the efficiency of a piece of code

 

https://en.wikipedia.org/wiki/Time_complexity#Table_of_common_time_complexities

^ this is probably all you need to know

 

also Big Oh is for the worst case

 

basic example:

 

if you loop through all n elements in an array to find a specific element, worst case scenario you will go through all n elements, so we say the code will run in the big oh of n.


In Topic: We need help with moving forward on our game project (6 months in)

08 March 2013 - 12:11 PM

I'm willing to code for this in C if you are interested!


In Topic: Developing a simple 3d car game in OpenGL.

07 March 2013 - 08:23 AM

try this:

 

http://www.opengl-tutorial.org/

 

I suggest avoiding tutorials that use GLUT or too many external libraries. Also tutorials generally either teach you the basics, or something specific.

 

So for a 3D car game you will have to do a lot of work by yourself. have fun (^。^)b


PARTNERS