\r\n \u003C/Suspense>\r\n```\r\nBut get `Failed to resolve component: primitive`",[],53,"lab","How to load and render STL models?","2024-07-17T17:42:39Z","https://github.com/Tresjs/lab/issues/53",0.7240327,{"description":2897,"labels":2898,"number":2899,"owner":2859,"repository":2891,"state":2861,"title":2900,"updated_at":2901,"url":2902,"score":2903},"The link \"Authoring experiments\" from the [README](https://github.com/Tresjs/lab/blob/main/README.md) is broken.\r\n\r\n## The Link\r\n\r\n\u003Cimg width=\"695\" alt=\"Screenshot 2024-03-15 at 15 42 13\" src=\"https://github.com/Tresjs/lab/assets/20469369/c83cd04b-d8c5-48ae-a2c9-bbdcf405f97f\">\r\n\r\n## Result\r\n\r\n\u003Cimg width=\"1471\" alt=\"Screenshot 2024-03-15 at 15 46 08\" src=\"https://github.com/Tresjs/lab/assets/20469369/66cf1468-a38a-4b34-83ac-f1487441d29b\">\r\n",[],109,"Broken link in README.md","2024-03-15T14:47:05Z","https://github.com/Tresjs/lab/issues/109",0.7257459,{"description":2905,"labels":2906,"number":2913,"owner":2859,"repository":2870,"state":2861,"title":2914,"updated_at":2915,"url":2916,"score":2917},"### Description\n\nAs a maintainer of TresJS I would like to drop support for UMD bundles\n\n# Motivation\n\n- Align to modern Javascript Ecosystem alignments\n- Vue 3 is primarily distributed and consumed as ESM\n- Three.js (which TresJS wraps) supports ESM imports\n- Vite (our build tool) is designed with an ESM-first philosophy\n\nDropping UMD support offers tangible benefits:\n\n- **Smaller package size**: No need to ship multiple module formats\n- **Simplified build configuration**: Your vite.config.ts becomes cleaner\n- **Reduced maintenance burden**: One less format to test and debug\n\n### Suggested solution\n\n```ts\n// vite.config.ts\nlib: {\n entry: resolve(__dirname, 'src/index.ts'),\n name: 'tres',\n fileName: format => `tres.${format}.js`,\n formats: ['es'], \n},\n```\n\nRemove `rollupOptions.output.globals`\n\n### Alternative\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\n- [x] Read the [docs](https://tresjs.org/guide).\n- [x] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.",[2907,2910],{"name":2908,"color":2909},"breaking-change","5612D2",{"name":2911,"color":2912},"v5","EFC959",947,"Drop UMD support","2025-02-27T15:50:08Z","https://github.com/Tresjs/tres/issues/947",0.73606515,{"description":2919,"labels":2920,"number":2925,"owner":2859,"repository":2870,"state":2861,"title":2926,"updated_at":2927,"url":2928,"score":2929},"### Description\n\nAs a maintainer of TresJS, I would like to clean up the core logic by refactoring it to use VueUse `createInjectionState` https://vueuse.org/shared/createInjectionState/#createinjectionstate instead\n\n### Suggested solution\n\nReplace manual context provider with something like:\n\n```ts\nconst [useTresContextProvider, useTresContext] = createInjectionState((props, emit) => {\n // Create refs with initial null values\n const scene = shallowRef\u003CTresScene | null>(null)\n const renderer = shallowRef\u003CWebGLRenderer | null>(null)\n const camera = shallowRef\u003CPerspectiveCamera | null>(null)\n const loop = createRenderLoop()\n\n // Render mode logic etc\n})\n\nexport { useTresContext, useTresContextProvider }\n```\n\n### Alternative\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\n- [x] Read the [docs](https://tresjs.org/guide).\n- [x] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.",[2921,2924],{"name":2922,"color":2923},"p3-significant","2C78E3",{"name":2911,"color":2912},961,"Refactor `useTresContextProvider` into `createInjectionState`","2025-03-18T15:30:44Z","https://github.com/Tresjs/tres/issues/961",0.7432456,{"description":2931,"labels":2932,"number":2858,"owner":2859,"repository":2882,"state":2933,"title":2934,"updated_at":2935,"url":2936,"score":2865},"### Describe the bug\n\nThere is a problem in the docs with the MeshWobbleMaterial.\r\n\r\nI can't access to it, nor in local \r\n\r\n\r\n\n\n### Reproduction\n\nhttps://cientos.tresjs.org/guide/materials/wobble-material.html\n\n### Steps to reproduce\n\nGo to https://cientos.tresjs.org/guide/materials/wobble-material.html\n\n### System Info\n\n```shell\nBrave browser\n```\n\n\n### Used Package Manager\n\npnpm\n\n### Code of Conduct\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/Tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],"closed","Problem with MeshWobbleMaterial docs","2023-08-22T19:28:12Z","https://github.com/Tresjs/cientos/issues/137",{"description":2938,"labels":2939,"number":2940,"owner":2859,"repository":2891,"state":2933,"title":2941,"updated_at":2942,"url":2943,"score":2944}," Hello. I appreciate your work for this wonderful library.\r\n As I follow the steps detailed in [https://docs.tresjs.org/advanced/primitive.html](url) using BatchedMesh, it thow an exception as follows: \r\n\r\n My code example is as below:\r\n`\u003Cscript setup lang=\"ts\">\r\n const geometry2 = new THREE.ConeGeometry();\r\n const geometry3 = new THREE.BoxGeometry();\r\n const mtl3 = new THREE.MeshBasicMaterial({ color: 0xffff00 })\r\n const meshWithMtl2 = new THREE.BatchedMesh(20, 1000, 1000, mtl3)\r\n var geoId = meshWithMtl2.addGeometry(geometry2);\r\n meshWithMtl2.addInstance(geoId)\r\n var geoId2 = meshWithMtl2.addGeometry(geometry3);\r\n meshWithMtl2.addInstance(geoId2)\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003Cprimitive :object=\" meshWithMtl2\" />\r\n\u003C/template>\r\n`\r\n What have I missed or mistaken? Hope to get your help.\r\n",[],150,"BatchedMesh dosn't work with the primitive component","2024-08-12T00:16:46Z","https://github.com/Tresjs/lab/issues/150",0.71095306,{"description":2946,"labels":2947,"number":2951,"owner":2859,"repository":2952,"state":2933,"title":2953,"updated_at":2954,"url":2955,"score":2956},"### Describe the bug\n\nPretty much self explanatory, after upgrading to v2, I get this error `Cannot find module 'vite-plugin-glsl'` \r\n\r\nI had a look in the source code, and looks like the problem originates here\r\n\r\nhttps://github.com/Tresjs/nuxt/blob/4039d2578267fb04295d94ad3c816895df98721b/src/module.ts#L8\r\n\r\nbasically the package is imported but in `package.json` is only included in `devDependencies`, so not installed when installing the module.\r\n\r\nMoving it to `dependencies` should fix this.\n\n### Reproduction\n\n---\n\n### Steps to reproduce\n\n_No response_\n\n### System Info\n\n_No response_\n\n### Used Package Manager\n\npnpm\n\n### Code of Conduct\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[2948],{"name":2949,"color":2950},"bug","d73a4a",69,"nuxt","`Cannot find module 'vite-plugin-glsl'` after upgrading to v2 `","2023-12-12T16:36:54Z","https://github.com/Tresjs/nuxt/issues/69",0.7111296,["Reactive",2958],{},["Set"],["ShallowReactive",2961],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fhNIwK_ijV7j6zJ3EWEkgC3WEy0NJBxLtTHmgkhtQbYo":-1},"/Tresjs/cientos/614"]