\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":3062,"labels":3063,"number":3064,"owner":3024,"repository":3056,"state":3026,"title":3065,"updated_at":3066,"url":3067,"score":3068},"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":3070,"labels":3071,"number":3078,"owner":3024,"repository":3035,"state":3026,"title":3079,"updated_at":3080,"url":3081,"score":3082},"### 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.",[3072,3075],{"name":3073,"color":3074},"breaking-change","5612D2",{"name":3076,"color":3077},"v5","EFC959",947,"Drop UMD support","2025-02-27T15:50:08Z","https://github.com/Tresjs/tres/issues/947",0.73606515,{"description":3084,"labels":3085,"number":3090,"owner":3024,"repository":3035,"state":3026,"title":3091,"updated_at":3092,"url":3093,"score":3094},"### 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.",[3086,3089],{"name":3087,"color":3088},"p3-significant","2C78E3",{"name":3076,"color":3077},961,"Refactor `useTresContextProvider` into `createInjectionState`","2025-03-18T15:30:44Z","https://github.com/Tresjs/tres/issues/961",0.7432456,{"description":3096,"labels":3097,"number":3023,"owner":3024,"repository":3047,"state":3098,"title":3099,"updated_at":3100,"url":3101,"score":3030},"### 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":3103,"labels":3104,"number":3105,"owner":3024,"repository":3056,"state":3098,"title":3106,"updated_at":3107,"url":3108,"score":3109}," 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":3111,"labels":3112,"number":3116,"owner":3024,"repository":3117,"state":3098,"title":3118,"updated_at":3119,"url":3120,"score":3121},"### 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.",[3113],{"name":3114,"color":3115},"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",3123],{},["Set"],["ShallowReactive",3126],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fhNIwK_ijV7j6zJ3EWEkgC3WEy0NJBxLtTHmgkhtQbYo":-1},"/Tresjs/cientos/614"]