rezoner / playground

Playground.js is a framework for your javascript based games. It gives you out-of-box access to essentials like mouse, keyboard, sound and well designed architecture that you can expand to your needs.
MIT License
459 stars 50 forks source link

Loader functions add empty string #54

Open jpryne opened 7 years ago

jpryne commented 7 years ago

Both loader functions:

PLAYGROUND.Application.prototype.loadTexture

&

PLAYGROUND.Application.prototype.loadObject

include the line:

this.loader.add(name);

yet the variable 'name' is defined on line 3374 of playground.js (SoundWebAudioAPI.js) as:

if (alias) name = alias.source;

Why does the Object loader make use of this empty string?

rezoner commented 7 years ago

It doesn't make any use of it - it was supposed to help identify failing resource in case of error. You can ignore it. Also I recommend not using my ThreeJS plugins - download playground-base.js and set up ThreeJS as you need it - because it is very simple and much more flexible this way.

Do you want a tutorial how to write a custom loader for playground.js?

jpryne commented 7 years ago

Absolutely! Actually, I'm working on a custom loader that traverses a JSON, digging up the point-cloud and face-table, regardless of the data-scheme used for export. Any guidance you can offer would be most helpful, and I'd be happy to offer my code back to the repo, should you think it useful.