Hi,
I've only come across Gideros in the last 24 hours and I've got some initial questions on it if anybody could help me out. A bit of background is probably in order. I wrote my last app in cocos2d but have been looking, since the new year, for a cross-platform SDK. I've been trying out Corona for the last few weeks but when I came across Gideros I was interested to see how quick development appears to have been and that there is a plugin system. But, there are some basic questions on built-in support I'd like answering if possible.
1. Z Ordering. Is there built in support for z ordering and being able to alter the order easily? In Corona there's only the ability to move to back or to front, and everything else you have to remove a display object and re-insert it to change ordering.
2. Texture Atlas. Are there built in methods for bringing static textures from a packed texture (I use TexturePacker which I believe already supports Gideros). In Corona the texture atlas features are poor and are really geared towards sprite frames, rather than packing and using static imagery in packed textures.
3. Are all textures loaded as 32-bit? Coming from cocos2d, it was possible to change the bit depth dynamically so if you only needed 16-bit for some imagery you could change the mode, load the texture, then change it back for other textures. Essentially, you could mix 16 and 32 bit, which is efficient for texture memory usage.
4. Audio. Is there built in support for simple left/right positional audio? Along with support for playing individual samples at different volumes plus altering the volume of any mp3 streaming?
5. Content clipping. Is there any built-in support for clipping content, for instance scrollable areas that don't extend to screen edges (think a scrolling popup for instance) etc. I'm thinking here of something implemented using the glScissor facility in Open GL. In Corona everything has to be done with masks, even for simple rectangular clipping.
6. Particles. Am I right in thinking that there is currently no built-in particle support? Is there already a plugin available to add particles?
7. Is there a concept of layers in Gideros, or grouping of display objects into containers that can be transitioned as a whole?
Anyway, sorry for all the questions, I'm just trying to get a handle on whether I should invest more time in looking at Gideros over Corona now, before I take the plunge with that.
Cheers,
Gareth
Comments
1. No build it in support right now, the last added is on top (so you can manage z ordering by removing and adding sprites)
6. @GregBUG is making one http://www.giderosmobile.com/forum/discussion/402/gda-particle-engine-for-gideors-early-preview-#Item_12
7. Yes there is, starting from Sprite and anything derived from it, can have children, meaning your group container can be practically anything, starting from simple sprite, to movieclip.
Dislikes: Yan
Thanks on point 6, that looks promising.
And on point 7, that's great. I'll be happy to work with that (you could do similar things with cocos2d).
Likes: Dale
How long do you think until clipping for other assets is available?
let me add my 2 cents. Atilim and Gorkem are goind to Casual Connect this weekend, might be that it takes time for a reply from atilim. Here Sprite:AddChild, Sprite:AddChildAt, Sprite:RemoveChild and SpriteRemovechildAt are your friends. It could be that you only need AddChildAt to reorder. I didn't test this. Do you mean if the TexturePacker supports rotated sprites? It doesn't but the packed texture is an atlas if you want to use that term. From what I know, all textures are convert to 32 bit internally.
You can set the volume of a sound channel but you can't position it left or right.
You can do something like this kinda with the Blend functionality but it isn't a real clipping mask. That is definately something we need. Cheers
Michael
Addition to above, we have addChildAt function after beta3 (you can update to beta8 from here http://88.198.22.6/downloads/beta/)
3. Currently not supported but this is important. Added to the requests list. I'm somewhat against PVR textures but 16-bit textures usually look good.
4. Each playing sound is controlled by a SoundChannel object and you can change the volume of both static (.wav) and streaming (.mp3) channels by using SoundChannel:setVolume(volume). But we're not support adjusting volumes of left/right channels independently because OpenAL doesn't support it officially:
concepts such as panning and left/right channels are not directly supported
http://connect.creativelabs.com/openal/Documentation/OpenAL 1.1 Specification.htm
5. We're still thinking about a good way to clip. Both polygonal clipping (glScissor) and texture masks (OpenGL texture combiners) have both advantages and disadvantages. But, mostly we're in favor of glScissor. Do you know what cocos2d is using to clip?
1. atChildAt should be sufficient I think. If you add an object that's already added, would it be removed and placed at the required position using atChildAt or do you need to remove it first? Not a problem, either way, just checking.
2. On texture atlases - that's great.
3. Glad to hear it's being looked into. It's great for helping limit texture memory. For my game in cocos2d - it's here if you're interested to see what I've produced before - http://itunes.apple.com/gb/app/arthur-charles-present-create/id454675579?mt=8 - I loaded quite a bit in 16 bit where quality didn't suffer, the rest in 32-bit.
4. Ah I'm getting the same answer here that I got from the Corona devs. I'm fully aware that positional audio in OpenAL is a more complex beast than just left/right panning but left/right panning is kind of standard. It's reasonable to expect it from the SDK in my opinion, especially as people use headphones with mobile devices. Audio is important, panning helps to create atmosphere.
5. It wasn't actually supported by cocos2D in the core, but there was neat little class created by a third party to extend the nodes in cocos2D to provide it using glScissor. It's here: http://www.learn-cocos2d.com/2011/01/cocos2d-gem-clippingnode/
Anyway, thanks everybody for the quick replies so far. It's helping a lot.
http://giderosmobile.com/DevCenter/index.php/New_Ideas_for_Gideros_Studio
Feel free to ask us to add your requests.
---------------------------------------