peterqliu / threebox

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.
MIT License
526 stars 320 forks source link

same option,different coordinates #94

Open luojiandan opened 4 years ago

luojiandan commented 4 years ago

@peterqliu @kronick @McCulloughRT image loadObj load many obj,but the option is same,just coordinate is different. I change code like this,but only one model display. image

luojiandan commented 4 years ago

@jscastro76 @luojiandan @peterqliu @kronick @McCulloughRT If I use coordinates.forEach((coor)=>{tb.loadObj(...)}),like this image

It cost much memory image

but I use tb.loadObj(...Array.forEach...) image I got one model only.

for each model, the options is same,coordinate is different.how can I save memory. Thanks:)

jscastro76 commented 4 years ago

Solved in this fork