Hello,
I am sorry for topis and primitive nomenclature. I don’t know what names these things have.
I don’t understand what in function(image, texture) I don’t have acces to one of texture variable defined above (this.texture, var texture)?
this.texture = new THREE.Texture();
var texture = new THREE.Texture();
var loader = new THREE.ImageLoader(manager);
loader.load(
path,
function(image, texture) {
texture.image = image;
texture.needsUpdate = true;
}
In general I would like to create “class” like this:
var MyObjloader = function () {
this.init();
};
MyObjloader.prototype.init = function() { (...) };
MyObjloader.prototype.render = function() { (...) };
MyObjloader.prototype.loadObj = function() { (...) };
(...)
Is this possible that way?
Should I use variable which I want to have range range only inside one of instance of MyObjLoader by that way:
MyObjLoader.variableName;
Inside methods etc.?
Thanks,
A.