• What are you working on? v16
    5,004 replies, posted
[QUOTE=Overv;28412757]The problem is that in OpenGL 3.x shaders are essential for drawing anything on the screen at all, so they need to be part of the basic learning progress.[/QUOTE] Woops. I suppose you introduce people to shaders in the beginning, anyways looking good.
I'd love to have a more official, up-to-date introduction to opengl; I've been using it for a while and everything I do is slow and inefficient. I'll keep track of your progress Overv.
I'm also looking forward to Overv's guide. It's difficult to learn how to use all the new OpenGL stuff due to the severe lack of resources, so this will be very helpful.
Does nobody else find it funny that nullsquared is crawling back to Facepunch after rage quitting?
[QUOTE=Jookia;28417471]Does nobody else find it funny that nullsquared is crawling back to Facepunch after rage quitting?[/QUOTE] I don't think anybody really cares.
[img]http://localhostr.com/files/Ah07PTG/ismoke.png[/img] Just found this in my shit folder.
Is there some kind of stable relationship between how much you smoke and how much shorter your life will be or did you make the figures up?
[QUOTE=Jallen;28417551]Is there some kind of stable relationship between how much you smoke and how much shorter your life will be or did you make the figures up?[/QUOTE] Stable, I don't think so, but my guess is I Googled how much each smoke removes of your life. I think it's 9 minutes or some shit like that? It's probably dumb and I just made it for fun. [editline]4th March 2011[/editline] Like this: [url]http://answers.yahoo.com/question/index?qid=20071107125557AAzcAF6[/url]
What's a ciggarate
Got a Caanoo and installed nLÖVE on it. Changed some stuff around to match the smaller resolution aaaand... [media]http://www.youtube.com/watch?v=c-wvBA9YmA0[/media]
[QUOTE=Within;28417503][img_thumb]http://localhostr.com/files/Ah07PTG/ismoke.png[/img_thumb] Just found this in my shit folder.[/QUOTE] Add the cost for all the ciggaretes too :)
[QUOTE=thelinx;28418981]Got a Caanoo and installed nLÖVE on it. Changed some stuff around to match the smaller resolution aaaand... [media]http://www.youtube.com/watch?v=c-wvBA9YmA0[/media][/QUOTE] Is there a port of LÖVE for Android already? That would be an interesting project. If only I had more free time :(
[QUOTE=Overv;28419173]Is there a port of LÖVE for Android already? That would be an interesting project. If only I had more free time :([/QUOTE] Someone tried to, but I believe he couldn't handle compiling all of the dependencies for the Android NDK.
Over the past few days I've been doing all sorts with this game.. I have the game clock synced with the server (accounting for clock skew too!), I optimised the lighting engine (300fps vs 120fps on the same scene), added some calculation for the potentially visible set on the server for network optimisation and a load of tiny little things I can't remember now. Here's something broken to laugh at idk: [img]http://img.meteornet.net/uploads/mwmj9x5b/ss.PNG[/img]
This is the weirdest bug I ever encountered,(not a help question.) if I do this -> [img]http://puu.sh/17iM[/img] it works just fine -> [url]http://puu.sh/17iN[/url] but if I do this -> [img]http://puu.sh/17iO[/img] it suddenly stops drawing -> [url]http://puu.sh/17iT[/url] Now I wonder what could cause this.
Whats DrawPolygon? And please use [.cpp] tags.
Draw Polygon is this: [csharp]internal static void DrawPolygon(Vertices vertices, Color color, Transform tf) { for (int i = 0; i < vertices.Count - 1; i++) { DrawLine(MathUtils.Multiply(ref tf, vertices[i]), MathUtils.Multiply(ref tf, vertices[i + 1]), color); } DrawLine(MathUtils.Multiply(ref tf, vertices[vertices.Count - 1]), MathUtils.Multiply(ref tf, vertices[0]), color); }[/csharp] And DrawLine this: [csharp] static internal void DrawLine(Vector2 pos1, Vector2 pos2, Color col) { _lineVerts[_lineCount * 2].Color = col; _lineVerts[_lineCount * 2].Position = new Vector3( pos1, 0); _lineVerts[_lineCount * 2 + 1].Color = col; _lineVerts[_lineCount * 2 + 1].Position = new Vector3(pos2, 0); _lineCount++; } [/csharp]
You're multiplying the vertices twice.
Would it be possible to store _lineCount * 2 as a variable instead of redoing it each time? Anyway, working on my filesystem module: [cpp][SIZE=3]pathData path = filesystem->getPathData("./"); vector<string> paths = path.getChildren(); for(auto& path : paths) { ... }[/cpp][/SIZE]
[img]http://localhostr.com/files/v3xhoy6/USB%20Ripper.png[/img] What can I say. More shit from the dung heap. ~Hidden~ USB ripper (or so I guess it [I]should be[/I], I made it so you can't minimize that shit apparently) that'll silently rip the contents of any USB storage device connected to the computer to a folder named by the device name while it is activated to a folder along with some ~sneaky informationaise~ [img]http://localhostr.com/files/5ZfiHQM/ripz.png[/img] It asks for confirmation if the contents exceed 100 MB. That's broken, however. I wonder what evil deeds I had in mind when I coded this. [editline]4th March 2011[/editline] [QUOTE=likesoursugar;28419102]Add the cost for all the ciggaretes too :)[/QUOTE] Not a bad idea. I think I remember something about I made it for a good friend of mine, who've been smoking since he was 14 (he was 18 at the time of making that software), and I kinda wanted to show him what impact the smokes had on him (kinda y'know, it was mostly for fun, as I mentioned previously) Not a single fuck was given though.
[QUOTE=Within;28420505][img_thumb]http://localhostr.com/files/v3xhoy6/USB%20Ripper.png[/img_thumb] What can I say. More shit from the dung heap. ~Hidden~ USB ripper (or so I guess it [I]should be[/I], I made it so you can't minimize that shit apparently) that'll silently rip the contents of any USB storage device connected to the computer to a folder named by the device name while it is activated to a folder along with some ~sneaky informationaise~ [img_thumb]http://localhostr.com/files/5ZfiHQM/ripz.png[/img_thumb] It asks for confirmation if the contents exceed 100 MB. That's broken, however. I wonder what evil deeds I had in mind when I coded this. [editline]4th March 2011[/editline] Not a bad idea. [B]I think I remember something about I made it for a good friend of mine, who've been smoking since he was 14 (he was 18 at the time of making that software), and I kinda wanted to show him what impact the smokes had on him (kinda y'know, it was mostly for fun, as I mentioned previously) Not a single fuck was given though.[/B][/QUOTE] Well based on the values given in the link (14 minutes lost for every cigarette) you lose less than 4 years for 20 years of 20 a day. A better way to do it would be cancer statistics, because cancer can cut your life in two.
That's a lot of GB. :ninja:
Is there a way to make a TCP connection (to a peer) without having to port forward the port on the listening side?
[QUOTE=Darwin226;28421297]Is there a way to make a TCP connection (to a peer) without having to port forward the port on the listening side?[/QUOTE] No, you cannot listen on a port without forwarding it (or forcing the router to forward it somehow).
You could set up some sort of proxy server that both hosts can get to which relays between the two.
"You could pay for some sort of proxy server..." :( [editline]4th March 2011[/editline] How do programs like Skype do a P2P connection then?
Through a server at Skype's datacentre
But when I send a file or voice chat, the connection is direct. I mean, I can see the IP of the person I'm talking to when I look at active connections.
[QUOTE=Darwin226;28421433]But when I send a file or voice chat, the connection is direct. I mean, I can see the IP of the person I'm talking to when I look at active connections.[/QUOTE] ..except when their or your router blocks it and it goes through skype's servers. There are methods for breaking through such as hole punching but I'm not sure how well they work.
[QUOTE=Jallen;28420605]Well based on the values given in the link (14 minutes lost for every cigarette) you lose less than 4 years for 20 years of 20 a day. A better way to do it would be cancer statistics, because cancer can cut your life in two.[/QUOTE] Yeah I can't remember the exact values I used. And you're right, it can be executed way better.
Sorry, you need to Log In to post a reply to this thread.