Closed sylwesterdigital closed 4 years ago
skinningAndMorphing
should be demo with a model also you should use Renderer({ context, antialias: true })
from the plugin vs WebGLRenderer({ context, antialias: true })
it handles the height/width the render uses since nativescript can return an object
Nice! SkinninAndMorphing
it's working, lovely.
Youtube preview: https://youtu.be/FpO8MSl-qqs
However I have some memory warnings and CPU issues
CONSOLE WARN file: node_modules/three/build/three.module.js:16023:0: THREE.WebGLRenderer: EXT_frag_depth extension not supported.
got GAX status change notification. on: 0
CONSOLE WARN file: node_modules/three/build/three.module.js:35820:0: THREE.FileLoader: HTTP Status 0 received.
CONSOLE LOG file: app/home/home-page.ts:605:28: model loaded
HTHangEventCreate: HangTracing is disabled. Not creating a new event.
got GAX status change notification. on: 0
Received memory warning.
Received memory warning.
demo[2952] () used 144.00s of CPU over 161.54 seconds (averaging 89%), violating a CPU usage limit of 144.00s over 180 seconds.
Also on my ancient iPad Mini 2012 the framerate seems like about 12fps, but maybe this a clock thing (?) or some settings hack should be considered?
With the high memory usage can you run the app in Xcode to monitor for any memory leaks :)
My demo running on the 11 pro max https://twitter.com/triniwiz/status/1261158267818053632?s=21
Nice one. I have very old iOS testing hardware :( Did you load GLB files with backed image textures? I will come back to this - just realized that I need to build my 3D world first in normal web environment, it will be a waaaay faster. Cheers
Hi Osei, did you have a chance to make one more of these commented demos working? I know you are busy but I think 'threeCube' is not enough to showcase to awesome plugin :)
//threeDepth(args); //threeCrate(args); //skinningAndMorphing(args); //nearestNeighbour(args); //threeOcean(args); //threeCube(args); //threeCar(args);
//threeOcean(args)
I noticed that you need to tweak the root path to textures adding "assets" folder at the beginning. I've mocked up something ugly last night but the texture seems to me pretty much desaturated. Also did you succesfuly loaded aby 3D models, I could not. The workflow is for very patient people and every time when I change a single bit of code I am waiting 15 seonds to see that something is wrong. Do you recommend anything to speed up the whole preview/reload time?
https://youtu.be/HmrZUQOTiSU
here is what I have done