Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!

We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.

precious roy

Member Since 30 Oct 2007
Offline Last Active Feb 11 2013 10:39 AM

Posts I've Made

In Topic: XNA + Camera2D + PerPixelCollision

10 February 2013 - 10:50 AM

Hello Plutonium,


i haven't looked at your code but have you tried calculating the collusion before you draw everything zoomed in?


so after calculating you do the math for the zoom.

In Topic: (Fixed)(Beginner) How to use D3DXCreateTextureFromFile to load a texture

09 February 2013 - 05:06 PM

Ok after a long search i managed to find out how to fix the problem.


i ended up making it like this.


		if(tempMaterials[i].pTextureFilename != NULL)
			DWORD dwNum = MultiByteToWideChar (CP_ACP, 0, tempMaterials[i].pTextureFilename, -1, NULL, 0);
			wchar_t *pwText;
			pwText = new wchar_t[dwNum];

				delete []pwText;

			MultiByteToWideChar (CP_ACP, 0, tempMaterials[i].pTextureFilename, -1, pwText, dwNum );

			std::wstring TextureName = FileLocation;

			//if there is a texture to load, load it
			if(FAILED(D3DXCreateTextureFromFile(d3ddev, TextureName.c_str(), &texture[i])))
				texture[i] = NULL;    // if there is no texture, set the texture to NULL

			delete []pwText;
			texture[i] = NULL;




Thanks Chris!

In Topic: Basic networking question.

06 May 2010 - 03:06 AM

Original post by Anntor
Using just the database without precached player data in RAM would be a huge performance hit for any MMO, which needs to update player state a lot per second.

Well that actually sounds logical. Thanks for the info I think I will do some brainstorming on this. I will post my results. When I’m finished :}

In Topic: Basic networking question.

05 May 2010 - 10:35 PM

Original post by Anntor
Your main problem with 900 clients will be bandwith consumption with each clients downstream (if 1 client receives position updates from your 899 other clients all at the same time). To overcome that limit you need to do "interest management", which will send information only to clients in need of it.

So if I understand this correctly. A server like wow uses would do all the collision detection. And send client info only of clients in range of the player? That sounds interesting, that is probably harder to make but in the end a lot mote hack proof?

Thanks that really helped! Gives me a lot of ideas.

Now how would a server get client information… would he put all 900 clients in memory and that way presses their info, or would he directly save it in a database and if needed get the info from their?

In Topic: C++ text to int question

20 May 2009 - 10:24 PM

good piont.. but i have tried that but you cant convert a int to wstring withe


becouse it gives a string and not a wstring.