STL rendering with threejs

user3547059

I have created a 3D model for printing in 3D an industrial layout. Because I am not used in playing with professional 3D modeler software, I used SketchUp and the result was fine !

Now, I want to reuse the 3D models to make a dynamic visit of the "to-be" installation.

I exported each object in Collada format (DAE), and then try to used the collada importer in Threejs. I have around 130 objects that I want to be able to select interactively, but I manage only to load one ...

I then get a try with STL loader (after having converting objects with MESHLAB from DAE to STL).

And then it works without any problem... but rendering problems.

In the linked picture (sorry, not enough reputation to insert image !), you can see that some parts of the objects seem the be "transparency", even if they have not this property set ! (only the ground is).

While moving with the TrackBallControl, some parts of the objects disappear from time to time....

I try with only one object, with or without the ground,...

I took snapshots of the problem I get :

  • fig 1, inside the red circle, the errors appears
  • fig 2, without the ground, it is the same : some parts that should be hidden are not
  • fig 3, the wireframe rendering shows not pb in the exported model...

link >> http://stackoverflow.legrandcondor.com/photo.html

link >> http://stackoverflow.legrandcondor.com/

Any ideas ? Suggestions before I get crazy ?! (Everything else works fine!)

Thankx in advance,

WestLangley

Your camera near plane is 0.1 and far plane is 1000000. Small values of the near plane can lead to depth-sorting precision problems.

In your case, set your near plane to, say, 100.

ref: http://www.opengl.org/wiki/Depth_Buffer_Precision

Also consider using OrbitControls so your model remains right-side-up.

three.js r.69

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

ThreeJS geometry data from Json not rendering

분류에서Dev

Rendering blank screen when trying to play animation in threejs

분류에서Dev

STL 로더를 사용하여 ThreeJS에서 Raycaster로면 선택

분류에서Dev

Threejs : stl로 내보낼 때 지오메트리 정점이 업데이트되지 않음

분류에서Dev

ThreeJS FPS 하락

분류에서Dev

ThreeJS LOD clone ()

분류에서Dev

threejs 제어 정보

분류에서Dev

모델로드-threejs

분류에서Dev

문자 방향 ThreeJS

분류에서Dev

STL std :: find () C ++

분류에서Dev

Threejs 기하학 및 TypeScript

분류에서Dev

ThreeJS의 OrbitControls의 관성

분류에서Dev

threejs에서 OrbitControls 릴리스

분류에서Dev

ThreeJS 위치 / 객체 회전

분류에서Dev

Scaling a geometry in one direction with top as reference in threejs

분류에서Dev

THREEJS-OBJMTLLoader 및 범프 맵

분류에서Dev

Threejs 에지 도우미

분류에서Dev

threejs의 리본 대안

분류에서Dev

Client side rendering and skipping server rendering approach?

분류에서Dev

다른 STL 버전?

분류에서Dev

stl codecvt 오류 C ++

분류에서Dev

How the default stl allocator allocates?

분류에서Dev

Considering complexity of STL container operations

분류에서Dev

SVG images not rendering in Safari

분류에서Dev

Conditionally Rendering in React Native

분류에서Dev

Set controller for template rendering

분류에서Dev

JSF Trinidad Rendering not working

분류에서Dev

Ejs - templating data is not rendering

분류에서Dev

Drop location rendering with swing