Is JSON model format is better for THREE.js -


i using three.js create simple game, load 100 low poly models in obj format performance not smooth, models size not more 18 mb, if use json format faster although size more double? tried collada simple objects case obj faster, if json not best solution, best one?

not 1 file format better overall, depending on needs , requirements external software used , if consist of animation .personally don't use json use obj json heavily supported three.js.. that's more of opinion.

there many factors why application can heavy. out source code or model files can speculate.

few things consider:

are models optimized best can , 100 models in 1 scene quiet allot @ 1 time @ 18mb, including textures?.

are textures compressed , reused.this increase performance. shadows , lighting , animation types have impact, google has plenty of resources offer you.

there several techniques keep poly count down: subdivision example of this, there useful article on this. http://www.kadrmasconcepts.com/blog/2011/11/06/subdivision-surfaces-with-three-js/

also lod level of detail visible depending on how far or near object is. great useful explanation here: http://www.pheelicks.com/2014/03/rendering-large-terrains/ three.js supports out added libs..

detail , how render key best performance..

even down how have set project can have major influence.take @ functions , how use them, example on mouse move , dom element clicks can slow three.js app dramatically if not optimized , used efficiently.

reuse , share best option, there no point in loading same model twice because 1 blue , other green...


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -