CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 95 users online: 13 members, 56 guests and 26 bots.
Members: 16aroth6, blue_bear_94, Deep Thought, gbl08ma, HOMER-16, JosJuice, Piguy-3.14, Spyro543, willwac, zeldaking.
Bots: VoilaBot (2), Spinn3r (1), Magpie Crawler (3), Googlebot (19), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
ben_g


New Member


Joined: 22 Nov 2011
Posts: 77

Posted: 27 May 2012 04:44:49 pm    Post subject: clipped line drawing routine

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).
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55732
Location: Earth, Sol, Milky Way

Posted: 29 May 2012 11:06:12 am    Post subject:

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.
_________________


Back to top
ben_g


New Member


Joined: 22 Nov 2011
Posts: 77

Posted: 29 May 2012 11:51:30 am    Post subject:

EDIT: benryves gave me a clipping routine, and now it works.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55732
Location: Earth, Sol, Milky Way

Posted: 29 May 2012 02:39:26 pm    Post subject:

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
_________________


Back to top
benryves


Cemetech Expert


Joined: 12 Aug 2008
Posts: 1357
Location: London, United Kingdom

Posted: 29 May 2012 04:40:34 pm    Post subject:

I didn't write the routine, qarnos did and let me use it in BBC BASIC. I guess you would need to ask him.
Back to top
Xeda112358


Power User


Joined: 09 Nov 2010
Posts: 345

Posted: 06 Jun 2012 07:26:50 pm    Post subject:

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.
Back to top
Display posts from previous:   
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
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

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.028529 seconds.