• What are you working on? v16
    5,004 replies, posted
[noparse]Regex ninjas, need a pattern to change all instances of: [tag=data]blah[/tag] or [tag=data] into <tag param="data">blah</tag> or <tag param="data">[/noparse]
[QUOTE=xAustechx;29160742]That might actually be because of the screen cap, it doesn't seem blurry at all to me in game. But thanks to you all for the advice on it, I'll get to work on it right now. : ) [img_thumb]http://i52.tinypic.com/2vwhhtk.png[/img_thumb] Thar you go.[/QUOTE] Text alignment is much better. And yeah, it does seem blurry...
Update project to the latest physics engine. BREAK EVERYTHING.
How should I go about including multiplayer in my game? I'm not sure what I should do for this. The best idea I can come up with is creating an entity which is completely moved and update based on data from whatever server you're playing on.
if anyone has firefox and chrome installed, check out the speed difference on [url]http://spec.jimbomcb.net/canvastest/[/url] in the two browsers
[QUOTE=Jimbomcb;29161634]if anyone has firefox and chrome installed, check out the speed difference on [url]http://spec.jimbomcb.net/canvastest/[/url] in the two browsers[/QUOTE] Firefox 4: 4ms average per tick Chrome 10: 9ms average per tick
Crazy, in firefox 3 it's up to like 20ms a tick and I have a very strange problem where it's just totally blank on firefox, but it shows fine when firebug is open...
[QUOTE=ZenX2;29161597]How should I go about including multiplayer in my game?[/QUOTE] I assume the game has already been written. Generally, it's more difficult to integrate multiplayer into a game that has already been written than one that has not, as the whole multiplayer aspect is done in the planning stages of development. A bit more information pertaining to your knowledge of sockets and what sockets API you will be using for the multiplayer would be helpful in determining the veracity of your request.
[QUOTE=Jimbomcb;29161673]Crazy, in firefox 3 it's up to like 20ms a tick[/QUOTE] Don't use an (relatively) outdated browser?
[QUOTE=DuCT;29161684]Don't use an (relatively) outdated browser?[/QUOTE] i didn't say it was causing a problem for me, I was just surprised at the speed differences in my code in different browsers.
Considering that it doesn't even load in Firefox for me, I'd say 0ms. But in Chrome it's 8ms.
[QUOTE=Jimbomcb;29161736]i didn't say it was causing a problem for me, I was just surprised at the speed differences in my code in different browsers.[/QUOTE] If I remember correctly (which I'm probably not), the Firefox team did a rewrite of something, which is probably what is the cause of the decrease.
[QUOTE=The Inzuki;29161763]Considering that it doesn't even load in Firefox for me[/QUOTE] 3 or 4
[QUOTE=Jimbomcb;29161790]3 or 4[/QUOTE] 3, upgraded to 4. Let me try now.
Does anyone have a decent tutorial for networking in C++ for UDP?
4ms for Firefox 4. my automerge
I was getting 18
I just have 3ms in Firefox 4
turns out the .obj format starts vertex indices at 1, and OpenGL starts them at 0. Adding " - 1" turned the model from a giant pile of 69,451 triangles to an actual model. [img_thumb]http://i.imgur.com/iYBeC.png[/img_thumb] And I added in the light at the very end to make sure normals are being processed properly, which is why you see all the fixed function lighting stuff on the right. That'll probably all be taken out once I start learning HLSL.
[csharp]new Regex("name=\\\\\"form\\\\\"");[/csharp] [img]http://i54.tinypic.com/2znwx3a.png[/img]
[QUOTE=high;29162814][csharp]new Regex("name=\\\\\"form\\\\\"");[/csharp] [img_thumb]http://i54.tinypic.com/2znwx3a.png[/img_thumb][/QUOTE] yes
[QUOTE=Hexxeh;29160939][noparse]Regex ninjas, need a pattern to change all instances of: [tag=data]blah[/tag] or [tag=data] into <tag param="data">blah</tag> or <tag param="data">[/noparse][/QUOTE] What you could do is parse the string and when you get to the opening tag push it into a stack along with it's contents and index. Do this until you reach a closing tag, then pop the last open one and loop from the open one to the closed one adding everything into a new object that can contain strings as well as other objects of it's type (to allow nesting). It also needs to hold the contents of the opening tag. After the outer loop is done, you should have everything you need. It's really not that slow. [editline]14th April 2011[/editline] [QUOTE=ZenX2;29156624]What does declare shape do?[/QUOTE] If there wasn't a declare shape there, shape = new ColoredShape() would make a new shape object in it's current scope and the update function wouldn't be able to use it since it would get destroyed when exiting the OnLoad scope.
[QUOTE=Jimbomcb;29161634]if anyone has firefox and chrome installed, check out the speed difference on [url]http://spec.jimbomcb.net/canvastest/[/url] in the two browsers[/QUOTE] Chrome 12: [url]http://imgur.com/yxOw7.png[/url] Firefox 4: [url]http://imgur.com/swJCk.png[/url], freezes for a few ms every second
Same for me, 4ms in FF (no freezes though) and 1ms in Chrome.
[QUOTE=robmaister12;29162486]...the very end to make sure normals are being processed properly, which is why you see all the fixed function lighting stuff on the right. That'll probably all be taken out once I start learning [b]HLSL[/b].[/QUOTE] DirectX shader language in OpenGL?
Implemented Source style spawn points and teams in TopWise. It's starting to look like everything is inspired by source :P
[QUOTE=Darwin226;29164630]DirectX shader language in OpenGL?[/QUOTE] I meant GLSL, but you probably already knew that... And the G and H keys are really close together.... I really have no excuse for that mix-up. meh
[QUOTE=Jimbomcb;29161634]if anyone has firefox and chrome installed, check out the speed difference on [url]http://spec.jimbomcb.net/canvastest/[/url] in the two browsers[/QUOTE] 9ms in chrome. 13ms in firefox. Not really that big a difference. Also it runs at like 4ms in firefox if I make the window smaller since my desktop is 1080p.
[QUOTE=Jimbomcb;29161634]if anyone has firefox and chrome installed, check out the speed difference on [url]http://spec.jimbomcb.net/canvastest/[/url] in the two browsers[/QUOTE] Chrome 12 (dev): 7 ms Same with GPU canvas: 1 ms Firefox 4: 3 ms
Hurray for rewriting code for no reason, [url]http://heat.jimbomcb.net/[/url]
Sorry, you need to Log In to post a reply to this thread.