\r\n\r\n**Additional context**\r\nThis is useful is you want to manipulate the vertex individually, in the vertex shader\r\n",[2919,2922],{"name":2920,"color":2921},"question","d876e3",{"name":2923,"color":2924},"waiting for author","B145BC",230,"Support inline method in geometries ( EJ: toNonIndexed , setFromPoints)","2025-02-21T16:45:38Z","https://github.com/Tresjs/tres/issues/230",0.73585117,{"description":2931,"labels":2932,"number":2939,"owner":2857,"repository":2858,"state":2859,"title":2940,"updated_at":2941,"url":2942,"score":2943},"### Describe the bug\n\na select is meant to swap between sets of objects in the scene.\r\nwhen the code has a comment on the first line of the template, objects are added to the scene, the old ones are not removed. \n\n### Reproduction\n\nhttps://stackblitz.com/edit/tresjs-basic-hmkhgf?file=src%2Fcomponents%2FDonut.vue\n\n### Steps to reproduce\n\nrun the stackblitz.\r\nchange the select to 'donuts 1', a second set of donuts is added to the scene.\r\n\r\ndelete the comment in the template (Donut.vue) and refresh the view\r\nthis time when switching using the select, the scene objects are changed, not added\n\n### System Info\n\n_No response_\n\n### Used Package Manager\n\nnpm\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.",[2933,2936],{"name":2934,"color":2935},"p2-edge-case","ABCC40",{"name":2937,"color":2938},"has-workaround","AEA9C4",528,"comment on first line of templates affects rendering","2024-08-21T11:03:09Z","https://github.com/Tresjs/tres/issues/528",0.7362037,{"description":2945,"labels":2946,"number":2947,"owner":2857,"repository":2858,"state":2948,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\r\n\r\nBad types, unpredictable code, and false positives prevent me from using load-on-demand.Consider removing the global type declaration unless I actively add it?\r\n\r\n```\r\n'TresPrimitive' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.ts-plugin(1484)\r\n\r\n(alias) type TresPrimitive = TresInstance & {\r\n object: TresInstance;\r\n isPrimitive: true;\r\n}\r\nimport TresPrimitive\r\n```\r\n\r\n### Reproduction\r\n\r\nnone\r\n\r\n### Steps to reproduce\r\n\r\n_No response_\r\n\r\n### System Info\r\n\r\n_No response_\r\n\r\n### Used Package Manager\r\n\r\nnpm\r\n\r\n### Code of Conduct\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://tresjs.org/guide).\r\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.\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],800,"closed","Type error","2024-09-09T07:05:02Z","https://github.com/Tresjs/tres/issues/800",0.70124215,{"description":2954,"labels":2955,"number":2960,"owner":2857,"repository":2961,"state":2948,"title":2962,"updated_at":2963,"url":2964,"score":2965},"### Description\n\nAs a developer using Tresjs I would like to create sprite animations by cycling through a sequence of frames from a sprite sheet image or JSON data, so I could add sprites images to my 3D spaces.\n\n### Suggested solution\n\nInspired by: https://github.com/pmndrs/drei#sprite-animator\n\n### Alternative\n\nFeel free to suggest other alternatives\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/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.",[2956,2959],{"name":2957,"color":2958},"good first issue","7057ff",{"name":2900,"color":2901},247,"cientos","Sprite component","2024-06-07T14:02:38Z","https://github.com/Tresjs/cientos/issues/247",0.7170879,{"description":2967,"labels":2968,"number":2969,"owner":2857,"repository":2858,"state":2948,"title":2970,"updated_at":2971,"url":2972,"score":2973},"### Describe the bug\n\nThis error hapend when I write ` const state = useTres()` or `const { state } = useTres()` In devtools, and the scene is not loaded.\r\nThis is my code (in App.vue):\r\n```\u003Cscript setup lang=\"ts\">\r\nimport { TresCanvas, extend, useTres } from '@tresjs/core';\r\nimport { OrbitControls } from 'three/addons/controls/OrbitControls.js'\r\nimport { watchEffect } from 'vue'\r\n\r\nconst state = useTres()\r\n\r\nlet controls: OrbitControls | null = null\r\n\r\nwatchEffect(()=>{\r\n if (state.renderer && state.camera) {\r\n controls = new OrbitControls(state.camera.value!, state.renderer.value.domElement )\r\n }\r\n})\r\n\r\nextend({OrbitControls})\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003CTresCanvas window-size>\r\n \u003CTresPerspectiveCamera />\r\n\r\n \u003CTresScene>\r\n \u003CTresMesh>\r\n \u003CTresBoxGeometry />\r\n \u003CTresMeshNormalMaterial />\r\n \u003C/TresMesh>\r\n \u003C/TresScene>\r\n \u003C/TresCanvas>\r\n\u003C/template>\r\n```\r\n\r\nI did it like in this tutorial: [The tutorial](https://youtu.be/QP3gCY5_dds)\n\n### Reproduction\n\nhttps://stackblitz.com/edit/tresjs-basic-fg1y4w?file=src%2FApp.vue\n\n### Steps to reproduce\n\nAdd \r\n```\r\nimport { useTres } from '@tresjs/core';\r\nconst state = useTres()\r\n```\r\nto your code\n\n### System Info\n\n_No response_\n\n### Used Package Manager\n\nnpm\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.",[],410,"Uncaught Error: useTresContext must be used together with useTresContextProvider","2023-09-30T07:00:08Z","https://github.com/Tresjs/tres/issues/410",0.720203,["Reactive",2975],{},["Set"],["ShallowReactive",2978],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fN1rjT_A66qSAOiwtXvcD8pxLY5_uPDeHM5Cj7qOysBw":-1},"/Tresjs/tres/763"]