3

Is there a way to tell when the object has finished rendering? I know there is a progress bar in one of the examples, but i am looking for a simple & non-convoluted example. I have looked through the loader i am using (OBJMTLLoader) and the renderer (WebGLRenderer) and i have not noticed a simple

renderer.complete(function(){ CODE HERE });

or similar for the loader(s). I want to for example throw up an alert when all objects are completely rendered.

Thanks in advance.

4

1 回答 1

2

在 loader.addEventListener('load'... 部分,添加场景时的最后一行,将函数放在后面,它会等到渲染完成后再触发。

以防其他人需要它!

于 2013-05-03T17:09:22.263 回答