It has been a few months sense the last time I started a new post on threejs so then with that said I think it might be called for to write a new three example type post. This time I was thinking about slapping together a quick project that makes use of Raycaster to create a simple yet effective menu system. If you are not familiar with the raycaster constructor in threejs yet, it is something that you will want to look into at some point sooner or layer of you like playing around with threejs. The Raycasetr constructor is what can be used to find out if a 2d pointer click of one kind or another has resulted in a mesh object being clicked or not. So then the use of a raycster instance will help a whole lot if the aim is to make some kind of menu system using threejs.
As of this writing the state of this sm.js is not so great, so things will likely change a whole lot in any future reversions of this examples when I get around to editing this post next. However much of the core functionality that I had in mind is all ready working, so maybe only so much more will need to change.
When I was working on this threejs example last I was using threejs r135, and the code seems to be working well for me at that time. If the code examples here are not working for you the version of threejs is what you are going to want to check first. AFter that you might be running into some other kind of problem.
Now for just a basic hello world style example of this sm module this far.
It has been a while sense I worked on anything with threejs so I am a little rusty when it comes to working with it. However it would seem that my content on threejs is taking off a little so it seems like I might be writing some new content on three.js as well as editing my older content while I am at it soon.
This example alone as well as many of the other simple project examples I have made thus far are in a dire need of a little more work. This is why thinks have sowed down a little when it comes to writing new posts, this content as well as many others that I have write before need to be revised now and then.