Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: dot spheres
Posted by: earx Jan,17.2006-11:18 

you can optimise the 3d rotations by using skipping the perspective (which everybody does). this saves 33% of the time transformation time. furthermore, you can replace the multiply/adds with table lookups. this limits the range to [-128,127] but it's enough for a lame dot ball ;)

if the dot ball is symmetrical you can also optimise for that by using add and sub versions of the look-up.. that's where you can really save cycles..

move.w dm,dx ; dx.w=matrix coef ($UUuu)
move.b dc,dx ; dx.w=$UUVV (matrix coef|coord)
add.b (a0,dx.w),dy ; perform MAC

and if you're really a cheater you can even precalc the entire dotball to a 1 bit plane sprite.. you need to carefully select the rotation period.. you may even use mirroring to double the period.. anyway, this is only done on small dotballs, where you want multiple of them on screen.









[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
dot spheres jasn Jan,17.2006-03:07
  Re: dot spheres earx Jan,17.2006-11:18
    Re: dot spheres Leonard Jan,17.2006-14:57
      Re: dot spheres jasn Jan,20.2006-02:14
        Re: dot spheres Leonard Jan,20.2006-15:33
        Re: dot spheres earx Jan,20.2006-16:48
          Re: dot spheres jasn Jan,21.2006-02:29
            Re: dot spheres earx Jan,23.2006-10:27
        Re: dot spheres jasn Jan,22.2006-20:41
  Re: dot spheres CiH Jan,21.2006-16:12


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson