Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Using big textures and GetMaxTextureSize  (Read 163 times)
DanDixon
Customers
Community Member
*****
Posts: 181


« on: September 22, 2008, 10:41:53 PM »

What happens if you try to load a texture that's larger than what TVDeviceInfo.GetMaxTextureSize says you can load?

I have a 4096x2048 background image that I'd like to use (it's full sky panoramic of the Milky Way) but it seems that the average video card only accepts textures up to 2048x2048.

What is the correct way to load this sized texture when GetMaxTextureSize reports something smaller?
Logged
Fox1980
Customers
Community Member
*****
Posts: 239


« Reply #1 on: September 23, 2008, 06:28:28 AM »

If you really need to load such a large texture i suggest you split both the sky mesh and the texture in two.

2048x2048 might even be too much for some older video cards so you may also want to have a version split into 4 textures and 4 meshes. That's what i would do.
Logged

"Programmers don't die. They just GO SUB without RETURN."
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #2 on: September 23, 2008, 12:04:08 PM »

If the texture is too big, it's getting downsized to the best available size on the device.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

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