• What Are You Working On? - August 2014
    1,181 replies, posted
So I learned the speech recognition library in C#, and made a program to run in the background and play the music that I name outloud. [video=youtube;Hpzj7SVcJHU]http://www.youtube.com/watch?v=Hpzj7SVcJHU[/video]
[QUOTE=blakeguy25;45809848]So I learned the speech recognition library in C#, and made a program to run in the background and play the music that I name outloud. [video=youtube;Hpzj7SVcJHU]http://www.youtube.com/watch?v=Hpzj7SVcJHU[/video][/QUOTE] You from BC, Canada? Cause we have a festival called Shambala here.
[QUOTE=Topgamer7;45810010]You from BC, Canada? Cause we have a festival called Shambala here.[/QUOTE] What makes you think that, eh? Naw, [URL="http://www.youtube.com/watch?v=pFd7MHcYW1o"]Excision's Shambhala[/URL] I'm from Nuremburg, Germany
[IMG]http://i.gyazo.com/b9be95a1387aa14c7f95651d36bcedcc.png[/IMG] Making more than one type of mob is going to be so boring.
[QUOTE=blakeguy25;45809848]So I learned the speech recognition library in C#, and made a program to run in the background and play the music that I name outloud. [video=youtube;Hpzj7SVcJHU]http://www.youtube.com/watch?v=Hpzj7SVcJHU[/video][/QUOTE] [img]http://i.imgur.com/d9Fz6XX.png[/img] I... what? I'm sorry. :(
[QUOTE=Dr. Evilcop;45807337]"Write a paragraph summarizing how you used clicking and dragging to make your screen look like Figure A-25." This is a real assignment I must do for a class I must take in pursuit of a computer science degree.[/QUOTE] what's figure A
[QUOTE=Map in a box;45810791]what's figure A[/QUOTE] Tsk tsk tsk. Clearly you should have taken a class in the binary codes.
[QUOTE=BackwardSpy;45810681][img]http://i.imgur.com/d9Fz6XX.png[/img] I... what? I'm sorry. :([/QUOTE] Haha, I knew to everybody else it's just like "lol wut?" but then one person comes along and is like "umm wft?"
[QUOTE=Natrox;45809795]My VM was 32-bit. If you wish to output colors to a frame buffer using 16-bit integers, you could opt for a 16-bit color format like R5G6B5 or a 16-bit palette. I am not aware of the design of your virtual machine, but you can also split up a 32-bit (A)RGB color into (A)R in the first 2 bytes and GB in the second 2 bytes. You can store these colors in an array of W*H*4b and then use an external function to copy them to a frame buffer. If I am misunderstanding your issue, you may contact me on Steam so I can help you take a look at it (though I will go to sleep pretty soon).[/QUOTE] My issue lies with addressing a fairly large frame buffer from a 16 bit address space, and was just wondering how you did it because yours certainly seems successful. As it goes I might just have a very basic form of paging where you can set 512 byte blocks to any block in a 32 bit physical address meaning I can just memory map a frame buffer there. Could have a 32 bit architecture but where's the fun then. I am aiming to implement this in Verilog.
[QUOTE=ben1066;45811033]My issue lies with addressing a fairly large frame buffer from a 16 bit address space, and was just wondering how you did it because yours certainly seems successful. As it goes I might just have a very basic form of paging where you can set 512 byte blocks to any block in a 32 bit physical address meaning I can just memory map a frame buffer there. Could have a 32 bit architecture but where's the fun then. I am aiming to implement this in Verilog.[/QUOTE] What about something that works like "bank switching"? Maybe there's a flag byte somewhere which determines the address space you're working with. That's how old console games got around address space limitations (to allow developers to increase cartridge size).
[QUOTE=KillaMaaki;45811071]What about something that works like "bank switching"? Maybe there's a flag byte somewhere which determines the address space you're working with. That's how old console games got around address space limitations (to allow developers to increase cartridge size).[/QUOTE] Custom architecture, anything is possible. I could do that, but as far as I can tell bank switching has no real advantage over a more advanced paging system. I could obviously make pages bigger is 512 bytes turns out to be ridiculously small for anything useful.128*32 is just convenient for implementation reasons (block RAM is 4Kbit).
Getting around to updating my portfolio site and wanted to include some video demonstrations, so here's a video of my procedural music generator Blotto Beats. [video=youtube;O47pxms3RJ8]http://www.youtube.com/watch?v=O47pxms3RJ8[/video]
[QUOTE=ben1066;45811239]Custom architecture, anything is possible. I could do that, but as far as I can tell bank switching has no real advantage over a more advanced paging system. I could obviously make pages bigger is 512 bytes turns out to be ridiculously small for anything useful.128*32 is just convenient for implementation reasons (block RAM is 4Kbit).[/QUOTE] But bank switching is more "retro" ;) It's also perhaps conceptually simpler than paging, as your flag byte could really just be a multiplier. For instance, assuming a 16 bit address (which I'll call "codeAddress") and an 8 bit bank switch (I'll call "switch"), then the actual memory location is pretty simple: [code] int memoryLocation = codeAddress + (short.MaxValue * switch); [/code] Paging could work too, of course, although it kind of depends on having an area of your RAM (which may be limited, depending on how you design the system) set aside for the paged chunks (which is that much less RAM available to your programs)
[QUOTE=Zwolf11;45811562]Getting around to updating my portfolio site and wanted to include some video demonstrations, so here's a video of my procedural music generator Blotto Beats. [video=youtube;O47pxms3RJ8]http://www.youtube.com/watch?v=O47pxms3RJ8[/video][/QUOTE] Cool! You should add VST support so that it can use instruments that don't sound like ass!
[QUOTE=Ott;45811657]Cool! You should add VST support so that it can use instruments that don't sound like ass![/QUOTE] You think that sounds like ass? You should hear the other genres, they sound like a jpg-compressed tuba.
[QUOTE=Larikang;45801551]5. Integer() throws an exception on failure, so your error check needs to be a begin ... rescue block.[/QUOTE] use str.to_i instead of Integer(str), calling methods on objects is the Ruby way [sp]I have been writing Ruby for like two years now and didn't even know you could convert to ints like that[/sp]
Taking a break from my online RPG game for now, working on a new idea I had that is similar to Metroid. Screen shot doesn't show much but I'm just working on the engine, it has some fluid view control based on what direction you're moving and the pickups have a cool effect on them. The pickups and HUD are demonstrating the art style for the game. It's going to be about space cowboys. [img]http://i.imgur.com/0Vu2Sdf.png[/img] Download here: [url]https://www.dropbox.com/s/b0ik86w580i09o2/space%20tech%20demo.rar?dl=0[/url]
Okay, wrote some simple program to start my programming in c#. Circle area and circumference calculator. Dunno if im doing it right, but here's a screenshot : [IMG]http://snag.gy/2MBXM.jpg[/IMG] [IMG]http://snag.gy/dpaId.jpg[/IMG] I feel like I'm doing it completly wrong lol i am doing it completly wrong
-snip merge broken-
[QUOTE=EmilioGB;45814438]Okay, wrote some simple program to start my programming in c#. Circle area and circumference calculator. Dunno if im doing it right, but here's a screenshot : [IMG]http://snag.gy/2MBXM.jpg[/IMG] [IMG]http://snag.gy/dpaId.jpg[/IMG] I feel like I'm doing it completly wrong lol i am doing it completly wrong[/QUOTE] Very much so; area is Pi * Radius^2 and circumference is 2 * Pi * Radius.
[QUOTE=KillaMaaki;45811592]But bank switching is more "retro" ;) It's also perhaps conceptually simpler than paging, as your flag byte could really just be a multiplier. For instance, assuming a 16 bit address (which I'll call "codeAddress") and an 8 bit bank switch (I'll call "switch"), then the actual memory location is pretty simple: [code] int memoryLocation = codeAddress + (short.MaxValue * switch); [/code] Paging could work too, of course, although it kind of depends on having an area of your RAM (which may be limited, depending on how you design the system) set aside for the paged chunks (which is that much less RAM available to your programs)[/QUOTE] RAM isn't really limited, on the dev board I'm targeting I have 8MB of SDRAM. The page table will actually be stored in block RAM within the FPGA itself to reduce latency as every memory access via the CPU when paging is enabled will rely on the data. Paging vs bank switching is really no easier or harder, and at such a basic level are much the same, paging just gives a little more granularity and I could for example have flags for the pages in the future, it wouldn't be compatible mind. I don't see bank switching giving any way to expand functionality in the future, correct me if I am wrong.
[QUOTE=EmilioGB;45814438]Okay, wrote some simple program to start my programming in c#. Circle area and circumference calculator. Dunno if im doing it right, but here's a screenshot : [IMG]http://snag.gy/2MBXM.jpg[/IMG] [IMG]http://snag.gy/dpaId.jpg[/IMG] I feel like I'm doing it completly wrong lol i am doing it completly wrong[/QUOTE] Are you by any chance using WPF? I advise against that.
What? Why? WPF is great. [editline]28th August 2014[/editline] I mean it's not cross platform but that's no reason not to use it for stuff like this.
Umm, i'm no programmer king. But i'm using Visual C#
[QUOTE=EmilioGB;45816490]Umm, i'm no programmer king. But i'm using Visual C#[/QUOTE] Visual C# is the implementation of C# by Microsoft, WPF is the GUI framework that you are using, unless you are using winforms, winforms is the old GUI framework.
[QUOTE=reevezy67;45816520]Visual C# is the implementation of C# by Microsoft, WPF is the GUI framework that you are using, unless you are using winforms, winforms is the old GUI framework.[/QUOTE] Yeah, im using winforms EDIT : What's the diffrence between them anyways?
WPF is newer, has a nicer interface for building UI's and is defined in [URL="http://en.wikipedia.org/wiki/Extensible_Application_Markup_Language"]XAML[/URL] rather than in code like in winforms. Both have their advantages, it's easier to embed custom graphics in to winforms.
Or just make C# code run in server and make HTML client :)
[QUOTE=Fourier;45816700]Or just make C# code run in server and make HTML client :)[/QUOTE] You could also implement the server in C and have it use a different memory allocater written in brainfuck that would send the HTML code in a JSON sequence that is then parsed by a HTML client using Lua.js (a lua vm implemented in JavaScript) to parse the JSON and write a HTML document out that can then be used to process requests and send queries like the one above to the server which then responds in the way described above. Alternatively, I'd say writing a winforms applications isn't that bad for a beginner thing. [editline]27th August 2014[/editline] apparently i have forgotten what a comma is
-fuckit, snippit-
Sorry, you need to Log In to post a reply to this thread.