Advertisement



Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions > Development Help

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Help For help from coding to error finding to that one thing you just can't get right

Reply
 
LinkBack Thread Tools
Old 05-12-2008, 09:23 AM   #1 (permalink)
Jr. Member
 
Join Date: Nov 2006
Posts: 362
Reputation: 30
Send a message via MSN to Ricardo Dawkins
Default Someone can help this guy making this game...


I played the game he linked at XNA forums and the gameplay is addictive. I plea that some of you C# programmer can help him building a version of that game for the Zune device.

Check his post at the XNA forums...
http://forums.xna.com/thread/61324.aspx

The game is Bloons Tower defense...
http://djxmmx.net/entertainment/game...asp?size=small



__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Black Zune 80 & Samsung YH-J70 + Zune 80 Premium + AKG K26p + JVC HA-FX33 Blue -Marshmallows-

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





Ricardo Dawkins is offline   Reply With Quote
Old 05-12-2008, 10:13 AM   #2 (permalink)
Supreme Zune God
Support Team
Zune Freak
 
Man.'s Avatar
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 1,205
Reputation: 82
Default

This game is ok, I came across it yesterday. The "bloons" game is better (you have to pop the bloons - very addictive).

I think it would be difficult to port the game and also it would be too big exceeding 16mb.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



Man. is offline   Reply With Quote
Old 05-12-2008, 01:40 PM   #3 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
Reputation: 26
Default

16mb is the amount of runtime memory a game can use, not the amount of space it can take up. Would definately fit within that limit.

The problem is that he is hiring someone and you are not allowed to use the 3.0CTP for commercial purposes according to the EULA.
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline   Reply With Quote
Old 05-12-2008, 01:41 PM   #4 (permalink)
Jr. Member
 
Join Date: Nov 2006
Posts: 362
Reputation: 30
Send a message via MSN to Ricardo Dawkins
Default

That small game will take 16MB of RAM. Someone needs to optimize the coding.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Black Zune 80 & Samsung YH-J70 + Zune 80 Premium + AKG K26p + JVC HA-FX33 Blue -Marshmallows-

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





Ricardo Dawkins is offline   Reply With Quote
Old 05-12-2008, 01:54 PM   #5 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
Reputation: 26
Default

Quote:
Originally Posted by Ricardo Dawkins View Post
That small game will take 16MB of RAM. Someone needs to optimize the coding.
Uh... what?
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline   Reply With Quote
Old 05-12-2008, 11:55 PM   #6 (permalink)
Jr. Member
 
Join Date: Nov 2006
Posts: 362
Reputation: 30
Send a message via MSN to Ricardo Dawkins
Default

I mean the graphics and the gameplay on that flash game can't take 16MB of RAM, right ?

Those ballons are 2D sprites, the same as every graphics on the game. What can take more than 16MB from that game ?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Black Zune 80 & Samsung YH-J70 + Zune 80 Premium + AKG K26p + JVC HA-FX33 Blue -Marshmallows-

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





Ricardo Dawkins is offline   Reply With Quote
Old 05-13-2008, 05:42 AM   #7 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
Reputation: 26
Default

Quote:
Originally Posted by Ricardo Dawkins View Post
I mean the graphics and the gameplay on that flash game can't take 16MB of RAM, right ?

Those ballons are 2D sprites, the same as every graphics on the game. What can take more than 16MB from that game ?
Nah. You can fit a 4000x3000 image into 5 megabytes of space. With replication and some compression that game can easily fit within the limits. GW3 uses a lot of sprites and fits fine.
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline   Reply With Quote
Old 05-13-2008, 08:05 AM   #8 (permalink)
Jr. Member
 
Omnidragon's Avatar
 
Join Date: Dec 2007
Posts: 287
Reputation: 18
Default

you do know that images cannot be compressed in memory right? not in RAM any way. the only way to reduced their size is to use vector graphics and have them as mathematical equations
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



Omnidragon is offline   Reply With Quote
Old 05-13-2008, 08:10 AM   #9 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
Reputation: 26
Default

Quote:
Originally Posted by Omnidragon View Post
you do know that images cannot be compressed in memory right? not in RAM any way. the only way to reduced their size is to use vector graphics and have them as mathematical equations
Yes, I meant compression using a program like Photoshop. For the backgrounds in GW3 I saved at least a megabyte so far by using some pretty tough jpeg compression. What is nice is that on the zune, you can't tell the difference.
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline   Reply With Quote
Old 05-14-2008, 02:43 PM   #10 (permalink)
Zuner
 
Join Date: May 2008
Location: WA
Posts: 71
Reputation: 12
Default

Quote:
Originally Posted by Omnidragon View Post
you do know that images cannot be compressed in memory right? not in RAM any way. the only way to reduced their size is to use vector graphics and have them as mathematical equations
The only time an image needs to be expanded to full size is when it is rendered to the screen becuase at that point it has to fill all of the pixels.

But images are very commonly compressed in memory using exactly the same compression you see on disc. JPG, PNG and ZIP.

In addition there are speciality image compression file formats called DXT which are used heavily to reduce texture sizes on graphics cards. See http://en.wikipedia.org/wiki/S3_Texture_Compression





TheZMan is offline   Reply With Quote
Old 05-14-2008, 04:32 PM   #11 (permalink)
Administrator
Ultimate Zuner
 
Join Date: Jul 2006
Location: Fullerton, CA
Posts: 5,833
Reputation: 247
Default

I love this game. Bloons Defense 2 is much better though, the one you posted is outdated.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




lpxxfaintxx is offline   Reply With Quote
Old 05-15-2008, 02:54 AM   #12 (permalink)
Jr. Member
 
Omnidragon's Avatar
 
Join Date: Dec 2007
Posts: 287
Reputation: 18
Default

Quote:
Originally Posted by jsedlak View Post
Yes, I meant compression using a program like Photoshop. For the backgrounds in GW3 I saved at least a megabyte so far by using some pretty tough jpeg compression. What is nice is that on the zune, you can't tell the difference.
Yes i was taking specifically about RAM no HDD space. once an image is leaded into memory it is uncomrpessed out to its raw size. this is why we cant use things like TIFF's in XNA as is doesn't know how to uncompress them
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



Omnidragon is offline   Reply With Quote
Old 05-15-2008, 04:40 AM   #13 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
Reputation: 26
Default

Quote:
Originally Posted by Omnidragon View Post
Yes i was taking specifically about RAM no HDD space. once an image is leaded into memory it is uncomrpessed out to its raw size. this is why we cant use things like TIFF's in XNA as is doesn't know how to uncompress them
Except that JPEG isn't a lossless compression. Thus compressing an image and saving does do some good. However, when XNA takes over, it remains in that state and is not compressed unless you choose a compression option in the pipeline as ZMan discussed. However, I do not think DXT1 is available on Zune.
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline   Reply With Quote
Old 05-15-2008, 06:52 AM   #14 (permalink)
Zuner
 
Join Date: May 2008
Location: WA
Posts: 71
Reputation: 12
Default

Quote:
Originally Posted by Omnidragon View Post
Yes i was taking specifically about RAM no HDD space. once an image is leaded into memory it is uncomrpessed out to its raw size.
As I put in my previous post this fact simply isn't true. Memory is just a place to store whatever you want you COULD quite happily store a compressed image.

But I think I get what you are saying now... in an XNA game the content pipeline will expand compressed images to their full uncompressed size. So a small jpg will turn into a large .xnb texture which in turn will take up a lot of RAM. (though in this case also more disc space)

The main reason for this is that GPUs need to be able to look up into a texture and grab pretty much any pixel at random depending on how you are drawing things and the angle of the camera. So storing in a compressed format like JPG or PNG is very inefficient as you would have to uncompress big chunks of the file just to get one pixel.

To deal with this we have .DXT files which are compressed AND allow fast random access lookup. In fact GPUs are optimised for this kind of texture. In this case the .xnb file and the footprint in RAM are smaller. You can use this by selecting the Texture processor and then the Texture format of DxtCompressed. Note that this is a lossy compression so you may get artifacts.

The problem can get even worse than expanding to full size. For 3d use it is advisable to use mip-maps (the default texture processor uses them). This creates a set of smaller images to prevent bad aliasing artifacts. So the resultant size is bigger than the raw image. But it improves the graphics by doing some preprocessing. A faster at runtime but bigger VS slower at runtime but smaller computer solution.


Quote:
Originally Posted by Omnidragon View Post
this is why we cant use things like TIFF's in XNA as is doesn't know how to uncompress them
Well XNA GS doesn't know how to uncompress TIFFs but this has nothing to do with the memory footprint. XNA framework itself doesn't understand any formats other than the texture and sprite output into .xnb files. The content processors are what converts from BMP JPG etc to that format. You could write yourself a TIF processor in under an hour since I'm pretty sure .Net can read them.





TheZMan is offline   Reply With Quote
Old 05-15-2008, 12:16 PM   #15 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
Reputation: 26
Default

Btw ZMan, I don't think we can use DXT1 on the Zune...
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline   Reply With Quote
Old 05-15-2008, 01:06 PM   #16 (permalink)
Zuner
 
Join Date: May 2008
Location: WA
Posts: 71
Reputation: 12
Default

Quote:
Originally Posted by jsedlak View Post
Btw ZMan, I don't think we can use DXT1 on the Zune...
That would make sense... I was really having a theoretical discussion with myself...

At the end of the day though its unlikley at this stage of the game that any of us have to worry about this stuff as the games are going to be very basic for a while at least.





TheZMan is offline   Reply With Quote
Old 07-21-2008, 09:54 PM   #17 (permalink)
Experienced Zuner
 
Fries's Avatar
 
Join Date: Feb 2008
Location: nevada
Posts: 112
Reputation: 10
Default

also someone pleas check the TD in my sig please
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"when no one knows Google it"-me

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




Fries is offline   Reply With Quote
Old 07-21-2008, 10:05 PM   #18 (permalink)
you lost the game.
zB Programmer
Section Staff
Zune Freak
 
itsnotabigtruck's Avatar
 
Join Date: May 2008
Posts: 1,216
Reputation: 462
Awards Showcase
Best username 
Total Awards: 1
Default

OMG...to set things straight:

All assets in RAM are completely uncompressed. If you feed a compressed image into XNA, the XNB it spits out will have raw, uncompressed image data. All this data gets loaded into RAM when you use ContentManager.Load.

However, you don't have to have all your assets loaded at once, and you can have more than 16 MB worth of files as part of your game. So as long as you're smart about keeping a minimal number of assets in RAM at any one time, it isn't a problem.

Also, you could make a TIFF ContentImporter if you really wanted to. It wouldn't have any benefit over PNG whatsoever though.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

signature by
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by itsnotabigtruck : 07-21-2008 at 10:18 PM.




itsnotabigtruck is online now   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All