AxesHelper is not rendering without object

Why AxesHelper is not rendered when there is no object present in the scene?

It seems to work just fine: Edit fiddle - JSFiddle - Code Playground

I suggest you modify the fiddle in order to demonstrate the issue.

1 Like

@Mugen87 Thank you this worked fine. If I add controls to this scene containing only axeshelper i.e. without any object will it work? I’ve been trying to add controls to this but was not able to get a result

Do I have to add multiple renderers, cameras, or something

Updated examples with OrbitControls: Edit fiddle - JSFiddle - Code Playground

Notice the example has no animation loop. It uses “on-demand” rendering. Hence, a frame is only drawn when the controls fire the change event.

If you need an animation loop (e.g. because you have animated objects in the scene), do it like so: Edit fiddle - JSFiddle - Code Playground

1 Like

Thanks, @Mugen87 , but it didn’t work with TrackballControls. I didn’t wanted to restrict the rotation. is it possible that I could rotate the camera without restriction in OrbitControls