[QUOTE=high;31949573]How did I never see this?
[media]http://www.youtube.com/watch?v=3p9XUwIlhJg[/media]
Going to have to give it a try.[/QUOTE]
I went to look it up... VS2010 Ultimate only. Which means my Dreamspark copy of VS2010 Pro can't run it :suicide:
I'm working on a kind of webserver using C++, except instead of just handing out html files, the files are generated using C++ on request.
You can see it in action [URL=http://kiporshnikov.dyndns.info:8081]here[/URL]
And the (slightly confusing :v:) source code:
Whenever someone clicks a button on the website, the actual button instance receives the event.
[cpp]
class TestButton : public Button
{
public:
TestButton(string identifier, string text, Application *application) : Button(identifier, text, application) {}
void OnEvent(string name)
{
printf("Client[%s] sent: %s, %s\n", m_application->GetClient()->getRemotePeer().getStringAddress(), name.c_str(), m_identifier.c_str());
}
};
void Application::Setup()
{
Table *tbl = (Table *)AddElement(new Table("", this));
tbl->attributes["border"] = "1";
tbl->attributes["width"] = "400";
tbl->attributes["height"] = "400";
tbl-> // Table
AddElement(new TableRow("", this))-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonA", "0, 0", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonB", "1, 0", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
GetParent()-> // Table
AddElement(new TableRow("", this))-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonC", "0, 1", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonD", "1, 1", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
GetParent()-> // Table
style["background-color"] = "blue";
char str[128];
sprintf(str, "Hello, %s", m_client->getRemotePeer().getStringAddress());
AddElement(new TestButton("MyButton", string(str), this))->
style["font-weight"] = "600";
}
[/cpp]
So what do you guys think of Flixel?
[QUOTE=high;31949573]How did I never see this?
[media]http://www.youtube.com/watch?v=3p9XUwIlhJg[/media]
Going to have to give it a try.[/QUOTE]
It's also not compatible with c++. :(
and howcome this has never been mentioned before!
[url]http://luagl.sourceforge.net/[/url]
Because that binding uses extremely deprecated OpenGL, and is useful in few instances.
[editline]26th August 2011[/editline]
Don't let that stop you though, make something cool in it, something so cool we have to wear sunglasses.
[QUOTE=Bambo.;31950814]and howcome this has never been mentioned before!
[url]http://luagl.sourceforge.net/[/url][/QUOTE]
It's a pretty good idea, but not implemented very well.
[QUOTE=Bambo.;31950814]and howcome this has never been mentioned before!
[url]http://luagl.sourceforge.net/[/url][/QUOTE]
It sucks - majorly.
It doesn't support any modern OpenGL features (uses fixed-pipeline).
Use [url=https://github.com/malkia/ufo]this[/url] instead; it's brilliant.
[QUOTE=Deco Da Man;31951292]It sucks - majorly.
It doesn't support any modern OpenGL features (uses fixed-pipeline).
Use [url=https://github.com/malkia/ufo]this[/url] instead; it's brilliant.[/QUOTE]
Cool, thanks for showing me that!
[QUOTE=high;31949573]How did I never see this?
[media]http://www.youtube.com/watch?v=3p9XUwIlhJg[/media]
Going to have to give it a try.[/QUOTE]
Why must it only be available for VS Ultimate, this is just so awesome.
I am figuring out a way for my AI to be able to program by itself and then compile it and integrate it with the brain. More then this I will not say because the fear of someone copying my idea is too big, once I succeed I will file a patent or copyright. Can patents work on Software?
[QUOTE=Mr.T;31951872]I am figuring out a way for my AI to be able to program by itself and then compile it and integrate it with the brain. More then this I will not say because the fear of someone copying my idea is too big, once I succeed I will file a patent or copyright. Can patents work on Software?[/QUOTE]
How's the progress on your fusion reactor and your UN serverfarm, by the way?
[editline]1[/editline]
Did you manage to build that experimental aircraft of yours?
[QUOTE=Mr.T;31951872]I am figuring out a way for my AI to be able to program by itself and then compile it and integrate it with the brain. More then this I will not say because the fear of someone copying my idea is too big, once I succeed I will file a patent or copyright. Can patents work on Software?[/QUOTE]
You have a really, really active imagination, don't you?
[editline]26th August 2011[/editline]
[QUOTE=VistaPOWA;31951900]How's the progress on your fusion reactor and your UN serverfarm, by the way?
[editline]1[/editline]
Did you manage to build that experimental aircraft of yours?[/QUOTE]
This should explain all
[img]http://i.imgur.com/q7qr3.jpg[/img]
Dynamic quadtree
[img]http://dl.dropbox.com/u/3685777/7440c13e1bd5016d3a5162ebf1795ce7.png[/img]
A node splits itself when it contains more than n points (n being 5 in the image)
Going to use this for a physics engine if I get around to it.
[QUOTE=Mr.T;31951872]I am figuring out a way for my AI to be able to program by itself and then compile it and integrate it with the brain. More then this I will not say because the fear of someone copying my idea is too big, once I succeed I will file a patent or copyright. Can patents work on Software?[/QUOTE]
Have you managed to find any ducted fans for your VTOL?
Or perhaps those solar panels with an eficiency of over 100% so you can actualy lift the damn thing off the ground?
[QUOTE=chrishind10;31952138]Have you managed to find any ducted fans for your VTOL?
Or perhaps those solar panels with an eficiency of over 100% so you can actualy lift the damn thing off the ground?[/QUOTE]
Apparently unmanned planes were illegal here in Sweden.
And please stop posting my face.
[QUOTE=Mr.T;31952159]Apparently unmanned planes were illegal here in Sweden.
And please stop posting my face.[/QUOTE]
Oh so that's the reason you didn't finish it?
[QUOTE=Dr Magnusson;31952288]Oh so that's the reason you didn't finish it?[/QUOTE]
Yes.
[QUOTE=Mr.T;31952159]And please stop posting my face.[/QUOTE]
No.
[IMG]http://i.imgur.com/q7qr3.jpg[/IMG]
[img]http://i.imgur.com/SIDGy.jpg[/img]
What are you working on version "Post pictures of 12 year olds instead of content"
[QUOTE=Dr Magnusson;31950489]I'm working on a kind of webserver using C++, except instead of just handing out html files, the files are generated using C++ on request.
You can see it in action [URL=http://kiporshnikov.dyndns.info:8081]here[/URL]
And the (slightly confusing :v:) source code:
Whenever someone clicks a button on the website, the actual button instance receives the event.
[cpp]
class TestButton : public Button
{
public:
TestButton(string identifier, string text, Application *application) : Button(identifier, text, application) {}
void OnEvent(string name)
{
printf("Client[%s] sent: %s, %s\n", m_application->GetClient()->getRemotePeer().getStringAddress(), name.c_str(), m_identifier.c_str());
}
};
void Application::Setup()
{
Table *tbl = (Table *)AddElement(new Table("", this));
tbl->attributes["border"] = "1";
tbl->attributes["width"] = "400";
tbl->attributes["height"] = "400";
tbl-> // Table
AddElement(new TableRow("", this))-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonA", "0, 0", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonB", "1, 0", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
GetParent()-> // Table
AddElement(new TableRow("", this))-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonC", "0, 1", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
AddElement(new TableColumn("", this))-> // Column
AddElement(new TestButton("ButtonD", "1, 1", this))-> // Button
GetParent()-> // Column
GetParent()-> // Row
GetParent()-> // Table
style["background-color"] = "blue";
char str[128];
sprintf(str, "Hello, %s", m_client->getRemotePeer().getStringAddress());
AddElement(new TestButton("MyButton", string(str), this))->
style["font-weight"] = "600";
}
[/cpp][/QUOTE]
Nice work, reminds me of Wt.
How are you storing state? Client side ala. WebForms ViewState, or server side with a session token?
[QUOTE=moonage;31953498]Nice work, reminds me of Wt.
How are you storing state? Client side ala. WebForms ViewState, or server side with a session token?[/QUOTE]
Yeah, it is a lot like Wt, except on a much smaller scale. And I'm not storing any state, I didn't think it through very well before I began writing :v:
That's my balcony!
The collision detection is awesome.
[img]http://img843.imageshack.us/img843/8848/9727366906c57c5d43fb045.png[/img]
Started working on a Marble Madness-ish game with physics puzzles. So far you can already roll the ball around and the physics work (although the ball does feel a little heavy and funky because it's low-poly, but I'll fix that later), but I didn't have any levels to test it on so I decided to make some parts:
[img]http://u.cubeupload.com/Samuka97/ballanceripoff.png[/img]
I can't model or texture though. :saddowns:
Fun fact: I'm not twelve, my age is older then 14.
[QUOTE=ralle105;31952097]Dynamic quadtree
[img]http://dl.dropbox.com/u/3685777/7440c13e1bd5016d3a5162ebf1795ce7.png[/img]
A node splits itself when it contains more than n points (n being 5 in the image)
Going to use this for a physics engine if I get around to it.[/QUOTE]
I might be pointing out something you already know, but you should make sure you have a limit on quadtree depth. Placing six objects with the same origin will break it if you don't.
[QUOTE=Mr.T;31954622]Fun fact: I'm not twelve, my age is older then 14.[/QUOTE]
I just want to say that you're the first person on the Internet that I'm genuinely not sure if is trolling or not.
[QUOTE=Mr.T;31954622]Fun fact: I'm not twelve, my age is older then 14.[/QUOTE]
Err... 14.1?
[QUOTE=ROBO_DONUT;31954690]I might be pointing out something you already know, but you should make sure you have a limit on quadtree depth. Placing six objects with the same origin will break it if you don't.[/QUOTE]
Just do it for the origins, treat x points on the same origin as one to generate the quad tree.
Sorry, you need to Log In to post a reply to this thread.