MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Naibo
Reged: 10/17/07
Posts: 148
Send PM
About integer pixel-based texture coordinate(mathematic issue)
09/24/10 03:54 PM Attachment: integer_coord.PNG 30 KB (1 downloads)


In some mid-1990's 3D hardware, texture coordinate is not represented by float-point, but by integer, like "pixel-index" in those 2D graphic hardware (namco s22 is a typical example).

If we emulate them using current float-point poly.c, by the (coord + 0.5)/size_of_texture method to convert to float-point, some graphic glitch may happen at polygon borders, because the range of texture-coordinate is from [0, size-1], not [0, size].

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment







Entire thread
Subject Posted by Posted on
* Final comments on poly.c Bryan Ischo 09/23/10 02:00 AM
. * About integer pixel-based texture coordinate(mathematic issue) Naibo  09/24/10 03:54 PM
. * Re: About integer pixel-based texture coordinate(mathematic issue) CrapBoardSoftware  09/24/10 04:19 PM
. * Re: About integer pixel-based texture coordinate(mathematic issue) R. Belmont  09/24/10 04:54 PM
. * Re: About integer pixel-based texture coordinate(mathematic issue) krick  09/24/10 04:42 PM
. * Re: Final comments on poly.c AaronGiles  09/23/10 03:20 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 154 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2229