• Create Account

# hikarihe

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

### #5042731Confused on Big Oh

Posted by on 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.

### #5040388Developing a simple 3d car game in OpenGL.

Posted by on 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 (^。^)ｂ

### #5039173Article Inspiration

Posted by on 04 March 2013 - 03:13 PM

3D

• 3D collision detection
• 3D camera styles
• 3D math / physics

graphics

• height maps
• particle systems
• sky box

### #5038393Do I learn the skills I need then make the game, or do I work on the game, an...

Posted by on 02 March 2013 - 06:07 AM

It all makes perfect sense. Well at least I can be clear that failure at this point is my own fault.

That said, I use C# and XNA so any tutorials related to that would be appreciated.

XNA Game Development by Example

by Packt

There is a 2D and a 3D book

good luck!

### #5038386Do I learn the skills I need then make the game, or do I work on the game, an...

Posted by on 02 March 2013 - 05:47 AM

if you understand this concept (wikipedia)

```while( user doesn't exit )
check for user input
run AI
move enemies
resolve collisions
draw graphics
play sounds
end while
```

I do, actually.

In fact, when I'm brainstorming for design ideas, I'm also thinking of how they function in this format.

That said, what is my problem then? Why am I not out there just doing stuff?

You're letting the issue of "I don't know" get in the way of "learning how to know". In other words, "just do it". There are so many tutorials out on the web. Just pick one --I normally suggest Lazy Foo's SDL tutorial-- and work your way through it. Don't be scared to jump in. Remember the pool has a 3ft area and an 8ft area. You don't have to jump in the 8ft area to learn how to swim

this. do tutorials until you don't need them ^^;

### #5038365Do I learn the skills I need then make the game, or do I work on the game, an...

Posted by on 02 March 2013 - 04:55 AM

if you understand this concept (wikipedia)

```while( user doesn't exit )
check for user input
run AI
move enemies
resolve collisions
draw graphics
play sounds
end while
```

### #5037697[SOLVED] SDL can't find image.

Posted by on 28 February 2013 - 01:12 PM

```// set program icon
```

try this to see if it is an image problem or a screen problem

```// if screen didn't load
if ( screen == NULL )
{

// set caption to "screen not working"
SDL_WM_SetCaption( "screen not working", NULL );
}
```

also try this to check if the screen loads. you can do the same for the hello SDL_Surface

### #5036664Any point Learning XNA?

Posted by on 26 February 2013 - 05:33 AM

i think XNA is the best start if you want to learn to make video games. it's very simple and makes you understand the structure of game programs.

then you can use that knowledge to move on to your favorite language/library.

this book is very helpful: (for 3D)

http://www.packtpub.com/xna-4-3d-game-development-example-beginners-guide/

good luck!

EDIT: forget the link. have the name ^^

XNA 4 3D Game Development by Example: Beginner's Guide

### #5032687GLUT installation

Posted by on 15 February 2013 - 09:36 AM

as long as you include OpenGL32.lib in linker > additional dependencies, visual studio will find it

I don't know about the errors though sorry ^ ^

if you ever want to try an alternative to GLUT I recommend using SDL. http://lazyfoo.net/SDL_tutorials/index.php this site has good tutorials and easy instructions to set it up

### #5032539opengl and c++

Posted by on 15 February 2013 - 02:59 AM

I'm not an expert but this is what works for me:

to use OpenGL you need to #include <GL\GL.h> and <GL\GLU.h>

and also you need to link to OpenGL32.lib and glu32.lib (in visual studio 2012, Project > Properties > Configuration Properties > Linker > Input > Additional Dependencies )

GL and GLU are part of OpenGL (correct me if I'm wrong!  ), GLUT is an external library so it's your choice if you want to use it. but if you use OpenGL you will need a library to set up your windows (so that you can use OpenGL to draw in them ) GLUT is an example of this.

the most useful book I came across is OpenGL Programming Guide.

PS. if you are a student you can use www.dreamspark.com to get Visual Studio for free

good luck ^^

PARTNERS