3d

Marker not working properly in ARtoolkit in Unity

南楼画角 提交于 2020-01-07 02:55:26
问题 I am working on a simple AR project using Unity and ARToolkit. For testing purposes, I have created a test project to track the image and create a simple 3d sphere and it is working perfectly when I play it from inside the Unity editor. The problem is that when I create the build .exe of the project, the application does not augment the 3D model of the marker when I put the marker in front of Camera (it should work as it is working when playing from inside the editor). It is also showing two

How can a 3D box with unequal sides fill the viewport, no matter its orientation in perspective?

爷,独闯天下 提交于 2020-01-07 00:34:28
问题 As shown in the included (three.js) live snippet (also at jsfiddle.net/gpolyn/une6tst5/21) *, I have a box with unequal sides that a viewer may re-position by dragging. The extreme left, right, top or bottom box corners in the viewport are dynamically indicated by green square dots. My modeling challenge is as follows: For a given viewport, present my box so that through all positions the dots with the longest window distance between them are at their respective viewport edges . So, for one

从0开发3D引擎(二):准备预备知识

纵然是瞬间 提交于 2020-01-07 00:11:18
大家好,本文介绍了开发3D引擎需要的预备知识,给出了相关的资源。 上一篇博文 从0开发3D引擎(一):开篇 了解Web 3D Web 3D的历史-WebGL 目前Web 3D是基于WebGL这个Web端3D API的,它的版本历史为: (图来自于 WebGPU 开发状态与计划 ) (注:OpenGL是桌面端的3D API,OpenGL ES是移动端的3D API) 2007年,发布OpenGL ES 2.0 OpenGL ES 2.0引入了可编程着色器,增加了顶点着色器和片段着色器。 2011年,基于OpenGL ES 2.0,发布WebGL 1.0 WebGL 1.0的发布和各大浏览器的支持,意味着Web 3D时代的来临。随后各种Web 3D开源引擎(如three.js、babylon.js等)以及Web 3D商业化方案(如playcanvas)陆续出现,使得Web 3D应用开发变得越来越简单。 2012年,发布了OpenGL ES 3.0;2014年和2015年分别发布了OpenGL ES 3.1和3.2 移动端3D API继续增强,升级内容如上图(“WebGL版本演示”)所示。 2017年,基于OpenGL ES 3.0,发布了WebGL 2.0 WebGL 2.0完全兼容WebGL 1.0,进行了很多增强:如支持3D纹理、UBO等 Apple不支持WebGL 2.0的

Plot 3D mesh using mplot3d

不羁岁月 提交于 2020-01-06 21:43:42
问题 starting from a text file containing the points coordinates of a 3D surface, its deformed due to a pressure applied on it and the values of the pressure applied according to the following example: Node_label X_in Y_in Z_in X_def Y_def Z_def Press 11542 15229 17734 18332 11.4645 67.7709 138.905 4.97573E-03 11543 3283 3238 16784 7.73624 67.3238 138.781 13.2628E-03 11540 13506 13385 17482 18.9023 67.6291 139.051 3.61705E-03 11541 7637 7516 18637 15.2164 68.0038 139.031 12.7343E-03 11546 16137

Plot 3D mesh using mplot3d

爱⌒轻易说出口 提交于 2020-01-06 21:42:35
问题 starting from a text file containing the points coordinates of a 3D surface, its deformed due to a pressure applied on it and the values of the pressure applied according to the following example: Node_label X_in Y_in Z_in X_def Y_def Z_def Press 11542 15229 17734 18332 11.4645 67.7709 138.905 4.97573E-03 11543 3283 3238 16784 7.73624 67.3238 138.781 13.2628E-03 11540 13506 13385 17482 18.9023 67.6291 139.051 3.61705E-03 11541 7637 7516 18637 15.2164 68.0038 139.031 12.7343E-03 11546 16137

Hide a face of a 3D shape behind another,Android canvas?

怎甘沉沦 提交于 2020-01-06 20:00:43
问题 Suppose that I have to draw two faces of a 3D shape in a canvas.In OpenGL,we use clockwise and non clockwise ordering of vertices to detect what face is front face and what is behind face,but I can not use OpenGL and I would to use canvas.It seems that if we draw behind face and then draw front face,it hides behind face,but my 3D shape rotates and each face some times must be front and some times must be behind. My question is : When shape is rotating,how I can detect witch face is front?Or

java.lang.NoClassDefFoundError: javax/media/opengl/GLException at processing.opengl.PGraphicsOpenGL

萝らか妹 提交于 2020-01-06 19:25:40
问题 I am writing a program in Processing on Raspberrypi(Raspbian), to import a 3D STL image file. It is working perfectly on Microsoft (windows7) & Linux(Ubuntu) platform but I am struggling to run same program on Raspberrypi (Raspbian) platform. I am getting below Error at size(600,600,P3D) when I run this program on Raspberrypi... Coding import toxi.geom.*; import toxi.geom.mesh.*; import toxi.processing.*; TriangleMesh mesh; ToxiclibsSupport gfx; void setup() { size(600,600,P3D); mesh=

初探Qt 3D Studio

怎甘沉沦 提交于 2020-01-06 19:25:12
老师说Qt 3D studio可以用来制作3D界面,可以用于VR之类的应用,并且让我带一个本科生做关于这个的毕设,于是了解一下。 Qt3D studio的配置需要在线安装Qt,而不是通常的下载安装包的方式。 1.下载Qt在线安装工具qt-unified-windows-x86-3.1.1-online.exe http://download.qt.io/archive/online_installers/ 2.在线安装 选择需要安装的组件 这里要注意在Develop and Designer Tools里有Qt 3D studio的选项 等待下载安装 安装完成,非常顺利。 可以打开Qt 3D Studio,打开它自带的example看一看效果。 参考文章: Qt 5.12.6 在线安装(MSVC cdb调试看源码) Windows/Linux 下安装配置Qt 3DStudio开发环境 来源: CSDN 作者: 街道口扛把子 链接: https://blog.csdn.net/m0_38133212/article/details/103847876

java.lang.NoClassDefFoundError: javax/media/opengl/GLException at processing.opengl.PGraphicsOpenGL

我怕爱的太早我们不能终老 提交于 2020-01-06 19:25:07
问题 I am writing a program in Processing on Raspberrypi(Raspbian), to import a 3D STL image file. It is working perfectly on Microsoft (windows7) & Linux(Ubuntu) platform but I am struggling to run same program on Raspberrypi (Raspbian) platform. I am getting below Error at size(600,600,P3D) when I run this program on Raspberrypi... Coding import toxi.geom.*; import toxi.geom.mesh.*; import toxi.processing.*; TriangleMesh mesh; ToxiclibsSupport gfx; void setup() { size(600,600,P3D); mesh=

Three.js Loading Same Objects

做~自己de王妃 提交于 2020-01-06 15:29:33
问题 I want to load multiple objects with THREE OBJLoader. But I don't know how to do it. I'm using this code: for(var i=0;i<10;i++){ loader.load('suzanne.obj', function(event) { var object = event; object.traverse(function(child) { if ( child instanceof THREE.Mesh) { child.material.map = texture; } }); object.position.set(3 * i, 0.5,3); scene.add(object); }); } I don't know what i'm doing wrong but it had to be something with async loading objects... I should wait for object to load then add it