Hi,

Does anyone know a good, optimized clipped line drawing routine? I'm sure there are a few around, but they are really hard to find. Also, it would be best if it supports 2byte coordinates (signed).
I have a couple that I've written, but I'm not too confident on the speed or accuracy of the routines. I am positive that BenRyves has an excellent one from his Nostromo raycaster.
EDIT: benryves gave me a clipping routine, and now it works.
ben_g wrote:
EDIT: benryves gave me a clipping routine, and now it works.
Great, that's good to hear. If you happen to find out that he's willing to have other people be able to use that routine, perhaps he or you could share it in our z80 Useful Routines topic. Smile
I didn't write the routine, qarnos did and let me use it in BBC BASIC. I guess you would need to ask him.
Hmm, I actually just finished one yesterday that I would be willing to share. It is by no means the most optimised piece I have made, but it allows drawing with a given pattern and has full sprite clipping. I also used it for raycasting XD I will be posting about it soon in another topic with screenies Smile

EDIT: http://www.cemetech.net/forum/viewtopic.php?p=184650#184650

Sorry, my internet was really buggy, so I couldn't post it until today.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
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 vote in polls in this forum

 

Advertisement