• What are you working on? v16
    5,004 replies, posted
[QUOTE=Darwin226;28603832]What are you having trouble with?[/QUOTE] It's really just the idea, concept and implementation that I'm having trouble with.. :saddowns: I just wish I could find an example in code, instead of mathematical equations.
[url]http://www.opentk.com/files/doc/_matrix4_8cs_source.html[/url] Check out the create methods and the multiplication method.
[QUOTE=Irtimid;28604319]I've got distance-based mouse scrolling working now, trying to work out an annoying bug that's making everything flicker when the camera moves. It alternates between this: [img_thumb]http://tallcorporation.co.cc/projects/psim/problem1.png[/img_thumb] and this: [img_thumb]http://tallcorporation.co.cc/projects/psim/problem2.png[/img_thumb][/QUOTE] Make sure your tiles' positions don't have any decimals.
Maby it's the texture coordinates, I had the same problem. Use some kind of offset like 0.01 for every coordinate.
[QUOTE=Darwin226;28604714]http://www.opentk.com/files/doc/_matrix4_8cs_source.html Check out the create methods and the multiplication method.[/QUOTE] Thanks, I'm one step closer to understanding this now. See, this is what I mean, I don't get the damn mathematical representations with your psis and betas and shit, but this actually made me understand how the hell you multiply the bastards [cpp] 00957 left.M11 * right.M11 + left.M12 * right.M21 + left.M13 * right.M31 + left.M14 * right.M41, 00958 left.M11 * right.M12 + left.M12 * right.M22 + left.M13 * right.M32 + left.M14 * right.M42, 00959 left.M11 * right.M13 + left.M12 * right.M23 + left.M13 * right.M33 + left.M14 * right.M43, 00960 left.M11 * right.M14 + left.M12 * right.M24 + left.M13 * right.M34 + left.M14 * right.M44, 00961 left.M21 * right.M11 + left.M22 * right.M21 + left.M23 * right.M31 + left.M24 * right.M41, 00962 left.M21 * right.M12 + left.M22 * right.M22 + left.M23 * right.M32 + left.M24 * right.M42, 00963 left.M21 * right.M13 + left.M22 * right.M23 + left.M23 * right.M33 + left.M24 * right.M43, 00964 left.M21 * right.M14 + left.M22 * right.M24 + left.M23 * right.M34 + left.M24 * right.M44, 00965 left.M31 * right.M11 + left.M32 * right.M21 + left.M33 * right.M31 + left.M34 * right.M41, 00966 left.M31 * right.M12 + left.M32 * right.M22 + left.M33 * right.M32 + left.M34 * right.M42, 00967 left.M31 * right.M13 + left.M32 * right.M23 + left.M33 * right.M33 + left.M34 * right.M43, 00968 left.M31 * right.M14 + left.M32 * right.M24 + left.M33 * right.M34 + left.M34 * right.M44, 00969 left.M41 * right.M11 + left.M42 * right.M21 + left.M43 * right.M31 + left.M44 * right.M41, 00970 left.M41 * right.M12 + left.M42 * right.M22 + left.M43 * right.M32 + left.M44 * right.M42, 00971 left.M41 * right.M13 + left.M42 * right.M23 + left.M43 * right.M33 + left.M44 * right.M43, 00972 left.M41 * right.M14 + left.M42 * right.M24 + left.M43 * right.M34 + left.M44 * right.M44); [/cpp]
[QUOTE=AzLaN;28604756]Make sure your tiles' positions don't have any decimals.[/QUOTE] Thanks, that fixed it. EDIT: [QUOTE=likesoursugar;28605215]Maby it's the texture coordinates, I had the same problem. Use some kind of offset like 0.01 for every coordinate.[/QUOTE] This seems to work too, it draws fine whenever I make it ignore the topmost row of pixels in the image.
[QUOTE=Dr Magnusson;28605387]Thanks, I'm one step closer to understanding this now. See, this is what I mean, I don't get the damn mathematical representations with your psis and betas and shit, but this actually made me understand how the hell you multiply the bastards[/QUOTE] Here is a visual explanation I made a while ago for 2D transformation matrices: [img]http://gyazo.com/22700c9fb1ac2432102116bdd679a6b4.png[/img]
[csharp]int response; bool success = false; while (!success) { success=true; string respstr = Console.ReadLine(); try {response = Convert.ToInt32(respstr);} catch (FormatException) { success=false; Console.Write("Not a number ... "); } if (success) { if ((response > maxResponses.Length) || (response < 0)) { success=false; Console.Write("Out of range ... ");} } } if (response == 5) { Console.WriteLine("Correct."); }[/csharp] The compiler complains that the 'if response is 5' line is a use of an unassigned variable. Tell me, would it ever reach that line without being assigned?
set response to something initially, even if it's -1 or something that normally wouldn't make sense in the parsing loop.
Added some enemy collision detection and some sound [b]DONT WATCH WITH VOLUME ON MAX[/b] [media]http://www.youtube.com/watch?v=_U0KcHgTJp0[/media] Also now the zombies will "tell" other close-by zombies that you are there so that they all folow you not just ones that see you
[QUOTE=Hypershadsy;28606651][csharp]int response; bool success = false; while (!success) { success=true; string respstr = Console.ReadLine(); try {response = Convert.ToInt32(respstr);} catch (FormatException) { success=false; Console.Write("Not a number ... "); } if (success) { if ((response > maxResponses.Length) || (response < 0)) { success=false; Console.Write("Out of range ... ");} } } if (response == 5) { Console.WriteLine("Correct."); }[/csharp] The compiler complains that the 'if response is 5' line is a use of an unassigned variable. Tell me, would it ever reach that line without being assigned?[/QUOTE] It's not smart enough to figure that out. Just assign response a starting value to shut it up :v: [editline]14th March 2011[/editline] [QUOTE=robmaister12;28606854]set response to something initially, even if it's -1 or something that normally wouldn't make sense in the parsing loop.[/QUOTE] -1 is my favorite for stuff like that because it sticks out while debugging.
Yay, LÖVE. [img]http://localhostr.com/file/svowYUc/love2d.gif[/img]
spoilers: it's called just "LÖVE". the 2d is only there because it's hard to buy a domain that is just "love." either way, that looks sweet
[QUOTE=thelinx;28607066]spoilers: it's called just "LÖVE". the 2d is only there because it's hard to buy a domain that is just "love." either way, that looks sweet[/QUOTE] Fixed it :3:. Also, for its simplicity in code it does look sweet. I'll be playing around with LÖVE for a while now :v:
Be sure to post anything cool you make on the LÖVE forums
I love reflection so much :D. Made a serialize class for my network code. [img]http://i51.tinypic.com/25ip0l5.png[/img] (ToString returns the serialized bytearray)
[QUOTE=high;28607669]I love reflection so much :D. Made a serialize class for my network code. [img_thumb]http://i51.tinypic.com/25ip0l5.png[/img_thumb] (ToString outputs the serialized bytearray)[/QUOTE] What is this server for? [editline]14th March 2011[/editline] [QUOTE=q3k]Cucumber crap.[/QUOTE] When you get the kernel to a usable state I can write a driver or two for you; I take back what I said, I'm just skeptical of: "OMGZ!!11!! I can makez an OS!!11!"
After a day's work, I've got my old pirate speak script (mostly) functional in python, complete with website! [img]http://thefwcentral.com/upload/content/images/pspeakSite907b0fc.png[/img] Great excuse to practice some jquery / css / ajax since I almost never do web stuff. Pirate icon could use a bit of work though. Anyway, [url=http://thefreewarecentral.com/pysp/]it's up if anyone wants to try it[/url]!
[QUOTE=high;28607669]I love reflection so much :D. Made a serialize class for my network code. [img_thumb]http://i51.tinypic.com/25ip0l5.png[/img_thumb] (ToString outputs the serialized bytearray)[/QUOTE] That's not what ToString is for. [url]http://stackoverflow.com/questions/1404209/c-how-should-tostring-be-implemented[/url]
[QUOTE=Hypershadsy;28606651]The compiler complains that the 'if response is 5' line is a use of an unassigned variable. Tell me, would it ever reach that line without being assigned?[/QUOTE] Yes, if Convert.ToInt32 results in an exception.
[QUOTE=Ortzinator;28608889][url=http://stackoverflow.com/questions/1404209/c-how-should-tostring-be-implemented]That's not what ToString is for.[/url][/QUOTE] Isn't it up to the programmer to decide how he uses an available function?
[QUOTE=shill le 2nd;28609181]Yes, if Convert.ToInt32 results in an exception.[/QUOTE] Then it catches it and returns to the top of the while.
Working on getting a first usable version of my grapher done, which I'm calling until I can find another name Cosmonaut (love that word :P)
[QUOTE=Jawalt;28610714]Working on getting a first usable version of my grapher done, which I'm calling until I can find another name Cosmonaut (love that word :P)[/QUOTE] Jawaltular grapher?
[QUOTE=Jawalt;28610714]Working on getting a first usable version of my grapher done, which I'm calling until I can find another name Cosmonaut (love that word :P)[/QUOTE]Extreme Graphamatical Grapher 2011 Extreme Edition of Epicness
[b]J[/b]awalt's [b]A[/b]mazing [b]W[/b]ork of [b]A[/b]rt in a [b]L[/b]anguage, not [b]T[/b]urb! [b]U[/b]nfairly [b]L[/b]ets [b]A[/b]nyone [b]R[/b]ender and [b]G[/b]raphically [b]R[/b]epresents [b]A[/b]wesome [b]P[/b]rogramming [b]H[/b]andiness [b]E[/b]specially at [b]R[/b]eally cool shit.
Does anyone remember the name of the visual macro program that was posted here a few months ago? Need an easy one that my father can use.
[QUOTE=high;28611003]Does anyone remember the name of the visual macro program that was posted here a few months ago? Need an easy one that my father can use.[/QUOTE] [url=http://sikuli.org/]Sikuli[/url]
[QUOTE=geel9;28610987][b]J[/b]awalt's [b]A[/b]mazing [b]W[/b]ork of [b]A[/b]rt in a [b]L[/b]anguage, not [b]T[/b]urb! [b]U[/b]nfairly [b]L[/b]ets [b]A[/b]nyone [b]R[/b]ender and [b]G[/b]raphically [b]R[/b]epresents [b]A[/b]wesome [b]P[/b]rogramming [b]H[/b]andiness [b]E[/b]specially at [b]R[/b]eally cool shit.[/QUOTE] This is not Kids Next Door.
[QUOTE=Quark:;28611205]This is not Kids Next Door.[/QUOTE] :saddowns:
Sorry, you need to Log In to post a reply to this thread.