OZONE Asylum
Forums
DHTML/Javascript
New junkie says hello
This page's ID:
28141
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quickReply] [b]racerX:[/b] Hello and welcome to the Asylum. You arrive right at the point where I was striving for new people coming with crazy stuffs. To fix your flickering problem, do some double buffering, that is : render the whole thing in a canvas that is not displayed ( or not even in the DOM tree ), and once the whole frame is drawn/built in it, copy it into the canvas that is in the DOM tree. To draw some sprites, in DHTML I used a zIndex on each 'slice' and that work all by itself. Using canvas, you'll probably have to create a zBuffer of some sort. It can be as simple as casting the rays, but storing the slices ( the texture, texture position, and depth ) in an Array. Process the entities, place them in the same Array. Sort it and finally render the slices & entities. Hope that helps, [/quickReply] [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 06-29-2006 09:46)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »