2017-02-04 58 views
0

我設法使用以下代碼在我的3d物體上放置可視化紋理。問題在於它滯後很多,特別是當它循環時。我正在尋找一種讓它更流暢的方式。x3dom Movietexture滯後

<html> 
    <head> 
     <title></title>    
     <script type='text/javascript' src='http://lala.cool/3d/schneosch/x3dom.js'> </script> 
     <link rel='stylesheet' type='text/css' href='http://lala.cool/3d/6328483_woesh/mesh/beertje.css'></link> 
    </head> 
    <body> 


<x3d width='500px' height='400px'> 
<scene> 
<Shape> 
      <Appearance> 
       <MovieTexture repeatS="false" repeatT="false" loop='true' url='"http://lala.cool/3d/eh/schneosch011_1.mp4"'/> 
      </Appearance> 

      <Box/> 
      </Shape> 
      <Transform DEF="Camera_TRANSFORM" 

       > 
     <Viewpoint DEF="CA_Camera" 
        centerOfRotation="0 0 0" 
        position="5.00491 -6.73519 -5.43948" 
        orientation="0.18804 0.92111 -0.34086 2.41421" 
        fieldOfView="0.8" 
        /> 

</scene> 
</x3d> 

    </body> 
</html> 

在這裏你可以看到它在行動:http://lala.cool/iwasreadingabookoflovestory.html

回答

0

它的工作原理確定我的電腦上。在代碼級別上你無能爲力,因爲你無法控制渲染或任何可能加速場景的參數。在不同的瀏覽器中嘗試您的示例,即使在不同的計算機上。這可能只是你的問題。