• What are you working on?
    5,004 replies, posted
[QUOTE=polkm;49496181]what?[/QUOTE] I am trying to create a program that allows me to composite different layers of effects in realtime to create a live video performance. Imagine a DJ making music and me making the cool background visualization.
[QUOTE=Verideth;49496235]Whats your steam? I'll friend you and see if I can help you out.[/QUOTE] Sent via PM. Thanks in advance. :)
I've been playing around with Unity again and I hate how I've been basically hardcoding scenes and sequences, or doing them in animator. So I made my own (also terrible) event system. Anything that can be triggered, like level loading, or turning on a component is handled by events. Events are derived from a common class, so they can be stored easily. An example where this can be useful is the event chain (which is an event itself): [IMG]http://i.imgur.com/c3EBt48.png[/IMG] Everything else can be classified under a trigger, like level loaded, or walking into a unsolid polygon (a trigger). These are also derived from a common class. Here's an example of trigger once (akin to the hammer version). [CODE] using UnityEngine; using System.Collections; public class TriggerOnce : ActionTrigger { private bool _triggered = false; void OnTriggerEnter(Collider other) { if(!_triggered) StartCoroutine(Trigger()); } public override IEnumerator Trigger() { _triggered = true; StartCoroutine(Target.OnEvent()); yield return null; } } [/CODE] Here's an example chain where it plays [URL="https://dl.dropboxusercontent.com/u/357850863/ShareX/2016/01/2016-01-10_02-50-57.mp4"]this elevator sequence[/URL]: [t]http://i.imgur.com/m4rjUNp.png[/t] Any comments on this system is appreciated, this is my second attempt at a system like this but I would love feedback to see if this intuitive or not. It is intuitive for me because I love how flexible this is, and adding custom events is easy, or I could just make a event to run a script that can do the heavy lifting itself. Also it's nice having the events/triggers under corutines, which means they can be paused (like shown in the video) so I don't have to do it myself.
Today I finished implementing a gamemode, team deathmatch. Currently there's no cap to how many players you can have, but there are 5 spawn points on each side of the map, defined symbolically in the map layout as such: [cpp]static std::vector<int> map_one { 1,1,1,1,1,1,1,1,1,1,1, 1,0,0,R,R,R,R,R,0,0,1, 1,0,0,0,0,0,0,0,0,0,1, 1,0,0,1,1,1,1,1,0,0,1, 1,0,0,0,0,0,0,0,0,0,1, 1,0,0,0,1,0,1,0,0,0,1, 1,0,0,0,1,0,1,0,0,0,1, 1,0,0,0,0,0,0,0,0,0,1, 1,0,0,1,1,1,1,1,0,0,1, 1,0,0,0,0,0,0,0,0,0,1, 1,0,0,B,B,B,B,B,0,0,1, 1,1,1,1,1,1,1,1,1,1,1, };[/cpp] The server then uses this to forward respawning information (ie a position) to clients who request it (picks from however many available spawns there are, depending on which was the one used longest ago). There's a whole respawn delay mechanic as well, where a client requests a spawn, and the server waits x seconds (while informing the client of this), and then finally instructs the client to spawn When a client is reported dead, the server notices this and updates its kill counters for each side. The client and server share this information directly. Round end is calculated independently on client and server, and the client displays some generic text informing the user of who won. The server resets the gamemode, which the client detects and kills itself. This is obviously not secure, though I have some better plans for this in the long term Networked clients also have functional capes! Although the cape physics is currently not frametime independent, which i need to fix Teams are dynamically autobalanced depending on the order in which you joined. If someone leaves, this also triggers balancing, so that all works fine. The server simply broadcasts everyone's team every 1000ms. If the client detects a discrepancy, it changes the team of the current player I've also added an idle state, fixed two players hitting a third not being registered properly, added some more pronounced ass wiggling, and fixed a million other things I now need to finish networking the audio under the new networking system, as well as implementing a reliable networking layer for some packets that really just can't get lost Hopefully I'll be able to organise a playtest soon, everything is coming along pretty swimmingly. TDM pretty much entirely works, as far as I know. The main issue in the long term is that the networking is really [i]very[/i] insecure - lots of things that could be handled by the server are currently being handled by the clients. Ideally i just want hit detection to be client authoritative, but many other things are currently client authoritative too. However, given that I'm not going to be releasing it to the public for a while (if ever), there's plenty of time to make it less bad Edit: Also this happened and it was pretty cool [IMG]https://dl.dropboxusercontent.com/u/9317774/accidentally_awesome.PNG[/IMG]
Am I really the only one using windows 10's multi-desktop feature? Almost everyone I know who has windows 10 decided they don't like it and stopped using it.
Been a while since I posted anything but here's something I've been working on recently: dynamic 2D polygon slicing: [video=youtube;KyH2NCNS3pQ]https://www.youtube.com/watch?v=KyH2NCNS3pQ[/video] [img]http://dslengine.se/polyslice/images/polyslice1.jpg[/img] [img]http://dslengine.se/polyslice/images/polyslice4.jpg[/img] [img]http://dslengine.se/polyslice/images/polyslice5.jpg[/img] [img]http://dslengine.se/polyslice/images/polyslice6.jpg[/img] It's pretty far along but I'll need to stomp out some bugs and fix vertex coordinates before I can integrate it into my engine. Mesh triangulation algorithm could use some improvement as well. If you want to try it out for yourself you can [URL="http://dslengine.se/polyslice/"]download it here[/URL]. I recommend using a tablet for maximum fun, hope you like it!
I made a lottery number generator. I have 400$ in my bank account, so I could realistically buy 200 lottery tickets. I'm not stupid, so I won't do that, but I want to see what would happen if I DID buy the ticket numbers generated by this program. I'm going to paste them here, so if tomorrow any of these numbers end up winning, you all will know EXACTLY why I hung myself. [url]http://pastebin.com/TACcQQnj[/url]
[QUOTE=proboardslol;49496688]I made a lottery number generator. I have 400$ in my bank account, so I could realistically buy 200 lottery tickets. I'm not stupid, so I won't do that, but I want to see what would happen if I DID buy the ticket numbers generated by this program. I'm going to paste them here, so if tomorrow any of these numbers end up winning, you all will know EXACTLY why I hung myself. [url]http://pastebin.com/TACcQQnj[/url][/QUOTE] We'll know if you discovered quantum entanglement between numbered balls and srand(time(NULL))
[QUOTE=Lumaio;49496589]Am I really the only one using windows 10's multi-desktop feature? Almost everyone I know who has windows 10 decided they don't like it and stopped using it.[/QUOTE] I use it to hide SCPToolkits invisible window and the "Device Failed" window from Windows thinking a short with my case is a failed USB device. I use multi desktop on Linux but there is something inconvenient about W10's version.
[QUOTE=Lumaio;49496589]Am I really the only one using windows 10's multi-desktop feature? Almost everyone I know who has windows 10 decided they don't like it and stopped using it.[/QUOTE] I've been spoiled by i3's workspaces (if you could call them that) where moving between and moving windows is two keys, Mod+X. It's crazy easy and it goes up to 10 "spaces", and I find it incredibly easy for window management. Every other workspace management (windows especially) is way too slow to be worth it for me. I have tons of desktop space on my rig, so I don't have to worry about screen space. The task view itself is useful because I can recover broken chrome windows :v:
[QUOTE=proboardslol;49496688]I made a lottery number generator. I have 400$ in my bank account, so I could realistically buy 200 lottery tickets. I'm not stupid, so I won't do that, but I want to see what would happen if I DID buy the ticket numbers generated by this program. I'm going to paste them here, so if tomorrow any of these numbers end up winning, you all will know EXACTLY why I hung myself. [url]http://pastebin.com/TACcQQnj[/url][/QUOTE] Increment the powerballs from 1-26
[QUOTE=Map in a box;49497358]Increment the powerballs from 1-26[/QUOTE] Well at least I don't have to die now :^)
When IK goes incredibly wrong. [vid]https://my.mixtape.moe/qofcto.webm[/vid]
Mashing old and new projects together to do something awesome is always awesome [IMG]https://dl.dropboxusercontent.com/u/9317774/oldandnew2.PNG[/IMG]
Welp, looks like nobody won the powerball. Guess I just chambered the next bullet in Russian roulette
[QUOTE=Berkin;49439642]I made another glitch shader concept that uses a better-defined technique and doesn't destroy the colors as badly. [IMG]http://i.imgur.com/Rxitpvs.png[/IMG] [URL]https://www.shadertoy.com/view/4dtGzl[/URL][/QUOTE] I'm so sorry... but I really wanted to try it in UE4 [media]https://www.youtube.com/watch?v=FvwFnk09XDs[/media] please stop me! [media]https://www.youtube.com/watch?v=BXOF8pgfNN4[/media] [b]NEW:[/b] I have packed and uploaded the game for anyone who wants to see it in action [url]https://drive.google.com/file/d/0B9WV_C-NXDzcbm14aXVibTN3ZFU/view[/url]
[QUOTE=Nigey Nige;49492972]Anyone want to test my latest version? It's fully playable and I think it's more of a demo than a tech demo. [url=https://www.dropbox.com/s/icdqnbbrpf6deni/LookBothWays%20v0.4.zip?dl=0][b]ROAD CROSSING SIMULATOR v.0.4[/url][/b] [vid]https://fat.gfycat.com/HalfHomelyInsect.webm[/vid] You get three levels: a town, a mountain and a highway. You'll need a gamepad. It supports local multiplayer for up to four people. Be free and easy with your feedback.[/QUOTE] I need to rename my game because I'm not sure Road Crossing Simulator 2016 is going to market well. Vote for your favourite: Pedestrian Quest (Programming King) Extreme Pedestrianism (Agree) Look Both Ways (Disagree) Streets Behind (Funny) Hit the Road, Smack (Winner) Motorwhy (Zing) Cross Purposes (Informative)
[QUOTE=Nigey Nige;49499410]I need to rename my game because I'm not sure Road Crossing Simulator 2016 is going to market well. Vote for your favourite: Pedestrian Quest (Programming King) Extreme Pedestrianism (Agree) Look Both Ways (Disagree) Streets Behind (Funny) Hit the Road, Smack (Winner) Motorwhy (Zing) Cross Purposes (Informative)[/QUOTE] I can't rate for some reason? Anyone know why? Also I like Extreme Pedestrianism
[QUOTE=Verideth;49499425]I can't rate for some reason? Anyone know why? Also I like Extreme Pedestrianism[/QUOTE] I think you haven't posted enough to rate
[QUOTE=Nigey Nige;49499410]I need to rename my game because I'm not sure Road Crossing Simulator 2016 is going to market well. Vote for your favourite: Pedestrian Quest (Programming King) Extreme Pedestrianism (Agree) Look Both Ways (Disagree) Streets Behind (Funny) Hit the Road, Smack (Winner) Motorwhy (Zing) Cross Purposes (Informative)[/QUOTE] I voted for Look Both Ways, but I'll just throw out on top of my vote that I think it's the best because it doesn't go for a cutesy joke, explains what the game is about quickly, and also is really sweet to say out loud over and over, unlike the good but clunky "Extreme Pedestrianism."
[QUOTE=Verideth;49496235]Whats your steam? I'll friend you and see if I can help you out.[/QUOTE] Hey, I'd just like to suggest that instead of taking people to a side channel to help them, you post your advice on the forum. That way it's visible to other people with the same situation and more importantly it can be peer reviewed. Something you think is valid advice might not be, but the person that doesn't know better will take it as gospel.
Right now, I have a .txt file on my desktop reminding me what Netflix movies I would want to see in the future. Some time ago, I tried making a program to handle it for me: [img_thumb]https://dl.dropboxusercontent.com/u/99717/NetflixMovieList.png[/img_thumb] It didn't look too good. Now I tried again, with more emphasis on the graphical aspects of it: [img_thumb]https://dl.dropboxusercontent.com/u/99717/NetflixMovieList_v2.png[/img_thumb] Disagree means I haven't seen it. Agree means I have seen it. Sorted with unseen top, seen bottom. The flags and movie posters are downloaded automatically. However, not all movies have an entry from [url]http://netflixroulette.net/api/[/url] I wanted to copy the API to Netflix that the browser does, but it will only show me film available in my country.
[QUOTE=Trebgarta;49499594][code]let view = Matrix4::look_at(Point3{x:0f32, y:0f32, z:3f32}, Point3{x:0f32, y:0f32, z:1f32}, vec3(0f32, 1f32, 0f32));[/code] ... all right, right? [code]View: [[1, 0, -0, 0], [-0, 1, -0, 0], [0, 0, 1, 0], [-0, -0, -3, 1]][/code] ... What is -0. How? :suicide:[/QUOTE] [url]https://en.wikipedia.org/wiki/Signed_zero[/url]
[QUOTE=Darwin226;49499481]Hey, I'd just like to suggest that instead of taking people to a side channel to help them, you post your advice on the forum. That way it's visible to other people with the same situation and more importantly it can be peer reviewed. Something you think is valid advice might not be, but the person that doesn't know better will take it as gospel.[/QUOTE] Will do! All we talked about was ideas really and how to get them. The best way to get ideas is code for a period of time and get that down. Then just crash for one day and think of the game, believe it or not coming from someone that has made games it works really well. [editline]10th January 2016[/editline] [QUOTE=HumbleTH;49499440]I think you haven't posted enough to rate[/QUOTE] Not sure about that. Just looked it up and found this on a website called wikipunch [QUOTE]Ratings are unavailable to users who have less than 30 posts, due to a recent, unpopular decision to disable ratings in Sensationalist Headlines causing many new accounts to be made for ratings spam.[/QUOTE]
[QUOTE=Verideth;49499667]Will do! All we talked about was ideas really and how to get them. The best way to get ideas is code for a period of time and get that down. Then just crash for one day and think of the game, believe it or not coming from someone that has made games it works really well. [editline]10th January 2016[/editline] Not sure about that. Just looked it up and found this on a website called wikipunch[/QUOTE] It's like 50 posts and the change can take a day or two
[QUOTE=Nigey Nige;49499725]It's like 50 posts and the change can take a day or two[/QUOTE] Ah alright, thanks for the response
[QUOTE=Nigey Nige;49433452] aaro1450 invents a cool voxel game with random terrain and caves! This could be big fellas[/QUOTE] Quite happy to make highlights. I've not got much new to show currently though as I've got a few other deadlines to work on. But I'm working mostly on optimisation now so my terrain should be "infinite" when I next post.
I've been investigating a mysterious performance hit that came out of nowhere and eventually gave up. Once I closed unity I found that OBS had been recording for about two hours. :eng101:
You can now store data in shaders apparently: [url]https://www.shadertoy.com/view/MddGzf[/url]
Seems I can rate posts now. Thanks guys
Sorry, you need to Log In to post a reply to this thread.