Game programming

Moderators: None (Apply to moderate this forum)
Number of threads: 2047
Number of posts: 5331

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Line clipping Posted by Mutilate on 19 Nov 2000 at 3:50 PM
<br>
I'm doing an old stile 3d game in asm for atari falcon 68030 (just line and point).<br>
I need the fastest way to clip a line.<br>
(not the vector way p(x,y)=a(x,y)+t*u(x,y) because I will need to do a square root)<br>
<br>
when I draw (and first clip) I allready know:<br>
x0,y0 x1,y1<br>
w(line wight),h(line hight)<br>
and d(scale)=min(w,h)/max(w,h)<br>
<br>
clipping zone: x(-160,+160),y(-120,120)<br>
in a -2^15,2^15-1 (signed 16 bit) space<br>
<br>
thx (sorry, learning english...)<br>
<br>
Mutilate[0A]


Edit Report
Re: Line clipping Posted by Mutilate on 21 Nov 2000 at 12:54 PM
Ok was a dumb question, I found the solution by myself.<br>
Thx anyway to all who did not do nothing to dont do it anymore the first notime.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.