2017-02-04 57 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

它的工作原理确定我的电脑上。在代码级别上你无能为力,因为你无法控制渲染或任何可能加速场景的参数。在不同的浏览器中尝试您的示例,即使在不同的计算机上。这可能只是你的问题。