plane

Three.js place a plane through perpendicular by line

纵饮孤独 提交于 2021-02-10 20:50:58
问题 I have an a line and plane in 3D space. I want to place plane's width and length line as perpendicular by line. Please see my jsFiddle. I am newbie at both three.js and vector calculation. Current 2. Desired result Please advice me. (Apologies for my bad English) JS code: let renderer; let camera; let controls; let scene = new THREE.Scene(); camera = new THREE.PerspectiveCamera(54, window.innerWidth / window.innerHeight, 0.1, 1000); renderer = new THREE.WebGLRenderer({ antialias: true });

Three.js place a plane through perpendicular by line

依然范特西╮ 提交于 2021-02-10 20:48:18
问题 I have an a line and plane in 3D space. I want to place plane's width and length line as perpendicular by line. Please see my jsFiddle. I am newbie at both three.js and vector calculation. Current 2. Desired result Please advice me. (Apologies for my bad English) JS code: let renderer; let camera; let controls; let scene = new THREE.Scene(); camera = new THREE.PerspectiveCamera(54, window.innerWidth / window.innerHeight, 0.1, 1000); renderer = new THREE.WebGLRenderer({ antialias: true });

Create a section plane leaning against one object

邮差的信 提交于 2021-01-29 12:32:48
问题 I need to create a vertical section plane leaning against a selected object. For example selecting an object like this I need to get a section plane leaning against the longest side of the object I'm using the viewer version 7.16 that offers a Section plane option in the right click selection but it works incorrectly. I am using the frags.getWordBounds method to get the box "around" the object and, using a little trigonometry, I have calculated the orientation, but I guess it's not the right

How to call multiple planes in javascript?

冷暖自知 提交于 2020-12-13 04:09:22
问题 I've been trying to fix an issue with my site for the past week to no avail. I'm using Curtains.js and I just want to display multiple planes on the home page. I've got that working, but every plane after the first shifts up, overlaps or is overlapped. I've tested the code on other shopify themes, and only the first plane is displayed properly as well. Any help would be much appreciated. <script> window.addEventListener("load", function () { var curtains = new Curtains({ container: "planes

How to call multiple planes in javascript?

[亡魂溺海] 提交于 2020-12-13 04:07:50
问题 I've been trying to fix an issue with my site for the past week to no avail. I'm using Curtains.js and I just want to display multiple planes on the home page. I've got that working, but every plane after the first shifts up, overlaps or is overlapped. I've tested the code on other shopify themes, and only the first plane is displayed properly as well. Any help would be much appreciated. <script> window.addEventListener("load", function () { var curtains = new Curtains({ container: "planes

How to call multiple planes in javascript?

放肆的年华 提交于 2020-12-13 04:07:32
问题 I've been trying to fix an issue with my site for the past week to no avail. I'm using Curtains.js and I just want to display multiple planes on the home page. I've got that working, but every plane after the first shifts up, overlaps or is overlapped. I've tested the code on other shopify themes, and only the first plane is displayed properly as well. Any help would be much appreciated. <script> window.addEventListener("load", function () { var curtains = new Curtains({ container: "planes

How to call multiple planes in javascript?

∥☆過路亽.° 提交于 2020-12-13 04:07:30
问题 I've been trying to fix an issue with my site for the past week to no avail. I'm using Curtains.js and I just want to display multiple planes on the home page. I've got that working, but every plane after the first shifts up, overlaps or is overlapped. I've tested the code on other shopify themes, and only the first plane is displayed properly as well. Any help would be much appreciated. <script> window.addEventListener("load", function () { var curtains = new Curtains({ container: "planes

Qt3d transparency texture will be covered. How to slove that?

旧街凉风 提交于 2020-08-10 19:24:57
问题 I add a plane to the 3D world and it should be in torus's center. But if I add the plane first and the tour second, the plane will be tour covered (plane's coordinate is in tour center): I think it is about paint order. The plane should be drawn in last order. Changing plane and torus adding order will be correct: Can QDepthTest help me? Or any other way? Can show me some examples? Thanks! code (without the sphere): class FlippedTextureImage : public Qt3DRender::QPaintedTextureImage { public:

Qt3d transparency texture will be covered. How to slove that?

本小妞迷上赌 提交于 2020-08-10 19:22:27
问题 I add a plane to the 3D world and it should be in torus's center. But if I add the plane first and the tour second, the plane will be tour covered (plane's coordinate is in tour center): I think it is about paint order. The plane should be drawn in last order. Changing plane and torus adding order will be correct: Can QDepthTest help me? Or any other way? Can show me some examples? Thanks! code (without the sphere): class FlippedTextureImage : public Qt3DRender::QPaintedTextureImage { public:

3D Line - Plane intersection?

守給你的承諾、 提交于 2020-01-22 03:00:45
问题 I am having two Vectors (X,Y,Z), one above Y=0 and one below Y=0 . I want to find the Vector (X,Y,Z) where the line between the two original vectors intersects with the Y=0 level. How do I do that? Example Point A: X = -43.54235 Y = 95.2679138 Z = -98.2120361 Example Point B: X = -43.54235 Y = 97.23531 Z = -96.24464 These points read from two UnProjections from a users click and I'm trying to target the unprojection to Y=0 . (I found 3D line plane intersection, with simple plane but didn't