Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [buffer-geometry]

A geometry class used in the WebGL framework Three.js to increase performance.

buffer-geometry
0 votes
1 answer
17 views

How can I get a group of triangles that comprise a cube face?

I’m trying to get the triangles that create a cube mesh face. This is what I tried: The box geometry mesh turns to have a groups array of 6 items. I assumed that since a cube has 6 faces, each of this ...
MiguelG's user avatar
  • 257
0 votes
1 answer
27 views

threejs position attribute, why does it compute repetitive vertexes?

while working on getting the geometry vertexes from a mesh, I encountered the following discovery: My boxgeometry is supposed to have only 8 vertexes, however the threejs computation delivers 24 of ...
MiguelG's user avatar
  • 257
0 votes
0 answers
31 views

Double Color in Three Js Buffer Geomtery shapes

I am using three.js to create shapes, but while drawing my irregular polygon shapes face double coloring using while drawing from certain directions. Example: I attached two pictures of same shapes, ...
sana rahman's user avatar
0 votes
0 answers
33 views

mergedGeometry LineSegment combination problem Three.js

I want to create my edge lines of merged geometry. But with that code ı can create edges lines independentyl with 2 main geometry // Combine two geometries const geometry1 = new THREE.BoxGeometry(0....
egemen yıldırım's user avatar
0 votes
0 answers
139 views

REE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values

I am creating a portfolio using Reactjs and React Three Fiber for 3d components, it is a single page apps that showcases different sections and that contains 3 3D components. While 2 of the 3 ...
llmarketer's user avatar
0 votes
0 answers
17 views

How to draw multiple 2d circles on top of buffer geometry?

Want to add multiple circles (with radius and coords) on top layer of a buffer geometry and mesh lambert material. Desired result needs to come like this below image. It is already a buffer geometry ...
Ram's user avatar
  • 1
1 vote
1 answer
219 views

THREE.JS, change default index of buffer geometry, converting a geometry designed for a THREE.PointsMaterial to a THREE.MeshBasicMaterial (or other)

In this code pen, you'll find a parametric flower that is using a red THREE.MeshBasicMaterial with a wireframe, it looks like this: with wireframe: false, it looks like this: Basically, I just want ...
R-yurew's user avatar
  • 102
4 votes
2 answers
2k views

how to draw polygon in three js using vertices?

I have vertices(x,y,z) of a polygon as input. How can I render a polygon having these vertices in three.js? THREE.Geometry() is removed from three js. how to draw plane polygon with bufferGeometry or ...
Aakash Govardhane's user avatar
0 votes
1 answer
2k views

What is the suggested alternative for the deprecated Face3?

I know THREE.Geometry was deprecated in favor of THREE.BufferGeometry(). However, there doesn't seem to be any clear information about how to implement what was once "Face3()". My ...
A__'s user avatar
  • 1,722
1 vote
1 answer
774 views

Changing from THREE.Geometry to THREE.BufferGeometry with THREE JS

Hi I'm new to Three JS and need a little help. I am using a piece of code I found to create a sphere of random points but since THREE.Geometry has since been depreciated I need to change THREE....
cannon303's user avatar
  • 468
0 votes
5 answers
1k views

THREE.js Correctly UV Map texture onto custom buffer geometry while updating THREE.js

I'm trying to update threejs versions and essentially I want to use an example I found on the internet for a very early version of threejs (r44) in a more recent version of threejs, (r143) and I'm ...
R-yurew's user avatar
  • 102
0 votes
1 answer
1k views

How to access the BufferGeometry of IFC items in web-ifc-three

I'm trying to get the geometry of an element i.e. a BufferGeometry object corresponding to an expressId I have (not through picking). Basically I'm asking how to traverse the IFC model and export each ...
Shai Ghelberg's user avatar
1 vote
0 answers
273 views

How to handle overlapping transparent materials in threejs while using groups in a single BufferGeometry?

I'm having trouble getting the desired result, when rendering a single THREE.BufferGeometry with multiple groups/materials. Desired result (image) Actual result (image) JSFiddle I've created the ...
Mehdi Esfahani's user avatar
1 vote
1 answer
73 views

Why does my buffer geometry fail when I try to load in vertices, faces and normal from .mat file?

I want to load in my matlab geometry into my three.js scene. My 3D data is saved in a struct .mat file which contains .vertices, .faces, .VertexNormals and .VertexColorData arrays. I am able to load ...
Elsamarie O2's user avatar
0 votes
1 answer
291 views

How to rotate individual planes of buffer geometry along their own origin

There's buffer geometry that consists of many planes on sphere. I'm trying to rotate each plane indidividually along its own origin, so overall animation will look more like explosion. But instead of ...
Oleh Vdovenko's user avatar

15 30 50 per page
1
2 3 4 5
10