blender

THREE.JSONLoader - Double sided texture - PNG

白昼怎懂夜的黑 提交于 2019-12-11 07:56:44
问题 I´m new in Three.js and I need advice. After exporting model from Blender (version 2.71) and loading to scene I see one side textured on my three.....but second side is without texture..... I must enable double side texture, however I don´t know how. I try some examples, but nothing works. I using .PNG texture format with alpha-chanel.. I also try in Blender activated double side, but nothing happends. Here is my loading code: var three1; var jsonLoader = new THREE.JSONLoader(); jsonLoader

“This model does not contain a SkinningData tag.” exception

女生的网名这么多〃 提交于 2019-12-11 07:09:39
问题 I've been using tutorial from wikibooks, but I'm stuck at model rendering. ( http://en.wikibooks.org/wiki/Creating_a_Simple_3D_Game_with_XNA/Rendering_Your_Model ) When I try to compile, I get this exception: "This model does not contain a SkinningData tag.". What I though about, is that model wasn't exported properly, but it doesn't work after using model from their site. I will be thankfull for any help. 回答1: I figured it out! When you import your model into VS, right click on your model,

Blender import three.js json model with UV map

醉酒当歌 提交于 2019-12-11 05:57:42
问题 I guess not much people need to import three.js json file to Blender, but I lost my original Blender file and want to recreate it from json that I exported earlier. Latest three.js git only has exporter and no importer. I tried using old json importer (from this link https://github.com/Bangybug/three.js/tree/master/utils/exporters/blender/2.71/scripts/addons/io_mesh_threejs) but it does not load back UV maps, only model and textures, so I wonder if there is some importer that could do this?

Blender: segmentation, fault core dumped?

故事扮演 提交于 2019-12-11 04:31:19
问题 Here is an add-on I'm trying to create: import bpy import os import sys import subprocess import time from threading import * class Repeat(Thread): def __init__(self,delay,function,*args,**kwargs): Thread.__init__(self) self.abort = Event() self.delay = delay self.args = args self.kwargs = kwargs self.function = function def stop(self): self.abort.set() def run(self): while not self.abort.isSet(): self.function(*self.args,**self.kwargs) self.abort.wait(self.delay) class ExportToGIMP(bpy.types

unity / blender / FBX / semi transparent

怎甘沉沦 提交于 2019-12-10 21:37:29
问题 Im getting a strange issue with importing .FBX into unity. It does not look like it's an issue with normals. I have noticed on unity the material is classed as 'transparent' and changing this to 'opaque' does fix the issue but i would like to find out whats going on here. Unity: 2018.3.3f1 Blender: 2.80.0 回答1: I've just run into a similar issue. I've not figured out why it's happening yet, but there seems to be a bug report out. Will update if I find out what's causing it. Update 2019-02-13:

Animation in THREE JS

独自空忆成欢 提交于 2019-12-10 20:02:38
问题 There is a model with animation. After the introduction of a new system of animation, I did not get it to run. Maybe I'm wrong to set up export? I am attaching files: https://www.sendspace.com/file/etv0sl Code: var mixer = new THREE.AnimationMixer( player ); mixer.addAction( new THREE.AnimationAction( player.geometry.animations[0] ) ); mixer.update( 1000 ); 回答1: New System works with animation clips (since r74 if im right). Heres a sample of my Blender exported JSON models. var mixer; var

three.js, clothing and shape keys

谁说胖子不能爱 提交于 2019-12-10 18:50:25
问题 How can I dress a human body?. I have imported the body model and t-shirt in two separated meshes. The human body includes shape keys. But when I modify the morphTargetInfluences key of the body, the t-shirt doesn't fit in the new body shape. How can I make the T-shirt fits when the key change the value?, How can I do that using three.js? I'm using the version 1.4.0 of the Three.js exporter (three.js r71) and Blender 2.75a 回答1: The point is, your morph targets are only present in your

【图】Blender在科研上的演示应用

烈酒焚心 提交于 2019-12-10 16:10:23
原载: Blenderget / 作者: @congcong009 (罗聪翼,“中国Blender第一人”),转载较原文有所改动。 Blender 是一款开源3D动画制作软件。最初,Blender是荷兰的一个视频工作组NeoGeo与Not a Number Technologies(NaN)设计为内部使用的程序。后来,Blender代码开源,并以GNU GPL协议发布,现在由Blender基金会负责维护与更新。 到2014年1月份,Blender已经走过20年的岁月。近年,完全使用Blender、GIMP(PhotoShop的替代品)和Linux操作系统制作的“开源电影”也广受关注。 本文主要为大家整理了几款基于Blender的典型科研应用,可供参考。 1. BioBlender :利用插件的方式视觉化演示蛋白质效果,插件下载地址可以在项目主页中找到。 2. MORSE :一个开源的机器人模拟引擎,利用Blender的BGE引擎实现,代码托管在 Git 上,已知支持的中间件有ROS、Yarp、pocolibs、MOOS和Socket,支持文档 链接 。 3. Py3DN :一个利用Blender的插件功能,用于视觉化分析神经原细胞的形体数据。 4. Add 3D Function Surface :另外一类利用数学公式的Blender插件,在参数面板输入主要参数和坐标轴公式

使用Python和Blender来学习3D编程

瘦欲@ 提交于 2019-12-10 15:55:54
Blender 是一个强大的 3D 建模工具,他 提供了非常强大的 Python API ,可以用来学习 3D 编程,还可以用来开发游戏。 要注意的是, Blender 有两套 Python API ,一套是用来调用 Blender 自身的功能,一套是用来调用 BGE 的功能(做游戏开发)。我在这里仅仅介绍调用 Blender 自身功能的 API 。 我在麦子学院学习的时候老师曾说过, 通过例子来入门是初学者最好的学习方法。我先举个例子:使用 Blender 的 Python API 来做 3D 模型的自动化渲染。 下面这段脚本非常简单直观, 1. 首先,得到要渲染场景的 context ,并将渲染输出文件格式设置为 PNG 。 2. 加载一个图片。 3. 通过名称( ID ) “tex001” 找到一个 texture ,,将该 texture 使用的图片设置为刚才加载的图片。 4. 遍历 3D 模型中所有的 camera ,使用每个 camera 来做渲染。 Python 代码 1. from Blender import Object, Scene, Texture, Image 2. 3. scene = Scene.GetCurrent() 4. context = scene.getRenderingContext() 5. context.setImageType

Three.js - ply files - why colorless?

岁酱吖の 提交于 2019-12-10 15:19:12
问题 I am using Three.js's example in the directory: three.js/examples/webgl_loader_ply.html And I just swapped their .ply file with mine (made with Blender). In Blender, I went Vertex Paint > and painted vertices. Before exporting to .ply, I made sure that all checkboxes where checked. And scale is 100. But the .ply model renders as blue in the three.js's example. (just like the default example). And apparently it is blue because of this code in the example html file: var geometry = event.content