Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
how can I transform a view from three.js camera and scene to a bcf cameraview

I'm trying to create a bcf file out of the ifc.js viewer. The ifc.js viewer is using a three.js webglrenderer with a camera and scene. Here is an example.

enter image description here enter image description here https://threejs.org/docs/#api/en/cameras/Camera https://threejs.org/docs/#api/en/scenes/Scene

How can I transform this view to a bcf view with CameraUpVector, CameraDirection and CameraViewPoint. enter image description here

https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I found a transformation by my self.

bcfCameraViewPointX = camera.position.x;
bcfCameraViewPointX = -camera.position.z;
bcfCameraViewPointX = camera.position.y;

//for the direction you have to calculate a vector out of the roation and the eulerOrder

let vector3 = new THREE.Vector3();
vector3.x = 0;
vector3.y = 0;
vector3.z = -1;

vector3.applyEuler(camera.rotation, camera.eulerOrder);

bcfCameraDirectionX = vector3.x;
bcfCameraDirectionX = -vector3.z;
bcfCameraDirectionX = vector3.y;

bcfCameraUpVectorX = camera.up.x;
bcfCameraUpVectorX = -camera.up.z;
bcfCameraUpVectorX = camera.up.y;

bcfFieldOfView = camera.fov;
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!