![]() |
|
#1
|
|||
|
|||
Ok, that makes sense now. I still don't understand why a NPOT texture would take longer to upload to the card. Are you sure your driver supports NPOT textures? I just tried it here and a 1023x1023 texture took just as long as a 1024x1024 texture. When you resized your texture was it resizing down to the nearest power of two? That would explain why it would take less time, since there would be less data to upload.
Either way, we will consider adding manual scaling support to texture objects in a future release. In the meantime you can use the PIL library to scale images. I've actually used this library to do exactly what you are talking about, load and scale images in a background thread, then upload to the card in the main thread. This article describes how to install and use the PIL library with Vizard. |
#2
|
|||
|
|||
Also, you should disable mipmaps on your texture if you don't need them. In most cases this will increase texture upload time.
Code:
#Use non-mipmapped linear filtering texture = viz.addTexture(imagelist.next(), resizeNPOT=False, filter=viz.LINEAR) |
#3
|
|||
|
|||
![]()
Hello,
Hey, it was the mipmapping that gave the problem. Turned off, the NPOD textures load up very fast. Turned on, I get the delay again. So probably generating mipmaps for textures with a power of 2 is much faster. (I can imagine why) With this knowledge I now can make what I want. I won't need the texturescaling because I do not need the mipmaps. But if I would need the mipmaps, then I think the texture scaling still would be needed. Greetings, Joran. |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
trouble loading vrml files generated by ProE | tavaksai | Vizard | 12 | 12-09-2008 11:11 AM |
How to edit the skin tones of the complete characters' cfg files? | vEsotu | Vizard | 3 | 09-23-2008 12:07 PM |
optimizing the loading of .wrl files | dan12345 | Vizard | 2 | 06-10-2008 11:36 PM |
loading large wav files in vizard | tommahhh | Vizard | 1 | 05-16-2005 03:23 PM |
Including Files that Include Other Files | vjosh | Vizard | 1 | 09-21-2004 04:44 PM |