now i have lots of pictures to be textured on a Cube.there are four
faces to be textured:the front ,back ,left and right?when the cube
rotates 360 then load the next four picture and texture them.the
method above have a problem :the convertion of every four pictures is
not fluent。I think the multithread can work now ,but i am not familiar
with it .so can some body give me a example about it ?
现在有很多图片要贴到一个旋转中的立方体的前后左右四个面上,我现在的做法是:先载入四张图片,再贴到立方体上,等立方体旋转一圈后,再载入接着的四张
图片,再贴,类推直到贴完,但这样有一个问题就是载入图片和贴图是顺序的,导致由前4张到后4张过度时会显示卡,为此开个子线程去专门做载入纹理的工
作,这有一个子线程与UI线程的同步问题,UI(主)线程要等到子线程载入纹理工作完成才能去使用纹理贴图,求线程同步的例子。
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to