`","2024-08-21T10:29:21Z","https://github.com/Tresjs/tres/issues/418",0.7717864,{"description":2894,"labels":2895,"number":2896,"owner":2870,"repository":2897,"state":2872,"title":2898,"updated_at":2899,"url":2900,"score":2901},"### Describe the bug\r\n\r\nI am import `OrbitControls` by using TypeScript, but the typedef of `OrbitControls` is any\r\n\r\n```ts\r\nimport { OrbitControls } from '@tresjs/cientos'\r\n\r\ntype ComponentInstance = InstanceType\u003Ctypeof OrbitControls>\r\ntype ControlsInstance = ComponentInstance['instance']\r\n// ^? This is any\r\n```\r\n\r\nI found the build source doesn't include the file `OrbitControls.vue.d.ts`.\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/tresjs-basic-grkvtv?file=package.json,src%2Fmain.ts\r\n\r\n### Steps to reproduce\r\n\r\nOpen `main.ts`, then check `ControlsInstance`'s typedef.\r\n\r\n### System Info\r\n\r\n```shell\r\n@tresjs/cientos is v4.0.3\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\npnpm\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/cientos/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\r\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.\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],520,"cientos","Miss typedef for CameraControls/MapControls/OrbitControls","2024-11-08T03:20:44Z","https://github.com/Tresjs/cientos/issues/520",0.78437346,{"description":2903,"labels":2904,"number":2908,"owner":2870,"repository":2897,"state":2872,"title":2909,"updated_at":2910,"url":2911,"score":2912},"### Description\n\nThis is a fancy way of using environment images projected as if the objects are in the ground, (one of the problem using images as background into the scenes is that, seems like the object are always floating, this \"fix\" that)\n\n### Suggested solution\n\nYou can check here: https://threejs.org/examples/?q=ground#webgl_materials_envmaps_groundprojected\n\n### Alternative\n\nWe can use a completely new component OR update the actual Environment component, adding one more props (I would prefer this option)\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.",[2905],{"name":2906,"color":2907},"good first issue","7057ff",323,"GroundProjected","2024-04-02T07:13:09Z","https://github.com/Tresjs/cientos/issues/323",0.8092391,{"description":2914,"labels":2915,"number":2451,"owner":2870,"repository":2888,"state":2916,"title":2917,"updated_at":2918,"url":2919,"score":2876},"Atm, is only possible to extend the catalogue when installing the `@tresjs/core` plugin like this:\r\n\r\n```\r\nimport { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'\r\n\r\napp.use(plugin, {\r\n extends: {\r\n OrbitControls,\r\n },\r\n})\r\n```\r\n\r\nBut it's likely that packages like `cientos` would need to extend the initial catalogue dynamically to add new components, for example `TresTextGeometry` from `three/examples/jsm/geometries/TextGeometry` for #15 \r\n\r\nI will investigate if there is away to add more components o renderer on the fly",[],"closed","Dynamically extend catalogue","2022-12-05T08:18:23Z","https://github.com/Tresjs/tres/issues/16",{"description":2921,"labels":2922,"number":1631,"owner":2870,"repository":2888,"state":2916,"title":2926,"updated_at":2927,"url":2928,"score":2929},"- [x] Orbit Controls (mention cientos approach)\r\n- [x] Basic animations\r\n- [x] Load Textures\r\n- [x] Load Models",[2923],{"name":2924,"color":2925},"docs","0075ca","Docs core examples","2022-12-12T10:19:32Z","https://github.com/Tresjs/tres/issues/20",0.7501405,{"description":2931,"labels":2932,"number":2933,"owner":2870,"repository":2888,"state":2916,"title":2934,"updated_at":2935,"url":2936,"score":2937},"# Goal\r\nGenerate three-shakeable components on build time to avoid the need for a catalog of global components. This will be probably a BREAKING CHANGE, especially for cientos.\r\n\r\n```vue\r\n\u003Cscript setup lang=\"ts\">\r\n\r\nimport { TresCanvas, TresPerspectiveCamera, TresScene, TresAmbienLight, useRenderLoop } from '@tresjs/core' \r\nimport { OrbitControls, TransformControls } from '@tresjs/cientos'\r\n\r\nconst sphereRef = ref()\r\n\r\nconst { onLoop } = useRenderLoop()\r\n\r\nonLoop(({ elapsed }) => {\r\n sphereRef.value.position.y += Math.sin(elapsed * 0.01) * 0.1\r\n})\r\n\u003C/script>\r\n\u003Ctemplate>\r\n \u003CTresCanvas v-bind=\"state\">\r\n \u003CTresPerspectiveCamera :position=\"[5, 5, 5]\" :fov=\"45\" :near=\"0.1\" :far=\"1000\" :look-at=\"[-8, 3, -3]\" />\r\n \u003COrbitControls make-default />\r\n \u003CTresScene>\r\n \u003CTresAmbientLight :intensity=\"0.5\" />\r\n \u003CTransformControls mode=\"scale\" :object=\"sphereRef\" />\r\n\r\n \u003CTresMesh ref=\"sphereRef\" :position=\"[0, 4, 0]\" cast-shadow>\r\n \u003CTresSphereGeometry />\r\n \u003CTresMeshToonMaterial color=\"#FBB03B\" />\r\n \u003C!-- \u003CTresMeshToonMaterial color=\"#FBB03B\" /> -->\r\n \u003C/TresMesh>\r\n \u003CTresDirectionalLight :position=\"[0, 8, 4]\" :intensity=\"0.7\" cast-shadow />\r\n \u003CTresMesh :rotation=\"[-Math.PI / 2, 0, 0]\" receive-shadow>\r\n \u003CTresPlaneGeometry :args=\"[10, 10, 10, 10]\" />\r\n \u003CTresMeshToonMaterial />\r\n \u003C/TresMesh>\r\n \u003CTresDirectionalLight :position=\"[0, 2, 4]\" :intensity=\"1\" cast-shadow />\r\n \u003C/TresScene>\r\n \u003C/TresCanvas>\r\n\u003C/template>\r\n\r\n```\r\n\r\n- [ ] Using a vite plugin to generate all the components from THREE instances (Except Scene)\r\n- [ ] Each component should locally register components on the slots (is possible?)\r\n- [ ] Typescript Definition for the components generated from the ThreeJS instance\r\n- [ ] Include them in the final bundle\r\n- [ ] Strategy for replacing catalog `extend` \r\n- [ ] Update the way `cientos` extends the catalog\r\n",[],104,"Generate instances on build-time rather than run-time","2023-03-13T14:26:46Z","https://github.com/Tresjs/tres/issues/104",0.76061594,{"description":2939,"labels":2940,"number":735,"owner":2870,"repository":2888,"state":2916,"title":2942,"updated_at":2943,"url":2944,"score":2945},"[cientos](https://github.com/Tresjs/tres/tree/main/packages/cientos) package is currently without documentation ",[2941],{"name":2924,"color":2925},"Docs for cientos","2022-12-30T14:20:36Z","https://github.com/Tresjs/tres/issues/2",0.76284677,{"description":2947,"labels":2948,"number":93,"owner":2870,"repository":2897,"state":2916,"title":2949,"updated_at":2950,"url":2951,"score":2952},"**Is your feature request related to a problem? Please describe.**\r\nWe should have a [CameraControls](https://github.com/yomotsu/camera-controls) component as it is a very handy tool.\r\n\r\n**Describe the solution you'd like**\r\nAbstraction in cientos.\r\n\r\n**Suggested solution**\r\nSee [drei](https://github.com/pmndrs/drei).\r\n",[],"CameraControls in cientos","2023-07-26T13:40:26Z","https://github.com/Tresjs/cientos/issues/1",0.7660173,{"description":2954,"labels":2955,"number":93,"owner":2870,"repository":2956,"state":2916,"title":2957,"updated_at":2958,"url":2959,"score":2952},"When i run 'pnpm dev' locally, i get this error:\r\n\r\n\r\n\r\nI guess maybe **node version** cause? I checked the node version, and It's **16.19.0**. Ok, I change it to **18.14.0**. Yes,it works! Then , I change it to **17.9.1**, the error again. \r\n\r\nAdd something about **node version** in README? ",[],"lab","'pnpm dev' failed","2024-09-01T16:08:35Z","https://github.com/Tresjs/lab/issues/1",["Reactive",2961],{},["Set"],["ShallowReactive",2964],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f0dYA5AJq4rVwCMKQcG4EHOy9cFjsHBNAMttY8G4YUJ0":-1},"/Tresjs/tres/25"]