Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 29 May 2013
Offline Last Active Apr 23 2015 08:53 PM

Topics I've Started

Quake 3 and John Carmack

14 April 2015 - 04:10 PM

Hi guys,


Not sure if this is the right forum, but here it goes.


I remember in the late 90's when Quake 3 came out, it was incredibly popular. The graphics, game play, intelligent bots, great levels and multiplayer all made for a fantastic game, and I sunk countless hours getting railed to death by superior players on Q3DM17.


Now that I have a little programming experience behind me, it appears monumentally difficult to create a game like Quake 3, especially for a single programmer.


Would it be a fair analysis to say that John Carmack was/is one of the best game programmers?







inifinite mass and a jitter problem

11 April 2015 - 09:50 AM

Hi guys,


I have a small issue with impulse based physics. After loading a 2d array of inifinite mass "bricks" (32x32) into a game level and dropping a character with finite mass on top of the bricks everything works fine until the character spans two bricks. That's when the jitter starts.


Code is pairwise AABB vs AABB testing like so

for(unsigned int i=0;i<entities.size();i++){
		for(unsigned int j=i+1;j<entities.size();j++){
			if(entities[i]->rigid->i_mass==0.0f && entities[j]->rigid->i_mass==0.0f)
			//check collisions here

I don't quite understand what's going on here. All the collision and physics works fine until a third finite mass entity is in contact with two infinate mass entities, whether the two inifinate mass entities are in contact or not. 


I did not test this on other shapes, just AABBs.


Could this have something to do with floating point errors perhaps?





c++ Instantiating a class in another class

30 March 2015 - 01:40 AM

Hi guys,


A few questions about constructors in c++. Given two classes, one called "UserInput" and the other "TextField"

the situation looks like this.

class UserInput{
	UserInput(int len):
	void handleInput(){
		//do stuff here
	int str_len;

class TextField(){
		void handleInput(){
		UserInput user_input;

When later in the program, I instatiate an instance of TextField and call the function




the SDL_EnableUNICODE(SDL_ENABLE); is not active.


I suspect, if I make user_input a pointer, and allocate it onto the heap, this problem will go away but I don't understand the nuts and bolts.


Could someone explain to me why this is so?









VS2010: fatal error C1083: Cannot open source file

27 March 2015 - 12:42 AM

Hi guys,


A quick question about organizing files in visual studio 2010. Up to this point, I would make a game with the following path:


"Visual Studio 2010 -> Projects -> MyGame -> MyGame"


Inside the 2nd MyGame folder, I would dump .dll, and all my .h and .cpp files (among others). However, as my projects grow in size this is becoming untennable.


I need to start making folders just for AI, physics etc inside the 2nd MyGame folder, and here is where my trouble starts.


If I do the following:


"Visual Studio 2010 -> Projects -> MyGame -> MyGame->physics" and I put the two files


phys.h and phys.cpp inside the "physics" folder I will let phys.cpp find the header file thusly


"include physics/phys.h".


However, since both phys.h and phys.cpp are now in a new folder called ".../MyGame/physics" visual studio 2010 gives me the following error


"1>c1xx : fatal error C1083: Cannot open source file: 'phys.cpp': No such file or directory"


I don't know how tell VS2010 where to look for the phys.cpp file. Could someone please be of assitance here?