You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried by several ways, the closest attempt is to edit the WebglBase.coffee file like the following: http://jsfiddle.net/SyYDQ/
But there is one important line missing, that's
@controls.addEventListener "change", render
If I add this, it will say "render" is not defined, but I am a bit loss which render function to call. Can you give me some hints on this issue? Many thanks!
The text was updated successfully, but these errors were encountered:
I'm not sure about it but it looks like in the example it's calling the render function at the end of the html (line 206). Since in threenodes the renderer.render is already called on each frames, you only have to call the control.update function. So it would be something like this:
I tried by multiple ways but still didn't figure this out. Will leave it here and come back later after I got more familiar with Threenodes.
Another quick question would be how can I change the range of the slider bar for some parameters, such as position parameter for geometry is initialized as [-0.5 0.5], how can I change this default value?
Hi, thanks for this fantastic project.
I am looking into the feature where I can control the camera with mouse, such as this:
http://www.guoshihui.net/webglcontrol/control.html
I tried by several ways, the closest attempt is to edit the WebglBase.coffee file like the following:
http://jsfiddle.net/SyYDQ/
But there is one important line missing, that's
@controls.addEventListener "change", render
If I add this, it will say "render" is not defined, but I am a bit loss which render function to call. Can you give me some hints on this issue? Many thanks!
The text was updated successfully, but these errors were encountered: