log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- WROCC Newsletter Volume 41:11 reviewed (News:)
- WROCC March 2024 meeting o... Hughes and Peter Richmond (News:1)
- Rougol March 2024 meeting on monday with Bernard Boase (News:)
- Drag'n'Drop 13i2 edition reviewed (News:)
- South-West Show 2024 talks (News:4)
- February 2024 News Summary (News:1)
- Next developer fireside chat (News:)
- DDE31d released (News:)
- South-West Show 2024 Report (News:)
- South-West Show 2024 in pictures (News:)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
The Icon Bar: Programming: Matrices in assembler
 
  Matrices in assembler
  andrew (09:52 8/2/2001)
   (12:07 8/2/2001)
     (13:33 8/2/2001)
       (13:52 8/2/2001)
         (18:08 8/2/2001)
 
andrew Message #4737, posted at 09:52, 8/2/2001
Unregistered user Does anybody have any tips in implementing matrices in assembler? Is it something anybody has done?
  ^[ Log in to reply ]
 
johnstlr Message #4738, posted at 12:07, 8/2/2001, in reply to message #4737
Unregistered user Not in raw assembler. I guess you mean matrix transformations rather than just matrices as building up translation, scaling and rotation matrices isn't that difficult.

The obvious advice is to hand code the routine in BASIC or C first and then put it into ARM. You will probably find that you don't quite have enough registers to do it comfortably though.

  ^[ Log in to reply ]
 
andrew Message #4739, posted at 13:33, 8/2/2001, in reply to message #4738
Unregistered user Well you need matrix transformations for rotation of say a set of vertices don't you?
I'm thinking I would make the transformation values in a lookup table and then convert some kind of equivalent to matrices to multiply them with the values passed to the routine.
  ^[ Log in to reply ]
 
johnstlr Message #4740, posted at 13:52, 8/2/2001, in reply to message #4739
Unregistered user
Well you need matrix transformations for rotation of say a set of vertices don't you?

Well yes but if you note I said that transformation isn't the same as simply creating the matrices (although to create a matrix capable of rotating around all axis then you do need matrix multiplication)

I'm thinking I would make the transformation values in a lookup table and then convert some kind of equivalent to matrices to multiply them with the values passed to the routine.

I don't see how the transformation values can be stored in a lookup table, unless you mean a lookup table for fixed point versions of rotation angles, as the transformation values will depend on the objects position, scale and rotation which can all change at run-time. Of course the camera can move as well.

  ^[ Log in to reply ]
 
andrew Message #4741, posted at 18:08, 8/2/2001, in reply to message #4740
Unregistered user Yes that's what I mean - a lookup of fixed point values for each rotation angle. So as you recommend I'll have to do the transformation code itself in assembler.
  ^[ Log in to reply ]
 

The Icon Bar: Programming: Matrices in assembler