# \#group

**URL:** https://discourse.threejs.org/tag/group/246.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [A better way to drag and drop multiple groups?](https://discourse.threejs.org/t/a-better-way-to-drag-and-drop-multiple-groups/76141)

<div class="topic-metadata">

**Author:** [@Hornet](https://discourse.threejs.org/u/Hornet)\
**Replies:** 1\
**Last updated:** [January 11, 2025, 2:35pm UTC](https://discourse.threejs.org/t/a-better-way-to-drag-and-drop-multiple-groups/76141 "2025-01-11T14:35:41Z")

</div>

Hi all, I’m currently using dragControls to drag and drop multiple Group objects, but apparently dragControls can only handle 1 Group i.e no matter how many Group objects I push into dragControls it will only perform dra…

---

## [Different 3D models as hyperlinks](https://discourse.threejs.org/t/different-3d-models-as-hyperlinks/74397)

<div class="topic-metadata">

**Author:** [@kendlgizd](https://discourse.threejs.org/u/kendlgizd)\
**Replies:** 7\
**Last updated:** [November 26, 2024, 2:03am UTC](https://discourse.threejs.org/t/different-3d-models-as-hyperlinks/74397 "2024-11-26T02:03:11Z")

</div>

I shall begin with mentioning that I’m a total beginner, so I assume that there is a minor issue I keep missing over and over again while trying to make it work. In short: I loaded a GLTF scene with 3 different objects …

---

## [Problem with glb export in blender without groups](https://discourse.threejs.org/t/problem-with-glb-export-in-blender-without-groups/72756)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 1\
**Last updated:** [October 13, 2024, 9:47am UTC](https://discourse.threejs.org/t/problem-with-glb-export-in-blender-without-groups/72756 "2024-10-13T09:47:31Z")

</div>

Hi guys. We create groups in Blender and manage our meshes.all objects are inside different groups. we do not have independent mesh without groups. But when we export our 3d model to glb and load it in three.js some gr…

---

## [Export 3dmodel glb in Blender with collection](https://discourse.threejs.org/t/export-3dmodel-glb-in-blender-with-collection/70243)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 11\
**Last updated:** [October 1, 2024, 12:50pm UTC](https://discourse.threejs.org/t/export-3dmodel-glb-in-blender-with-collection/70243 "2024-10-01T12:50:47Z")

</div>

Hi I have made collections for different parts of my 3d model. I mean I separate room, kitchen, living room, bath and. … But When I export all parts are in gltf. scene.children But I need all of them in their group. I…

---

## [Cloning a group in R3F](https://discourse.threejs.org/t/cloning-a-group-in-r3f/70925)

<div class="topic-metadata">

**Author:** [@kalabedo](https://discourse.threejs.org/u/kalabedo)\
**Replies:** 3\
**Last updated:** [September 23, 2024, 6:06am UTC](https://discourse.threejs.org/t/cloning-a-group-in-r3f/70925 "2024-09-23T06:06:04Z")

</div>

Hi there, i am building a configurator with r3f and zustand for the state management. I want to add a functionality to compare configurations. My idea is to clone the current configurations group at some point and offse…

---

## [Help me to optimize this code](https://discourse.threejs.org/t/help-me-to-optimize-this-code/68424)

<div class="topic-metadata">

**Author:** [@ZainAliHaider](https://discourse.threejs.org/u/ZainAliHaider)\
**Replies:** 4\
**Last updated:** [July 22, 2024, 11:18am UTC](https://discourse.threejs.org/t/help-me-to-optimize-this-code/68424 "2024-07-22T11:18:08Z")

</div>

Hello Everyone, Currently I am working on feature in which based on distrance certain group of meshes will disappear as it they move far away from camera. I am attaching my code it is working as it is expected to be but…

---

## [Attach transfrom controls to center of Group?](https://discourse.threejs.org/t/attach-transfrom-controls-to-center-of-group/38732)

<div class="topic-metadata">

**Author:** [@any\_post](https://discourse.threejs.org/u/any_post)\
**Replies:** 5\
**Last updated:** [July 18, 2024, 7:18pm UTC](https://discourse.threejs.org/t/attach-transfrom-controls-to-center-of-group/38732 "2024-07-18T19:18:03Z")

</div>

I am creating One Group and adding Plane and sphere inside that group. Then I attached Trans Form Controls to that group. Trans Form control are getting attached to group and if I move the group with Trans From control p…

---

## [Drag control for multiple group of objects](https://discourse.threejs.org/t/drag-control-for-multiple-group-of-objects/66806)

<div class="topic-metadata">

**Author:** [@hainguyen2](https://discourse.threejs.org/u/hainguyen2)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 7:36am UTC](https://discourse.threejs.org/t/drag-control-for-multiple-group-of-objects/66806 "2024-06-13T07:36:26Z")

</div>

Hi everyone, I’m working on a Three.js project where I need to drag groups of objects, and I have many such groups. The problem I’m encountering is that DragControls.transformGroup only works if the array contains a sin…

---

## [Advance according to a vector system](https://discourse.threejs.org/t/advance-according-to-a-vector-system/65815)

<div class="topic-metadata">

**Author:** [@Telphn](https://discourse.threejs.org/u/Telphn)\
**Replies:** 7\
**Last updated:** [May 30, 2024, 7:15am UTC](https://discourse.threejs.org/t/advance-according-to-a-vector-system/65815 "2024-05-30T07:15:32Z")

</div>

Hello, I’m working on game design. I’m trying to create a 2D vector system for movement (if it’s tilted), but it’s not working as I’d like. The forums haven’t addressed this question yet. Here is the code for my 3D, con…

---

## [How to fix holes display in geometry](https://discourse.threejs.org/t/how-to-fix-holes-display-in-geometry/60835)

<div class="topic-metadata">

**Author:** [@DYDOI](https://discourse.threejs.org/u/DYDOI)\
**Replies:** 10\
**Last updated:** [January 30, 2024, 8:00am UTC](https://discourse.threejs.org/t/how-to-fix-holes-display-in-geometry/60835 "2024-01-30T08:00:37Z")

</div>

Hello, everyone! Worked on creating a hole inside the geometry of the group components. I was faced with the fact that on some sides the holes are not scaled correctly. How can this be fixed? Picture of right hole sca…

---

## [How to Collide two objects using TransformControls dragging and get dragging smoothly?](https://discourse.threejs.org/t/how-to-collide-two-objects-using-transformcontrols-dragging-and-get-dragging-smoothly/13205)

<div class="topic-metadata">

**Author:** [@mina\_magdy](https://discourse.threejs.org/u/mina_magdy)\
**Replies:** 13\
**Last updated:** [January 5, 2024, 11:10am UTC](https://discourse.threejs.org/t/how-to-collide-two-objects-using-transformcontrols-dragging-and-get-dragging-smoothly/13205 "2024-01-05T11:10:06Z")

</div>

I have some days trying to make a collision for 2 objects that can detect last position before the collision happened to can make the drag for each selected object smoothly dragging without stop each time getting collide…

---

## [Any way to highlight a group?](https://discourse.threejs.org/t/any-way-to-highlight-a-group/55707)

<div class="topic-metadata">

**Author:** [@Vikms95](https://discourse.threejs.org/u/Vikms95)\
**Replies:** 1\
**Last updated:** [September 5, 2023, 5:08pm UTC](https://discourse.threejs.org/t/any-way-to-highlight-a-group/55707 "2023-09-05T17:08:21Z")

</div>

As the title says, is there any way to highlight the “bounding box” of a group? Just as if it was a helper. Any help is appreciated.

---

## [Texture gets overlapped when load another texture](https://discourse.threejs.org/t/texture-gets-overlapped-when-load-another-texture/54961)

<div class="topic-metadata">

**Author:** [@lemanhstudy41](https://discourse.threejs.org/u/lemanhstudy41)\
**Replies:** 3\
**Last updated:** [August 15, 2023, 11:31am UTC](https://discourse.threejs.org/t/texture-gets-overlapped-when-load-another-texture/54961 "2023-08-15T11:31:39Z")

</div>

Hi! I am trying to build a house in Three.js and load different textures on different parts of the house. I first load a complete GLTF model of the house, then traverse the children and add them into groups as the compon…

---

## [async/await/loadAsync - black magic for me :-(](https://discourse.threejs.org/t/async-await-loadasync-black-magic-for-me/54595)

<div class="topic-metadata">

**Author:** [@three3d](https://discourse.threejs.org/u/three3d)\
**Replies:** 2\
**Last updated:** [August 4, 2023, 11:22pm UTC](https://discourse.threejs.org/t/async-await-loadasync-black-magic-for-me/54595 "2023-08-04T23:22:22Z")

</div>

I don’t know js so well, I don’t understand processes async/await/loadAsync - in detail these are too advanced for me :cry:. However, I have noticed that they can affect the ORDER of adding loaded models to groups. I…

---

## [Group.add() inside MTLLoader + OBJLoader?](https://discourse.threejs.org/t/group-add-inside-mtlloader-objloader/54508)

<div class="topic-metadata">

**Author:** [@three3d](https://discourse.threejs.org/u/three3d)\
**Replies:** 8\
**Last updated:** [August 2, 2023, 12:09pm UTC](https://discourse.threejs.org/t/group-add-inside-mtlloader-objloader/54508 "2023-08-02T12:09:56Z")

</div>

I can’t manage to use grouping while loading the \*.obj model: let MyGroup = new THREE.Group; let mtlLoader = new MTLLoader(); mtlLoader.setPath( fpath ); mtlLoader.load( fname+'.mtl', function ( materials ) { material…

---

## [Exporting a multi-material mesh with GLTFExporter splitting one part per material](https://discourse.threejs.org/t/exporting-a-multi-material-mesh-with-gltfexporter-splitting-one-part-per-material/52182)

<div class="topic-metadata">

**Author:** [@jaxx\_sparrow](https://discourse.threejs.org/u/jaxx_sparrow)\
**Replies:** 0\
**Last updated:** [May 30, 2023, 6:59am UTC](https://discourse.threejs.org/t/exporting-a-multi-material-mesh-with-gltfexporter-splitting-one-part-per-material/52182 "2023-05-30T06:59:42Z")

</div>

Hi all, I have a model which has few meshes and each mesh has multi materials. when exported the file using using GLTFExporter I can see the multi-material mesh is being split into multiple meshes (clone of the original…

---

## [Removing mesh from group](https://discourse.threejs.org/t/removing-mesh-from-group/52152)

<div class="topic-metadata">

**Author:** [@rocky\_scube](https://discourse.threejs.org/u/rocky_scube)\
**Replies:** 2\
**Last updated:** [May 29, 2023, 11:47am UTC](https://discourse.threejs.org/t/removing-mesh-from-group/52152 "2023-05-29T11:47:33Z")

</div>

Hello virtual folks, I’m new to Three.js and I’m making a sample tour project using 360 images. I’ve successfully added navigation spots in that 360 image but I’m facing one issue and that is when I’m try to remove old…

---

## [Group inside Group](https://discourse.threejs.org/t/group-inside-group/48285)

<div class="topic-metadata">

**Author:** [@Vikms95](https://discourse.threejs.org/u/Vikms95)\
**Replies:** 1\
**Last updated:** [February 21, 2023, 1:08pm UTC](https://discourse.threejs.org/t/group-inside-group/48285 "2023-02-21T13:08:36Z")

</div>

Hi all. Is it posible to have a Group placed inside another Group? I’m trying the make the following Group work: I’m pushing the nested the Group like this: const glbObject = gltf.scene; const objectToReplaceParams …

---

## [Underwater ecosystem](https://discourse.threejs.org/t/underwater-ecosystem/47041)

<div class="topic-metadata">

**Author:** [@kvaloris](https://discourse.threejs.org/u/kvaloris)\
**Replies:** 1\
**Last updated:** [January 18, 2023, 7:06pm UTC](https://discourse.threejs.org/t/underwater-ecosystem/47041 "2023-01-18T19:06:02Z")

</div>

Hello everyone, with my friends we created an underwater ecosystem using AI technics like genetic algorithm, boids, wave function collapse and neural network. If you want to take a look : Underwater ecosystem

---

## [I don't know how to control render time](https://discourse.threejs.org/t/i-dont-know-how-to-control-render-time/45295)

<div class="topic-metadata">

**Author:** [@mike\_mike](https://discourse.threejs.org/u/mike_mike)\
**Replies:** 1\
**Last updated:** [November 30, 2022, 3:14am UTC](https://discourse.threejs.org/t/i-dont-know-how-to-control-render-time/45295 "2022-11-30T03:14:27Z")

</div>

As titile. I want to create a 3D modal like Rubik’s Cube. i use WebGLRenderer. Then ,i want to rotate a layer of the cube. 1.I create a three.group and add all cell cube in the layer to group. 2.rotate the group. 3…

---

## [Adding instances and groups in realtime](https://discourse.threejs.org/t/adding-instances-and-groups-in-realtime/45086)

<div class="topic-metadata">

**Author:** [@hermann](https://discourse.threejs.org/u/hermann)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 8:00pm UTC](https://discourse.threejs.org/t/adding-instances-and-groups-in-realtime/45086 "2022-11-24T20:00:58Z")

</div>

I have x many objects. I want them all to be in the scene. So I add them to the scene. No problem. But sometimes I want to refer to those objects in terms of groups. So I make a group, add the objects to it and add …

---

## [Import gltf and change group center](https://discourse.threejs.org/t/import-gltf-and-change-group-center/43850)

<div class="topic-metadata">

**Author:** [@aswwwcom](https://discourse.threejs.org/u/aswwwcom)\
**Replies:** 2\
**Last updated:** [October 21, 2022, 10:35am UTC](https://discourse.threejs.org/t/import-gltf-and-change-group-center/43850 "2022-10-21T10:35:35Z")

</div>

Hi I’d like to reset of gltf.scene center to it’s children mesh box center The original looks like this (group center is too below) So I coded like this scene.add(gltf.scene); const …

---

## [Scale Group accoding to it's center](https://discourse.threejs.org/t/scale-group-accoding-to-its-center/40994)

<div class="topic-metadata">

**Author:** [@ToastedHippie](https://discourse.threejs.org/u/ToastedHippie)\
**Replies:** 0\
**Last updated:** [August 3, 2022, 6:46am UTC](https://discourse.threejs.org/t/scale-group-accoding-to-its-center/40994 "2022-08-03T06:46:24Z")

</div>

Hi! I have a group of meshes with TextGeometries (every geometry is a one letter of text) and I animating thouse meshes like some text reveal animation. After that I want to scale a whole group in another animation, but …

---

## [Get position of object based on its center](https://discourse.threejs.org/t/get-position-of-object-based-on-its-center/35493)

<div class="topic-metadata">

**Author:** [@JSmithOner](https://discourse.threejs.org/u/JSmithOner)\
**Replies:** 3\
**Last updated:** [March 3, 2022, 6:45am UTC](https://discourse.threejs.org/t/get-position-of-object-based-on-its-center/35493 "2022-03-03T06:45:22Z")

</div>

I have a group with gltf scene inside of it. From what I see the positionning of the object is not based on its center. So I need to find for some reasons the center of this group and its center based position in the sce…

---

## [Moving certain meshes from GLTF into groups](https://discourse.threejs.org/t/moving-certain-meshes-from-gltf-into-groups/29858)

<div class="topic-metadata">

**Author:** [@Andrew-aps](https://discourse.threejs.org/u/Andrew-aps)\
**Replies:** 1\
**Last updated:** [September 12, 2021, 6:08pm UTC](https://discourse.threejs.org/t/moving-certain-meshes-from-gltf-into-groups/29858 "2021-09-12T18:08:36Z")

</div>

Hi, I’ve got certain items in a GLB file that I need to animate their opacity in sections, so my thinking was to traverse each item in the loaded asset, check if the name matches certain keywords I’ve put into an array,…

---

## [Not execute onBeforeRender on Group](https://discourse.threejs.org/t/not-execute-onbeforerender-on-group/28174)

<div class="topic-metadata">

**Author:** [@11170](https://discourse.threejs.org/u/11170)\
**Replies:** 1\
**Last updated:** [July 20, 2021, 8:22am UTC](https://discourse.threejs.org/t/not-execute-onbeforerender-on-group/28174 "2021-07-20T08:22:24Z")

</div>

hello. Doesn’t group support onBeforeRender method?

---

## [Question about Multiple mesh in group add single one texture](https://discourse.threejs.org/t/question-about-multiple-mesh-in-group-add-single-one-texture/28104)

<div class="topic-metadata">

**Author:** [@JohnConstantine](https://discourse.threejs.org/u/JohnConstantine)\
**Replies:** 7\
**Last updated:** [July 19, 2021, 9:21am UTC](https://discourse.threejs.org/t/question-about-multiple-mesh-in-group-add-single-one-texture/28104 "2021-07-19T09:21:44Z")

</div>

Hi guys! I have a question,I assemble several meshes into one ‘mesh’ (group),looks like this now i add texture to them separately ,looks like this now its not a good looking cause we can see the line clearly Ca…

---

## [Array of three.group()](https://discourse.threejs.org/t/array-of-three-group/25143)

<div class="topic-metadata">

**Author:** [@MarkCosmic](https://discourse.threejs.org/u/MarkCosmic)\
**Replies:** 4\
**Last updated:** [April 17, 2021, 5:01pm UTC](https://discourse.threejs.org/t/array-of-three-group/25143 "2021-04-17T17:01:44Z")

</div>

Greetings all, is it possible to make an array of THREE.Group()? Example: Let tGroup = \[\]; for(let i =0; i \< 40; i++){ tGroup\[i\] = new THREE.Group(); Let cluster\[i\] = new Cluster(); //call to a class tGroup\[i\].add(clus…

---

## [Group And Animate Meshes](https://discourse.threejs.org/t/group-and-animate-meshes/22003)

<div class="topic-metadata">

**Author:** [@lorenzo](https://discourse.threejs.org/u/lorenzo)\
**Replies:** 13\
**Last updated:** [December 29, 2020, 8:36pm UTC](https://discourse.threejs.org/t/group-and-animate-meshes/22003 "2020-12-29T20:36:47Z")

</div>

Hi, I animate a cone (positions xyz, rotations xyz and scale xyz). For now I create 4 meshes (external-cyan, base-white, internal-left-red, internal-right-texture) and animate them separately. geometry.setAttribute(‘…

---

## [Adding group to one scene disables it in another scene, why?](https://discourse.threejs.org/t/adding-group-to-one-scene-disables-it-in-another-scene-why/21264)

<div class="topic-metadata">

**Author:** [@knortjor](https://discourse.threejs.org/u/knortjor)\
**Replies:** 2\
**Last updated:** [December 5, 2020, 8:52am UTC](https://discourse.threejs.org/t/adding-group-to-one-scene-disables-it-in-another-scene-why/21264 "2020-12-05T08:52:29Z")

</div>

is this intentional behaviour? If so, why? something like var group= new THREE.Group(); group.add(mysprites) scene.add(group); scene2.add(group); render(scene); //nothing drawn render(scene2); //visible

[Next page](https://discourse.threejs.org/tag/group/246.md?match_all_tags=true&page=1&tags%5B%5D=group)
