Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Screen border  (Read 385 times)
DarekRuman
Customers
Community Member
*****
Posts: 184

game developer


WWW
« on: March 13, 2010, 12:33:34 PM »

Hi.

I have a question - its strange, and I noticed it few days ago but when I draw filledbox (from 0x0 pixel) or draw fullscreenshader it doesnt draw from 0x0 , but from about 1x1 pixel.

Why?

I attached image - red box and fullscreenshader with vignette.
« Last Edit: March 13, 2010, 10:31:01 PM by DarekRuman » Logged

www.reddotgames.pl
tv6.3 tv6.5 developer
games made in TV : Paintball Extreme, Reindeer Adventure, Mole : Great Adventure, Foxy Fox, Włatcy móch : Śnieżna Rozwałka, Włatcy Móch : Magiczni Wojownicy, Ski:), Lowrider Extreme
WEst
Customers
Community Member
*****
Posts: 945

Daniel Martinek


WWW
« Reply #1 on: March 14, 2010, 04:23:02 AM »

This problem may be related to the direct3D9 half-pixel offset when converting screen coordinates to texture coordinates. I'm not sure if TV3D will do the offsetting for you when you use draw_fullscreenshader. You can try to subtract half a pixel from your texture coordinates in the shader which would be 0.5/ScreenWidth for x and 0.5/ScreenHeight for y.
Logged

Greetings

Daniel Martinek
Technical Director
23 Volts
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks