View unanswered posts | View active topics It is currently Thu Jan 16, 2025 11:08 am



Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
 Cortex Command Online - Download Now! 
Author Message
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Cortex Command Online - Download Now!
BMPToArray was written by me to produce pixels for only one material. Theoretically, you could have a pixel to represent every colour and every material, which would end up being 256x256 MOPixels (unless you want to go through and manually find every material that's used). You could get a program to generate all 65536 pixels, but that would be a pretty massive file, and yeah, in the end it would be extremely laggy to not only detect but recreate said pixels. As well, how would the server determine whose data is giving the right representation of terrain?


Tue Sep 14, 2010 6:27 am
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Cortex Command Online - Download Now!
average vote on each pixel. totally feasible :)

Surely you only need to get the material from the pixel and the colour from the bitmap based on the offset though? Each of the texture files is only like 128x128, so yes reading them would be a little bit of a ♥♥♥♥ you to your load time but you could get the offset pixel needed to keep the pattern going pretty easily and then apply that to what you receive as a block of material index. You wouldn't be able to do much with gibs and the like though, or bunker module concrete or metal :/


Tue Sep 14, 2010 6:59 am
Profile WWW
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Cortex Command Online - Download Now!
Yeah, that's mostly what I was thinking of. Dirt would be easy to do, but most of the map is bunker modules and gibs, so unless you removed that, it would be weird-looking. That and the ever-present lag problem, of course. Good point about the averaging, though, that actually might work.


Tue Sep 14, 2010 11:11 pm
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Cortex Command Online - Download Now!
another thing would be to do a scan of what isn't there that should be and subtract holes from that. gibs rarely block terrain, so the lack of corpses wouldn't matter much, and the amount of terrain you take away compared to the amount you'd need to put down is usually a lot less.


Wed Sep 15, 2010 1:57 am
Profile WWW
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Cortex Command Online - Download Now!
What if the other person doesn't have enough gibs on-screen, though?


Wed Sep 15, 2010 4:21 am
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Cortex Command Online - Download Now!
They're quite unlikely to much that much up, surely, assuming we aren't playing with the old scrap metal materials :P It's better than the current clientside-only solution, in any case.


Wed Sep 15, 2010 4:56 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.040s | 13 Queries | GZIP : Off ]