blender

Is three.js ObjectLoader capable of loading textures?

此生再无相见时 提交于 2019-12-02 18:48:27
问题 three.js version 0.0.70, blender version 2.73a I have a scene exported from blender to three.js json format using new io_three (not io_three_mesh ) exporter. I'm able to import the scene into three.js using ObjectLoader : var objectLoader = new THREE.ObjectLoader(); objectLoader.load('assets/models/exportedScene.json', function(imported) { scene.add(imported); }); Unfortunatelly, no texture is applied to an object, only the material. As I see from exportedScene.json file, there is an info

Blender Google Colab

删除回忆录丶 提交于 2019-12-02 18:46:39
问题 Up until few days ago I was able to run Blender(or sheep it) headless on Google Colab with an GPU(yes I checked trice that I selected a GPU Instance). Now running keras/tensorflow does work fine but blender can't detect the GPU at all and Sheepit tells me that "cuInit Failed ret: 100" nvidia-smi results with: Sat Aug 24 19:48:06 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.40 Driver Version: 418.67 CUDA Version: 10.1 | |----------------

Three-JS Mesh visible on opposite side of model

人盡茶涼 提交于 2019-12-02 15:59:02
问题 So I'm using a custom model made in blender for ThreeJS. I exported it to a .obj file and used the Three-js conversion utility to make a json file. I have it set to rotate, and as it rotates, you can see the other side of the model. This is the code I'm using to load it: loader.load("pegnin.js", function(geometry, materials){ material = new THREE.MeshPhongMaterial( { color: 0xff0000, polygonOffset: true, polygonOffsetFactor: 1, // positive value pushes polygon further away polygonOffsetUnits:

Is three.js ObjectLoader capable of loading textures?

邮差的信 提交于 2019-12-02 08:21:16
three.js version 0.0.70, blender version 2.73a I have a scene exported from blender to three.js json format using new io_three (not io_three_mesh ) exporter. I'm able to import the scene into three.js using ObjectLoader : var objectLoader = new THREE.ObjectLoader(); objectLoader.load('assets/models/exportedScene.json', function(imported) { scene.add(imported); }); Unfortunatelly, no texture is applied to an object, only the material. As I see from exportedScene.json file, there is an info about texture in file: "images": [{ "url": "blue.jpg", "uuid": "DFE5BBBF-601B-48EA-9C05-B9CB9C07D92E",

ThreeJS - How can I apply an environment map to an imported obj model?

本小妞迷上赌 提交于 2019-12-02 07:40:39
问题 EDIT: I have come across a solution on this post -- How to assign a material to ColladaLoader or OBJLoader. I used the following code which achieved the effect of allowing me to use the envMaterial cubemap on the imported .obj - var loader = new THREE.OBJLoader(); loader.load( 'models/refTestblend.obj', function ( object ) { object.traverse( function ( child ) { if ( child instanceof THREE.Mesh ) { child.material = envMaterial; } } ); scene.add( object ); } ); Unfortunately, I have had to

Why do two faces appear invisible in ThreeJs?

99封情书 提交于 2019-12-02 01:28:02
I've an object in Blender. Because I want to do some UV-unwrapping using ThreeJS (see here ) I determined that I need merge two of the sides to correctly unwrap. So before exporting the .blend as a .obj object I selected the Tris to Quads face option to create a square face for the two sides as opposed to it being made up of two triangles. Here's what it looked like in Blender: But when I import the .obj and .mtl file into ThreeJs I get this: Is this a problem to do with me not updating the material being added to the new object? The handles appearing white makes me think this is the case. If

blender-编译源码

。_饼干妹妹 提交于 2019-12-01 23:20:18
1. 获得源码,目前是以 2.8 版本为例子 https://www.blender.org/download/ 上,可以直接下面源码 2. 解压,在blender-2.80 目录下,运行 make.bat ,漫长的等待。(留意Log,可能会提示需要git 命令无效,所以要在目录下执行 git init,创建git本地仓库) 3. 这个时候在blender-2.80 目录的同级会出现 build_windows__x64_vc15_Release 目录,然后可以进入这个目录,打开 Blender.sln 。 4. CMakePredefinedTargets 下的 INSTALL 执行生成。 5. 再选择 blender,执行 开始执行。 来源: https://www.cnblogs.com/lizhanzhao/p/11720754.html

apply non-hierarchial transforms to hierarchial skeleton?

五迷三道 提交于 2019-12-01 22:17:44
I use Blender3D, but the answer might not API-exclusive. I have some matrices I need to assign to PoseBones. The resulting pose looks fine when there is no bone hierarchy (parenting) and messed up when there is. I've uploaded an archive with sample blend of the rigged models, text animation importer and a test animation file here: http://www.2shared.com/file/5qUjmnIs/sample_files.html Import the animation by selecting an Armature and running the importer on "sba" file. Do this for both Armatures. This is how I assign the poses in the real (complex) importer: matrix_bases = ... # matrix from

Generating random terrain in Blender3D

走远了吗. 提交于 2019-12-01 19:37:02
I tried finding a python script in google that will generate a random terrain when the game starts (or each time a the player advances to a new scene) but all the tools I found are for creating a terrain to render it, not for the game mode. Any idea how/where to find one? (I'm assuming that since Blender3D has game programming capabilities, it is OK for someone to ask in SO) Is this link related? http://blenderartists.org/forum/showthread.php?t=77794 To generate terrain (height map) the algorithm is pretty simple (fractal plasma), something like this algorithm (Java): http://www.sinc

how can i have the full control on my 3D human model?

佐手、 提交于 2019-12-01 14:58:02
I'm working on a project that i use a 3D human model made by makehuman and i want to interacting with it ( changing some feature like: height, width, leg long, etc..) i.e. full control. so i want to ask how can i do this in order to make some changes on the model features and then export it automatically(with code not using the tool) ??? All that can be done by Python scripting 来源: https://stackoverflow.com/questions/5570727/how-can-i-have-the-full-control-on-my-3d-human-model