question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RoundedBoxBufferGeometry is buggy

See original GitHub issue

RoundedBoxBufferGeometry should render correctly for the default argument values.

geometry = new RoundedBoxBufferGeometry(); // no args

Screen Shot 2020-11-10 at 8 16 27 PM

//

RoundedBoxBufferGeometry should be a box with rounded edges. That means the six sides should have faces that are coplanar. That is, the vertex positions are not correct.

geometry = new RoundedBoxBufferGeometry( 10, 10, 10, 6, 2 ); // number of segments is even

Screen Shot 2020-11-10 at 8 15 08 PM

//

UVs are not correct.

Screen Shot 2020-11-10 at 8 14 40 PM

//

The normals for the triangles in the six primary faces must be parallel to the coordinate axes. That is, the vertex normals are not correct.

Screen Shot 2020-11-10 at 8 40 01 PM

  • Three.js version: [r.123dev]

/ping @gkjohnson If you want to have a look at this, that is fine with me. I am not going to pursue this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
WestLangleycommented, Nov 11, 2020

Does #20666 fix all the issues WestLangley reported here?

It is better, but the default values are not fixed, and passing in 1 for segments is buggy.

Also, the bounding box is too small. It should be the same size as the equivalent BoxBufferGeometry. In other words, the vertex positions are still not correct.

I’d suggest reopening this, or creating a new issue.

1reaction
mrdoobcommented, Nov 13, 2020

I’ll do the change 👌

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blog Refresh 2022 - Ryosuke
The first round didn't deviate too far from where we ended up. I had a fairly clear vision of what I ... Although...
Read more >
vue-3d-model - UNPKG
... ","proto","TypeError","set","setPrototypeOf","test","buggy","Function","f" ... TypedArray","TAC","TypedArrayPrototype","v","setter","round","addElement" ...
Read more >
背景にひと手間加えたい時に参考になりそうなスニペット集
BoxBufferGeometry (cubeSize, cubeSize, cubeSize); // BufferAttribute allows for more efficient passing of data to the GPU const material ...
Read more >
Untitled
Code Example 'round' //ignored by WebGLRenderer } ); Examples WebGL ... BoxBufferGeometry(1,1,1) const geo = new THREE. ... barracuda buggy plans.
Read more >
Three js rotate group
These are mostly the same as the previous chapter, except that we have replaced BoxBufferGeometry and TextureLoader, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found