• What Are You Working On? April 2015
    1,741 replies, posted
[QUOTE=PelPix123;47636777][media]http://soundcloud.com/kaybeccab/debussy[/media] Showing off the soundboard and sympathetic resonance. Totally dry. The reverb you hear is from the soundboard, cabinet, and string reso. [editline]1st May 2015[/editline] Purgatory creek midi test: [media]http://soundcloud.com/kaybeccab/pianotest[/media][/QUOTE] You have absolutely no idea how much I fucking want this. I've been writing and recording for so long and the only thing I can't find is a good piano VST. I'm actually so hyped and would buy this in a heartbeat (as long as its not a ludicrous amount)
[QUOTE=proboardslol;47636159]if I do that, and I have a bunch of Objects I'd like to sort, I'd have to make a separate String[] which stores all the names (or whatever string values represent each object), and then would sort them. However, that only sorts their names, and not their references, so if I try to access the original Object[], it would still be out of order.[/QUOTE] You're coming from C(++), right? A few things: - Use generics. It's faster than runtime downcasts everywhere (which is what Java generics compile to but .NET doesn't have that problem) and you only have to write your methods once. The syntax is [csharp]private static void Swap<T>(ref T a, ref T b){ T tmp = a; a = b; b = tmp; }[/csharp] - Some types are keyworded in C#, so you can use [I][B]o[/B]bject[/I] without [I]using System;[/I]. The other types that support this are the built-in value types and strings. - The .NET framework has interfaces for pretty much everything. If you want to write your sort method generically you can use [csharp]public static void BubbleSortObjects<TItem>(TItem[] arrayToSort) where TItem : IComparable<TItem> [...][/csharp] string implements this interface as do the numeric value types. - Methods in .NET usually (i.e. pretty much always) start with a capital letter. Unlike in some other environments people actually follow one style guide for the most part, so it's annoying if some library suddenly ignores that. - The reason your assignment fails is due to array covariance not being runtime-safe for item assignments in .NET, but the specific case here is a bit strange. I assume it's not caught at compile-time because your outer method doesn't know the true array type. The error is likely because the reference can't do type-checking in the assignment which an array normally does. If you use generics it will work directly. - There are no implicit downcasts in C#: [csharp]object a = ""; // <- You'd need brackets (either round and/or, with an object initialiser, curly) when instantiating an object, but string doesn't have a parameterless constructor in the first place. string b = a; // This actually always should fail at compile-time. If it doesn't your compiler is broken. string c = (string)a; // Throws at runtime if a isn't a string. string d = a as string; // Doesn't throw, but d ends up being null if a isn't a string.[/csharp] You probably should read a getting started guide to avoid bad habits carrying over.
Protobuf is cool :D Sped up file loading a ton. [img]http://imgur.com/wMCe794.png[/img]
I'm not sure if it fits with the rest of the thread, but I guess you could call Matlab programming and someone might actually like it, so here's a rather anticlimactically programmed robot controlled by Matlab. It's a college project we've just finished with my teammate and, incidentally, it's the first robot I got to control after two years of studying robotics. I'm so happy! :dance: [video=youtube;2fepO59IIak]http://www.youtube.com/watch?v=2fepO59IIak[/video]
[QUOTE=Remscar;47637017]Also my school project which we just finished: [video=youtube;lQhubD6pPxY]http://www.youtube.com/watch?v=lQhubD6pPxY[/video] [URL]https://www.youtube.com/watch?v=lQhubD6pPxY[/URL] (what happened to embedding youtube)[/QUOTE] Cool project! What did you use to make the game? What year/major student are you at Digipen?
[QUOTE=Frying Dutchman;47637858][t]http://i.imgur.com/CXIsDhl.png[/t] It's a game where you can kill Nikola Tesla as Einstein.[/QUOTE] Is it a game where in your quest to become the greatest scientist ever you travel through time and kill famous scientists and steal their shit?
[QUOTE=Mega1mpact;47638076]Is it a game where in your quest to become the greatest scientist ever you travel through time and kill famous scientists and steal their shit?[/QUOTE] It's an arena game where scientists fight to build the first Timemachine (?) to win the game, or something. It's rather vague and up to discussion what we name things, but basically, you kill eachother by using the environment as your weapon, not actual direct targeting. and at the end of the game the physics break, so the legs and top of the scientist separate. [t]http://i.imgur.com/ShgJBUJ.jpg[/t] That, and all traps fall on their sides.
[QUOTE=Mega1mpact;47638076]Is it a game where in your quest to become the greatest scientist ever you travel through time and kill famous scientists and steal their shit?[/QUOTE] Some didn't even have to bother with time travel.
ok, so I took the advice and renamed everything to not include, tetris, tet, tetromino, etc. It's all now Block Aligner. No new video, that is all.
[img]http://i.imgur.com/FuccysD.png[/img] Played around with [url=http://threejs.org/]three.js[/url] a bit today, and started working on a way to preview uploaded Arcade interior designs made with layla's editor. [url]http://arcade.facepunch.com/testing/interior-preview[/url]
[QUOTE=COBRAa;47634970]I got fed up of my ISP not supporting IPv6, so I decided to make my stuff IPv6-only. [url]http://kateadams.eu/[/url] [img]http://i.imgur.com/h0uTKW3.png[/img] If you're connecting from IPv4, but are IPv6 capable, you will be redirected to the IPv6-only domain "ipv6.kateadams.eu" via: [code]<script src="//ipv6.kateadams.eu/ipv6.js"></script>[/code] and [code]window.location.hostname = "ipv6.kateadams.eu"; // keeps path, query, and fragment[/code] Hopefully if more people do this, we can increase IPv6 adoption rates.[/QUOTE] [url]http://www.worldipv6launch.org/[/url] I saw it back in 2012. The idea is good but ISP's have other things to focus on. Some people are struggling to get a fast internet connection, and reaching higher speeds are more of a end users concern than a lack of IP addresses. I heard that somewhere they used internal IPv6 and multiple homes shared the same IPv4 address, so basically it's mostly a big problem for small ISP's. Modems might need upgrades to fix some internal issues etc. much of it seems easy, but in a bigger perspective a difficult task to achieve. If you left me out in the cold I would automatically assume you're just being rude. There are many other ways to apply pressure. And you're not exactly a big company either.
Anyone have a personal recommendation for a .NET IRC library, or a XMPP one? I'm looking for a permissive licence and documentation.
[QUOTE=Darwin226;47639871]Anyone have a personal recommendation for a .NET IRC library, or a XMPP one? I'm looking for a permissive licence and documentation.[/QUOTE] To host or join?
[QUOTE=PredGD;47634820]decided to abandon Java in favor of C#. learned a little about object oriented programming and decided to give it a go with the basic console calculator [URL="http://pastebin.com/D8J5UJif"]Main class[/URL] [URL="http://pastebin.com/k6UmPKDp"]Calculation class[/URL] think I got the hang of it, and starting to become lots more fun to learn this as well as I'm starting to tread into territory I haven't learned much about yet. it's surprisingly easy, but that might be because I already know a little Java. so much easier to write code when you've already written a class to do the tasks[/QUOTE] Hey. A word of advice. What you wrote doesn't really demonstrate object oriented programming. In your case you used a class just as a sort of a namespace to put your functions in a different file. All of those methods could just be made static and used without having to create a new Calculation object. OOP is about objects that each have their little pieces of information and methods that behave differently depending on which instance of the class you call them on. If a method doesn't touch any information that's strictly related to a single object (yours don't for example, they only depend on the arguments they're given to produce their result) then it can be made static. Take a look at the Math class for example. It wouldn't make much sense to have to make a new Math object just to calculate a sine of some value because it doesn't depend on any information. [editline]1st May 2015[/editline] [QUOTE=COBRAa;47639940]To host or join?[/QUOTE] To join.
I pretty much finished my viewports now. [t]http://i.imgur.com/C0nyxDs.png[/t] The user can zoom in and out of each one, and the gridsize will change based on that. Since I don't have a fixed maximum level size, I don't know how I will make the grid move as the camera pans. I tried moving the grid whenever the camera moves, but that doesn't work out that well.
[QUOTE=MadPro119;47638054]Cool project! What did you use to make the game? What year/major student are you at Digipen?[/QUOTE] We built the game and its engine from ground up using C++ and Direct X 11. The team consisted of 5 computer science (in real-time interactive simulation) sophomore students who worked on the game from September 2014 to April 2015.
Video isn't so dark now :D Next test with my test. Some people like it, some not, but I believe this can be more than test. [video=youtube;csx5-7JvPqI]http://www.youtube.com/watch?v=csx5-7JvPqI[/video]
[QUOTE=PelPix123;47640828][media]http://soundcloud.com/kaybeccab/the-lark[/media][/QUOTE] beyond ratings, it sounds just like someone is playing the lark are you messing with us?
Did some diagnostics on my project, found that Math.Sin(...) is using up a lot of time. Are there benefits to caching results, or would a dictionary lookup be slower? Or do you know of any other solutions to faster math functions?
[QUOTE=Sidneys1;47641010]Did some diagnostics on my project, found that Math.Sin(...) is using up a lot of time. Are there benefits to caching results, or would a dictionary lookup be slower? Or do you know of any other solutions to faster math functions?[/QUOTE] If you are calling Math.sin() on the same value multiple times, saving your result would definitely be faster; if you are calling that function on various values throughout the program, there are libraries that provide speedy math functions, but you might lose some precision.
[QUOTE=Sidneys1;47641010]Did some diagnostics on my project, found that Math.Sin(...) is using up a lot of time. Are there benefits to caching results, or would a dictionary lookup be slower? Or do you know of any other solutions to faster math functions?[/QUOTE] An alternative would be to use a complex number oscillator to generate a tone, which you can advance with four multiplications and two additions per step. Normalisation (which would normally require a square root) can be approximated as [I]/(.5+(|z|)/2)[/I], but I know no easy way to reset timing slew if it becomes a problem. If you reset the oscillator to (1,0) every time you start a tone it's probably stable enough without any of the two corrections though. If you decide to do this, the step is simply [I]z * (cos(tSampleDelta), sin(tSampleDelta))[/I]. As you can see the second factor is a constant if the sample rate is constant, so you only have to calculate it once.
[QUOTE=Sidneys1;47641010]Did some diagnostics on my project, found that Math.Sin(...) is using up a lot of time. Are there benefits to caching results, or would a dictionary lookup be slower? Or do you know of any other solutions to faster math functions?[/QUOTE] when I was doing my 3d graphics programming course, we would use lookup tables for sine, cosine and tangent
Was bored and looking for a project so I set out to make a simple Youtube Downloader script with a web interface that isn't cluttered and annoying. The Python part was easy, now I just need to come up with a web interface! Source if anyone wants to peek [url]https://github.com/rrkpp/Youtube-DL[/url]
So I'm having some trouble with Mono. I've install the mono-complete package but monodevelop can't find the gtk namespace, so I'm guessing gtk# isn't installed for some reason. Any Ideas? [editline]1st May 2015[/editline] Nvm just my IDE configuration. God I hate IDEs. A necessary evil.
[img]http://i.imgur.com/39bW9Pt.gif[/img] i made moving platforms today
My brain has melted and turned into WPF, I'm up to 800 very dense lines of XML for this project right now And getting all the binding to work is not going super smoothly
[QUOTE=No_0ne;47642313][img]http://i.imgur.com/39bW9Pt.gif[/img] i made moving platforms today[/QUOTE] You should have the player inherit the platform's velocity, so jumping works properly. Unless that's intended!
Someone needs to make a new thread.
I'm stuck on my dungeon crawler game :/ I really don't know how to make one, all I've got is a dungeon generator and nothing else.
[QUOTE=NixNax123;47642477]I'm stuck on my dungeon crawler game :/ I really don't know how to make one, all I've got is a dungeon generator and nothing else.[/QUOTE] Put the players in the dungeon and let them use their imagination to create their own stories/game.
Sorry, you need to Log In to post a reply to this thread.