Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 23 Nov 2002
Offline Last Active Jan 01 2015 11:58 AM

Topics I've Started

[Unity][Prototype] Cleanse: My kill as many as possible in 60 seconds game

01 January 2015 - 01:00 AM



I created this prototype after following a few Unity tutorials.  You are a giant yellow cylinder with a giant laser.  There are blue boxes running around, and you must cleanse this world of the vermin!  You have 60 seconds to kill as many of the blue boxes as you can. Please read through the bullet points below the game. It explains the controls and mechanics of the game.


Let me know what scores you get.  The highest score I've gotten is 24.





Performance problems at ~1,000,000 triangles. Am I doing something wrong?

01 January 2014 - 03:06 AM



I've hit a snag with rendering triangles.  At approximately 1,000,000 triangles, the frame rate drops to 30-40 fps.  By the time I hit 5,000,000 triangles, I'm down to 10 fps.  My CPU is an i5-3570K @ 3.4ghz and my video card is a ZOTAC GeForce GTX 660 w/ 2GB of RAM.  Should I experience an fps drop at one million triangles?  Or am I doing something wrong?


My lighting model is a simple phong shading with only diffuse lighting.  I haven't added ambient or specular lighting yet.  There is only one point light source.


I've also enabled the following settings:

glEnable(GL_CULL_FACE);     // Cull back facing polygons

Thank you for your help.



Why are vertices represented as 4f, but normals and light positions as 3f?

17 December 2013 - 11:11 PM

I'm using GLSL specifically and attempting to reproduce the diffuse side of phone shading.  I've noticed in all example code I've seen, positions are represented as a vector of size 4, but normals and light positions are stored in vec3.  Why do positions need the fourth value but normals and lights do not?


Thank you for your help.



Advice for turn based game, web and mobile

03 April 2011 - 01:16 AM

I'm attempting to build a turn based game that can be played on both WP7 and from a website (Silverlight), and am having thinking of ways to architect the server. The game will be played over several weeks, and each player will have a day or two to do their turn, which could take as little as a few seconds, to several minutes depending on the player.

Initially, I was considering creating a web service for the client to call. The difficulty with this is that there's no way to notify players when something has happened, so clients would have to poll regularly, possibly every few minutes. Because of this, I'm considering creating a server that communicates with the clients using TCP. My concern is for mobile devices. If I switched to sockets, how would it fare? I assume mobile device connections drop often due to inconsistent reception.

Is there a better way to do this?



Need help with joint transformation

20 January 2007 - 12:25 PM

I have the following recursive function to set the global transformation matrix for each joint. I know I've named a class bone, but more accurately, it should be named joint.
public void SetGlobalMatrix(Matrix parent)
    Matrix quat = Matrix.CreateFromQuaternion(m_orientation);
    m_globalTransformation = parent * m_translation;
    Matrix temp = m_globalTransformation * quat;
    foreach(Bone bone in m_children)
If I tell it to rotate a joint, it rotates, but the children do not rotate as well. Their position is correct, but they do not seem to inherit the orientation change. Am I misunderstanding something? I thought that the rotation should continue down since I am passing the same matrix down. Thanks. -Nick