English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 24 February 2016, 10:06   #1
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,109
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  
AdSense AdSense  
Old 24 February 2016, 20:34   #2
Cylon
Registered User

 
Join Date: Oct 2014
Location: Europe
Posts: 466
This sounds like the usual 'normalization' already done in 3d engines?
Cylon is offline  
Old 26 February 2016, 08:40   #3
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,109
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, 09:01   #4
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 919
Send a message via Yahoo to Samurai_Crow
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  
AdSense AdSense  
 


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 12:50
Looking for 68000 binary optimization utility amigoun request.Apps 2 23 October 2011 01:36
Looking for graphics sandruzzo Coders. General 12 17 April 2011 13:19
ARM Assembler Optimization finkel Coders. General 10 01 December 2010 12:56
Graphics buster Retrogaming General Discussion 4 11 September 2004 13: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 06:56.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.26183 seconds with 12 queries