161 reputation
19
bio website chris.charabaruk.com
location Pickering, Canada
age 31
visits member for 3 years, 11 months
seen May 13 '13 at 13:13

Programmer, startup founder, game designer, internet troll, and more!


Jan
6
comment Texture2D.GetData fails to return pixel colour data
That was exactly it, and I feel like such an idiot for not checking Reflector earlier to discover this. Thanks, Andrew!
Jan
6
comment Texture2D.GetData fails to return pixel colour data
Actually Point is what I should be using, and I've switched to that. Still no difference; GetData() continues to toss.
Jan
6
comment Texture2D.GetData fails to return pixel colour data
Also, Type with a capital T is a lot different than a generic type. GetData() doesn't take a Type; it takes in an array of a generic type derived from ValueType (i.e. a struct), where that type matches the surface format's bit size -- as Color does for my texture images (32-bit, ARGB).
Jan
6
comment Texture2D.GetData fails to return pixel colour data
No custom classes here. Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Color. And I'm simply using Vector2 out of laziness (no IntVector2, although I suppose Short2 sould be okay); while the values are kept in floats, they're integer values and not large enough to round do different numbers. Changing how data's number of elements is calculated changes nothing.
Dec
15
comment Can you access Kinect motion sensing from XNA?
@Tim: Just wait for 4.1 or 5, they're probably working on Kinect support right now.
Dec
14
comment How do I get an XNA 4.0 game to run on other machines?
This is the first thing I thought of when I saw Microsoft.Xna.Input.Touch. If OP is developing with XNA 4.0 rtw but started the project with the beta, he's got some munging to do to update references.