Spring in a browser window

Spring in a browser window

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Spring in a browser window

Post by Beherith »

Is this even possible? Because I would like to try to implement minimods running like this, with no install needed. Since the dl can be trimmed to about 30 megs, which is totally acceptable by todays dsl standards.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring in a browser window

Post by imbaczek »

quake did it, i don't see why spring couldn't do it.

of course, then there's a question of actually _doing_ it 8)
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Spring in a browser window

Post by CarRepairer »

Start with a flash-based replay viewer.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring in a browser window

Post by imbaczek »

unpossible
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring in a browser window

Post by aegis »

not quite... flash has a 3d engine... given the time and motivation, I could make a replay viewer.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Spring in a browser window

Post by imbaczek »

remember a replay is only network traffic saved to disk, you'd have to implement all of spring's sim code down to the fpu instructions. it's possible but extremely unfeasible.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring in a browser window

Post by aegis »

yep :P
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Spring in a browser window

Post by Tobi »

Wasn't there a C++ compiler outputting flash bytecode?
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring in a browser window

Post by aegis »

As an example of the complexity of this project, the engineers ported the C++ version of Quake 1 engine into Flash Player and it worked perfectly and performed well. It is an extreme case but showcased the potential of this project.
http://brajeshwar.com/2008/cc-to-actionscript-compiler/
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Spring in a browser window

Post by BrainDamage »

aegis wrote:
As an example of the complexity of this project, the engineers ported the C++ version of Quake 1 engine into Flash Player and it worked perfectly and performed well. It is an extreme case but showcased the potential of this project.
http://brajeshwar.com/2008/cc-to-actionscript-compiler/
good luck in replicating all the haxes that boost relies on
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Spring in a browser window

Post by CarRepairer »

Assuming the spring sim was was implemented in flash (I can understand the point that this is a ridiculous task), I was imagining just a 2D replay viewer, no need for 3D. So you could view replays as dot wars, isometric, or some other 2D way. It would be cool.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring in a browser window

Post by aegis »

you'd still need to implement all of the physics :P
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Spring in a browser window

Post by zwzsg »

You're still missing the point that replays only stores players input.

To know where the points are, you have to resimulate the whole game. Completly, in 3D, down to every cob instruction idiosyncrasy, down to zero error on 3D models vertice positions, because if that sumo was 1/30 smaller, then that plasma shot would have missed it, crashed into the morty behind, which would have died sooner, so wouldn't have been able to finish that fusion 3 mins later, which in turn ....
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring in a browser window

Post by aegis »

not missing the point at all. it would basically need to be a reimplementation of all of spring's simulation code.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Spring in a browser window

Post by zwzsg »

I, of course, wasn't replying to you, but to Otherside.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Spring in a browser window

Post by CarRepairer »

zwzsg wrote:I, of course, wasn't replying to you, but to Otherside.
A) Why are you calling me otherside? The spelling of my screen name isn't remotely close to it.

B) Do you often skip the first two lines of posts when you read them or only this time?
CarRepairer wrote:Assuming the spring sim was was implemented in flash (I can understand the point that this is a ridiculous task),
I feel doubly insulted.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Spring in a browser window

Post by zwzsg »

CarRepairer wrote:A) Why are you calling me otherside?
I don't know. :oops: Sorry.

Maybe because both of you have a round avatar, expect yours is square?
CarRepairer wrote:Assuming the spring sim was was implemented in flash (I can understand the point that this is a ridiculous task),
Looks like I missed the word "sim" too, sorry.
CarRepairer wrote:I was imagining just a 2D replay viewer, no need for 3D. So you could view replays as dot wars, isometric, or some other 2D way. It would be cool.
That point about going 2D made me feel that you thought there was a way to simplify the engine, so I went on explaining why the sim has to be in 3D. Maybe I should have instead talked about how unlike most commercial games, Spring is more CPU intensive than GPU intensive.

I'll go sleep before I type any more mistake. :arrow:
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Spring in a browser window

Post by CarRepairer »

It wouldn't have been such a big deal if it were any other name but that one! :P
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Re: Spring in a browser window

Post by el_matarife »

Use Google's native code sandbox plugin: http://arstechnica.com/open-source/news ... plugin.ars I'm pretty sure it can make OpenGL calls judging by the Quake port.
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Spring in a browser window

Post by MidKnight »

CarRepairer wrote:It wouldn't have been such a big deal if it were any other name but that one! :P
:mrgreen:
Post Reply

Return to “General Discussion”