ditrit / OGrEE-3D

Mozilla Public License 2.0
10 stars 0 forks source link

Add "cache" feature in config.json #164

Closed hchybz closed 2 years ago

hchybz commented 3 years ago

when loading a fbx file from json

if :

"fbxModel" : "https://github.com/Cedrok/3dModels/blob/master/Gigabyte-G481-S80_rtk.fbx?raw=true",

and : config.json / config.ini [LIBRARY] fbxlibpath=d:\ogree\librairies\fbx fbxlibsize=500M

check :

"fbxModel" : "file://$fbxlibpath/Gigabyte-G481-S80_rtk.fbx"

if ko, then use provided url.

Cedrok commented 2 years ago

Done in commit 7865349d431beb5e97f52f07aac6bf6236692512 New lines in config.json:

"cachePath": "path",
"cacheLimitMo": "size",