The Matheral Loader in threejs

There are a number of loaders built into the core of threejs that extend from the common base loader class, one such option is the materials loader which will be the main theme of this post. There might be a situation or two in which I might want to use the material loader in conjunction with the texture loader, and buffer geometry loader, then create the final scene object with all of these assets. However I have found that I might prefer to go with the Object Loader as a way to bake everything into a single JSON file format and just start creating assets that way.

There is also of course starting to look into the long list of options when it comes to the additional loaders there are to work with in the JSM folder of the examples folder of the threejs Github Repository. There is also the js folder of the examples folder if you are using r147 or older, but getting into all of that is a whole other matter. The main point here I think is to maybe start by looking into what there is to work with that is baked into the core of the threejs library itself first. In some cases it might be possible to just go with these standards and then move on with ones life, and with that said this post will center on the use of one of these options for materials at least.

Read More

Linux System Base Release command lsb_release for Distribution info

The lsb_release command can be used to find out distribution info about the Linux System that you are using. This command is part of what is called the Linux Standard Base which means that it should not just simply be the kind of command that you will find in just Debian Linux Based Systems, but rather in just about any Linux Distribution as a standard command for getting basic information about what kind of Linux system I am using. There is a lot to say about LSB in general however in this post I will be focusing mainly on just the release utility tool as another option on top of that of just using the uname command which will not always give the full range of data that one would want to see when it comes to getting to know what it is that they are dealing with from one OS Image to another.

Read More

The Object Loader in threejs

The Object Loader in threejs is a loader option that is built into the core of the library itself that can be used to load JSON files that follow the object format. Many other loaders for object formats must be added to threejs by making use of an additional add on file beyond just threejs itself so this alone is one reason why one might be interested in the format. However another nice thing about it is that it is also easy to work with when it comes to creating this kind of json data as just simply calling the toJSON method of the object that I want to convert will create the data in an object format, and then I can just pass that to the JSON.stringify method.

Read More

The Animation Mixer in threejs

The animation mixer in threejs is what can be used to play animations for a given object. There is however a whole lot of other classes and features that one will also need to be aware of even to just create a very basic hello world type example of this sort of thing. As such it should go without saying that this is one of the more advanced topics when it comes to using threejs, but still it is only so complex and I have found that once I have got a basic hello world style example up and running the more complex use case examples end up getting a whole lot easier to follow.

Read More