English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 24 February 2016, 09:06   #1
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
3D Graphics: possible optimization?

Hi,

I'was thinking about how we handle 3d polygon. We get used to use polygon that range from + to - with differente degree. Like x = -50.0 y = -10.0 and on.

But if we map our world and object from -1 to +1 and scale them after all trasformation, maybe we can have less bit for fixed math and have a lot of precalcuated value since we have fixed range.

Maybe we'll have less "bigger" world, but a lot more velocity, since we can put on table a lot of calc, like x*cos, y*sin and on.

What do you think?
sandruzzo is offline  
Old 24 February 2016, 19:34   #2
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 470
This sounds like the usual 'normalization' already done in 3d engines?
Cylon is offline  
Old 26 February 2016, 07:40   #3
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
Quote:
Originally Posted by Cylon View Post
This sounds like the usual 'normalization' already done in 3d engines?
never seen applicated on an 3d engine, and I've a good experience about it. Maybe we this simple trick, we can use only 16 bit to describe objects and world so we can use a lot of table to speed up the engine.
sandruzzo is offline  
Old 26 February 2016, 08:01   #4
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
16 bit coordinates make good fixed point references since doing a word to word unsigned multiply will leave a scaled screen coordinate in the upper word of the result. Fixed point has not been commonly used for 3d since before Quake 1, though.
Samurai_Crow is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop optimization + cycle counts losso Coders. Asm / Hardware 8 05 November 2013 11:50
Looking for 68000 binary optimization utility amigoun request.Apps 2 23 October 2011 00:36
Looking for graphics sandruzzo Coders. General 12 17 April 2011 12:19
ARM Assembler Optimization finkel Coders. General 10 01 December 2010 11:56
Graphics buster Retrogaming General Discussion 4 11 September 2004 12:05

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:10.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09063 seconds with 15 queries