|
Atari coding BBS
Triangle clipping? |
Posted by: Symmetry of TNG
|
May,19.2005-13:09
|
Hi!
Thought to ask if anyone know of a good "tutorial" or C source of a good triangle gouroud shader WITH clipping!...
I have a integer based shader but the clipping is way to inefficient (checks each scanline) and i need some good alternatives to get ahead with my coding.
Its for the Jaguar, but I still ask here since I know you people have good knowhow of this ;)
some limitations:
-It needs to be Integer, preferabely 15bit signed.. (mults are OK DIVs are not, similar to the falcon DSP)
-NO edgebuffer!! ...(since I have 4Kb to fit the engine)
-Efficient clipping...
which is the main problem.. is SH with parametric like EQUs to find intersections a good thought? ..or is there a simpler & better way when dealing with triangles?
Or what about something like TaT did in sono (4k fish demo) ...(iirc) some kind of "edge intersection with boundary gives flags which boundaries to check against in SH (not to test all 4)" thing..?? ...(is that a CS-2Dline draw algo? or LB..? ahh well) ...
Pointers to what theories gives the ultimate drawer (in terms of speed & minimum size) would also be appresiated. So that i can finally code a "triangle library" that i can use for future projects, without thinking "it can be done better"...
Thanx for any replyes!
(and sorry for not beeing online alot, so any replyes from me can be delayed).
cheers!
/Symmetry of TNG
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Triangle clipping?
|
Symmetry of TNG
|
May,19.2005-13:09
|
Re: Triangle clipping?
|
deez
|
May,19.2005-13:33
|
Re: Triangle clipping?
|
Symmetry
|
May,19.2005-14:10
|
Re: Triangle clipping?
|
earx
|
May,19.2005-14:35
|
Re: Triangle clipping?
|
mikro
|
May,19.2005-14:50
|
Re: Triangle clipping?
|
deez
|
May,19.2005-15:51
|
Re: Triangle clipping?
|
ray
|
May,19.2005-17:07
|
Re: Triangle clipping?
|
Symmetry
|
May,19.2005-19:05
|
Re: Triangle clipping?
|
sqward
|
May,19.2005-23:19
|
Re: Triangle clipping?
|
earx
|
May,20.2005-10:22
|
Re: Triangle clipping?
|
ray
|
May,20.2005-11:41
|
Re: Triangle clipping?
|
earx
|
May,20.2005-12:13
|
Re: Triangle clipping?
|
Symmetry
|
May,24.2005-21:11
|
Re: Triangle clipping?
|
mikro
|
May,20.2005-21:01
|
Re: Triangle clipping?
|
earx
|
May,21.2005-00:25
|
Re: Triangle clipping?
|
sqward
|
May,21.2005-11:21
|
Re: Triangle clipping?
|
parapete
|
May,20.2005-21:26
|
Re: Triangle clipping?
|
earx
|
May,21.2005-00:43
|
Re: Triangle clipping?
|
sqward
|
May,21.2005-11:17
|
Re: Triangle clipping?
|
Gizmo
|
May,22.2005-18:09
|
Re: Triangle clipping?
|
Symmetry of TNG
|
May,24.2005-20:05
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|