Epic failures in the game development field.

This blog covers funny/weird issues and bugs from games that happened during development.

Send your own contributions to igetyourfail at repi.se (can be anonymous if specified)

Friday, December 18, 2009

HLSL optimizer is beyond earthly logic


if b2

if b1

mul r0.xy, r0, c0.x

texld r4, r0, s6

if !b2

mad r0.xyw, r4.xyzz, c121.x, c121.y

mad r4.xyz, r3, r3.w, r0.xyww

endif

endif

else

// ...

endif

(Thanks Benoit)

Thursday, December 17, 2009

Tuesday, December 15, 2009

Monday, November 9, 2009

Why name variables when you can use padding?


if (data.lights[id]._padding[1] == NOSPECULAR)
{
...
}

(Thanks Tomasz)

Wednesday, October 28, 2009

Friday, October 23, 2009

Thursday, October 22, 2009

Wednesday, October 21, 2009

Saturday, October 3, 2009

functionality where being correctly

// emit a particle
// This should NOT be done here, it there should

(Thanks Pat)

Friday, August 28, 2009

Giving New Meaning to Destructors


LRUCacheModel::~LRUCacheModel()
{
for( LRUCacheEntry* entry; entry != NULL; )
{
LRUCacheEntry* next = entry->next;
delete entry;
entry = next;
}
}

(Thanks to Pat)

Monday, August 10, 2009

Forget normals, we have lovely hearts!

As in, who needs proper packing of normals into the g-buffer... when you can have those lovely heart shapes instead?



(Thanks Aras)

Tuesday, July 21, 2009

Black Hole Crossroads



(Thanks Assen)

Saturday, July 4, 2009

For those times when (int)(v + 0.5f) just isn't enough


inline int MyMath::floatToIntRounded(hkReal value)
{
const hkReal lowerWhole = floor(value);
const hkReal upperWhole = ceil(value);

if((value - lowerWhole) < (upperWhole - value))
{
return floatToInt(lowerWhole + MY_EPSILON);
}
else
{
return floatToInt(upperWhole + MY_EPSILON);
}
}


(Thanks Dan)

Friday, July 3, 2009

isNumber - Special optimized version


bool isNumber(const char number)
{
std::string tmp;

tmp += number;

return std::string::npos != findIgnoreCase("0123456789", tmp);
}

Saturday, May 30, 2009

Thursday, April 9, 2009

Beta graphics drivers at play



(Thanks Jonathan)

Monday, March 9, 2009

The Googly Eyed Trike


Googly Eyed Trike from Tom Spilman on Vimeo.

A happy accident while developing the simulation for the Be The Dinosaur traveling exhibit.

(Thanks Russell)

Wednesday, February 18, 2009

Clear build error messages - CHECK

[2009-02-18 14:24:29] Error : Game: "client" had an assert with message:  140 > 145

Abstract Texture Loading

Photobucket
(Thanks to Mike)

Wednesday, February 11, 2009

Uncaught Exception vs Render States, 1-0

Photobucket
(Thanks to Aras)

Sunday, February 8, 2009

Tuesday, February 3, 2009

Wednesday, January 28, 2009

Tuesday, January 27, 2009

Take Me To Your Leader

Photobucket
(Thanks to the Next team)

Saturday, January 24, 2009

Friday, January 23, 2009

The Error Party Shader

Photobucket
(Thanks to Michael & Emergent)

Sunday, January 18, 2009

Motion Blur Gone Wild

Photobucket
(Thanks to Michael & Emergent)

Friday, January 16, 2009

The Fish Bagel

Photobucket
(Thanks to Michael & Emergent)

Sunday, January 11, 2009

Saturday, January 10, 2009

Thursday, January 8, 2009

Reaching Out - The Tale of Failed Skinning

Photobucket

Related to: The Anatomy of a Rally spectator, The All-Seeing Eye and The Long Neck Syndrome - Part 1

When non-renderers modify your renderer

Dan was wondering why none of his post-processing steps aligned anymore, might be related to this that someone had added:

// round up to nearest divisible by 8

m_sceneWidth += ((m_sceneWidth&0x7) ^ 0x7) + 1;

m_sceneHeight += ((m_sceneHeight&0x7) ^ 0x7) + 1;

(1600,1200) became (1608,1208)

(Thanks to Dan)

Spectator Hooligans!

Photobucket

Related to: The Anatomy of a Rally spectator and Cows have a place in motorsports too

Blog Archive

Followers