• What are you working on? November 2011 Edition
    3,673 replies, posted
[QUOTE=Jack Trades;33393420]I never seen anyone do that but...[B]WHY[/B]?![/QUOTE] I've seen it a few times, I guess it's just to make it not force your eyes to move so far/your cursor to scroll very far to read it all. [QUOTE=Yogurt;33393387]Working on water physics in MD. It's incredibly complex. I don't even know where to begin. Each water block has a metadata value from 0-100. That's its height. So a block can be partially filled with water. I just can't think of a way to do it. For instance, if I have a single block in a one-block high pool, how do I make the water all "level out?"[/QUOTE] The simplest way is probably to have it spread out by pouring some portion of itself into nearby blocks with less water each tick.
[QUOTE=Yogurt;33393387]Working on water physics in MD. It's incredibly complex. I don't even know where to begin. Each water block has a metadata value from 0-100. That's its height. So a block can be partially filled with water. I just can't think of a way to do it. For instance, if I have a single block in a one-block high pool, how do I make the water all "level out?"[/QUOTE] 0 = no water 100 = maximum water on every frame: { if the block to the left of this block can receive water, and it has less water than this block, then transfer 1 water to it if the block to the right of this block can receive water, and it has less water than this block, then transfer 1 water to it if the block to the bottom of this block can receive water, and it has less water than this block, then transfer 1 water to it } that should "level out" water in even spaces, and it should make water "leak down" from hills, etc.
[img]http://img573.imageshack.us/img573/967/diggergame2011112221540.png[/img] Still gonna change font, work more on the buttons.
here's another argument for tabs: when you click somewhere, you want to be at the proper indentation level. i [b]loathe[/b] click somewhere and ending up 1 or 2 spaces away from the indentation level i want to be at
[QUOTE=icantread49;33393485]0 = no water 100 = maximum water on every frame: { if the block to the left of this block can receive water, and it has less water than this block, then transfer 1 water to it if the block to the right of this block can receive water, and it has less water than this block, then transfer 1 water to it if the block to the bottom of this block can receive water, and it has less water than this block, then transfer 1 water to it } that should "level out" water in even spaces, and it should make water "leak down" from hills, etc.[/QUOTE] I truly hope it is that simple.
I raise you two spaces with an 80 character line limit.
[QUOTE=Jack Trades;33393420]I never seen anyone do that but...[B]WHY[/B]?![/QUOTE] Because it's really shit to have your code go on to 256+ cols. Fucking wrap that shit. I'm not a stickler or anything, but I keep my commenting to 80 cols; sometimes I let code drift off a bit, but there's no fucking way I'd let it go on to like 200+ columns.
[QUOTE=ZenX2;33393454]Where from?[/QUOTE] [url]https://github.com/TTimo/doom3.gpl[/url]
[QUOTE=Lexic;33393424] [IMG]http://i.imgur.com/vsXmR.png[/IMG][/QUOTE] Is that code overview thing to the right a plugin? If so where can I find it?
[QUOTE=Jookia;33393589]I raise you two spaces with an 80 character line limit.[/QUOTE] I personally like the 80 col line limit. I just don't obey it 110% of the time, because sometimes it's less convenient to wrap your code. When it's sensible to wrap it, I try to keep it 80 or less.
When is SDL 1.3 ment to be comming out?
[QUOTE=ief014;33393627]Is that code overview thing to the right a plugin? If so where can I find it?[/QUOTE] [url=http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef]Productivity Power Tools[/url]. AKA "shit we should have included in VS2010 but instead we didn't and made it so you can only have it if you bought the Pro version without actually saying that so we don't look bad"
I found that calling the function of another program is fairly simple. Simple prototyping of the function address after you located it in ollydbg and it's just a matter of injecting the dll. First time ever doing it was a great success. Then I tried to free the remote thread and crashed the program. :tinfoil:
Made a single-layer [url=http://en.wikipedia.org/wiki/Perceptron#Learning_algorithm]perceptron[/url] (neural network) as part of my AI module. It uses training sets to configure itself initially, then it can go through all the training data to verify it can classify properly, or it can use new data you enter. [vid]http://dl.dropbox.com/u/35550075/ptron.webm[/vid] The numbers in boxes are the weights, which are trained over 600 training set runs (it's very quick). The two input nodes at the bottom are the X and Y co-ordinates of the points, and the top node is the output (in this case, 0 for bottom left and 1 for top right classifications). This example plots a random point in that square and classifies it (colour is set to the classification). Oddly, I can use 2d point data with it but I can't make it work with a simple AND gate: [code] 0,0: 0 0,1: 0 1,0: 0 1,1: 1 [/code] Also, it only works with linearly separable values: anything more complex needs a [url=http://en.wikipedia.org/wiki/Multilayer_perceptron]multi-layer[/url].
[QUOTE=icantread49;33391020]here's the version i'm currently using [cpp]code [/cpp] no guarantees of any kind, use the code as you wish at your own risk[/QUOTE] Do you have a compiled version? I dont want to install mono IDE just for 1 thing
Just rewrote my client to server input stuff, works 1000x better now.
I wish I could write code by connecting my brain to a computer and just [I]thinking[/I] about it, writing is so tiresome. _o_ inb4 Deus Ex jokes
-snip, was wrong-
[QUOTE=Jack Trades;33394582]I wish I could write code by connecting my brain to a computer and just [I]thinking[/I] about it, writing is so tiresome. _o_ inb4 Deus Ex jokes[/QUOTE] Let's program a program to program.
[QUOTE=Richy19;33393673]When is SDL 1.3 ment to be comming out?[/QUOTE] just after episode 3, I suspect
[QUOTE=NovembrDobby;33393997]Made a single-layer [url=http://en.wikipedia.org/wiki/Perceptron#Learning_algorithm]perceptron[/url] (neural network) as part of my AI module. It uses training sets to configure itself initially, then it can go through all the training data to verify it can classify properly, or it can use new data you enter. [vid]http://dl.dropbox.com/u/35550075/ptron.webm[/vid] The numbers in boxes are the weights, which are trained over 600 training set runs (it's very quick). The two input nodes at the bottom are the X and Y co-ordinates of the points, and the top node is the output (in this case, 0 for bottom left and 1 for top right classifications). This example plots a random point in that square and classifies it (colour is set to the classification). Oddly, I can use 2d point data with it but I can't make it work with a simple AND gate: [code] 0,0: 0 0,1: 0 1,0: 0 1,1: 1 [/code] Also, it only works with linearly separable values: anything more complex needs a [url=http://en.wikipedia.org/wiki/Multilayer_perceptron]multi-layer[/url].[/QUOTE] Your cursor suffers from E.D.
Oh, this again [img]http://i.imgur.com/gJ4qF.gif[/img] waywo [i]loved[/i] it last time
[QUOTE=NovembrDobby;33394879]Oh, this again [img]http://i.imgur.com/gJ4qF.gif[/img] waywo [i]loved[/i] it last time[/QUOTE] give me a .ani of it.
[img]http://puu.sh/99Vm[/img] [b]I CAN'T BELIEVE IT'S NOT REAL WATER![/B]
nevermind found it :3
[img]http://i.imgur.com/tXpgv.jpg[/img] i told you i'd be in the highlights some day [QUOTE=Map in a box;33395911]How many sprites are there? :v:[/QUOTE] nothing is sprites, its just pure glsl in directx11
How many sprites are there? :v:
SEMV now supports 45 audio formats: [code]MP3, WAV, OGG, FLAC, RAW, AIFF, SND, SGI, AIFC, Sun, DEC, AU, PAF, IFF, SVX, SF, VOC, W64, MAT4, MAT5, PVF, XI, HTK, CAF, SD2, MOD, S3M, XM, IT, 669, AMF (both of them), AMS, DBM, DMF, DSM, FAR, MDL, MED, MTM, OKT, PTM, STM, ULT, UMX, MT2, PSM[/code] And loads them in only a few seconds (even if it's a large song), as opposed to like half a minute.
-Spend about 6 hours trying to fix an overcomplicated problem -Have sudden idea that works in a totally different way -Spend 5 minutes and 8 lines of code writing new idea -Have it work the first time I'm happy and angry at the same time. ...the joys of programming.
[QUOTE=chimitos;33396559]-Spend about 6 hours trying to fix an overcomplicated problem -Have sudden idea that works in a totally different way -Spend 5 minutes and 8 lines of code writing new idea -Have it work the first time I'm happy and angry at the same time. ...the joys of programming.[/QUOTE] [img]http://incanter.org/images/misc/hammock-driven-dev.png[/img]
Sorry, you need to Log In to post a reply to this thread.