Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Gabezcommodore ! (Registered 2025-07-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Accuracy in 3d-rotation routines?
2008-02-29 12:38
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Accuracy in 3d-rotation routines?

How accurate do you run your 3d-rotation routines?
I just started doing a mockup (in a high-level language) for a 3D-rotation routine, but found out that running 8-bit accuracy (8 bit coords and sin/cos tables, 8 bit mulitiplies w. 16 bit result) really looked quite crappy, vertexes flail about rather much. Do people generally run full 16-bit all the way through?
 
... 10 posts hidden. Click here to view all posts....
 
2008-03-01 09:19
HCL

Registered: Feb 2003
Posts: 731
@Graham: Yepp, it suxx :/. I never claimed to have a vector shit as good as yours, but 24 bits is pure illness.. One day i might try to keep up with your standards (just ~10 years after), but until then my current vector routine will have to be nice enough.. :). Cheers!
2008-03-01 10:42
Oswald

Registered: Apr 2002
Posts: 5129
in 2008 it should be obvious that a 16 bit rotation matrix can be calculated pretty fast:3-4 char high rastertime, and in like half or less time for 2 axes rotation only.

the rotation matrix should be rather viewed imho as the 3 unit vectors which help you make up the coordinates by adding(dividing) them. this can be done even without multiplications assuming no morphing, but precalculated tables for each value used by the coords.

perspective projection must be done with real multiplications. 3d calcs for an avg c64 object should be roughly at 0.5 or 1 frames.

sub pixel stuff is nice, but it doesnt comes through imho at speeds <25 fps.

Id like to see some true vector wolds no matter how slow. tho nobody will code it if I wont :P :)
2008-03-01 13:38
Graham
Account closed

Registered: Dec 2002
Posts: 990
@HCL: Well if you need 16 bit rotation, you need a 100% accurate 16 bit matrix too which can only be achieved with 24 bit calculation. Every addition let's you lose 1 bit accuracy and the matrix calculation involves a lot of successive additions.
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
JLD/Finnish Gold
NecroPolo/Lethargy/H..
Retroluzzer/Quantum
grasstust/Hoaxers
Beast/Crescent
Core/VPN
Response/Darklite
Guests online: 53
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.7)
5 Coma Light 13  (9.6)
6 Harminc  (9.6)
7 Edge of Disgrace  (9.6)
8 Comaland 100%  (9.6)
9 Wonderland XIV  (9.6)
10 Signal Carnival  (9.6)
Top onefile Demos
1 Morphing Starball  (9.9)
2 Nine  (9.8)
3 Layers  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.5)
7 Scan and Spin  (9.5)
8 Onscreen 5k  (9.5)
9 Grey  (9.5)
10 Dawnfall V1.1  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Oxyron  (9.3)
5 Artline Designs  (9.3)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Shine  (9.5)
4 Mermaid  (9.5)
5 Pal  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.047 sec.