The background should be a sprite rather than 240 individual pngs, theres a bug with the sprite engine though and I cant set sprite heights.
Better maths for calculating the perspective ( any help… )
Make it faster, not too sure how as the movement it based on the position in the array the moment
Tested on a 3GS and it ran same as simulator. That should get better though with a proper setup [import]uid: 5354 topic_id: 1743 reply_id: 301743[/import]
Nice idea. Hopefully they’ll fix the sprite library soon and you can load the image in one go then define 320x1 frames size (this cause the simulator to crash for me when I called sprite.prepare()
Bitmap manipulation would be nice to have. Either as a Lua lib or a plain x-platform C plugin. [import]uid: 3953 topic_id: 1743 reply_id: 5173[/import]
Ive rewritten it to take one image and chop it into sprites this time. Setting is 48 sprites, 20px deep. The effect is coming along quite nicely, its a lot smoother now and its setup so I can increase the resolution of the 3D effect by increasing the sprites.
Ive included some easing functions, found in the sample code area of the site, by Stuart Carnie, which are used to draw the profile of the effect. At the moment im easing in from the horizon giving the effect the background is levelling off while the texture at the front has the effect of speeding up.
Thanks for sharing that. Very impressive. Runs real smooth on my 3GS. Amazing how many tricks you can tease out the script API. [import]uid: 3953 topic_id: 1743 reply_id: 5210[/import]
Hows about building in the option to rotate objects into the 3rd dimension or allowing us to set the 4 corner points of a plane and have the texture warp with it.
Then I could have some real fun!
[import]uid: 5354 topic_id: 1743 reply_id: 5486[/import]
Its not really usable at the moment but the demos work.
I was waiting for the sprite system to become stable before picking it up.
Hopefully with Carlos looking at vector3d transforms though it can be made to work much better. [import]uid: 5354 topic_id: 1743 reply_id: 9974[/import]