blender

Import a 3d scene into babylonJS

不问归期 提交于 2019-12-07 14:24:49
问题 So I read today about babylonJS and I was blown away by it. I'm trying to figure out how to load an entire 3d scene into babylon. I've managed to export a 3d model of spider man and have the .babylon file but then what? In the document it only states "Importing scene from 3D assets Babylon.js can load scenes from a file format called .babylon. This file format is based on JSON and contains all required data to create a complete scene." Any ideas on how to achieve this? Thanks 回答1: Once you

Blender 2.5 Python animated world texture setup

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 12:44:46
问题 I need to set up an animated (i.e. from video file) world texture in blender 2.58 using python. I make a texture like this: import bpy # create new clouds texture bpy.ops.texture.new() wtex = bpy.data.textures[-1] # set World texture wrld = bpy.data.worlds['World'] slot = wrld.texture_slots.add() slot.texture = wtex slot.use_map_horizon = True This creates a new CloudsTexture and binds it to slot. How can I make an ImageTexture and set it up to have a video as a source? Or, how can I specify

how to show a message from a blender script?

∥☆過路亽.° 提交于 2019-12-07 01:27:43
问题 Is there a way to show a simple message box with a text from a blender script? For example if i'm having an error during execution. 回答1: Update: The link does not exist officially any longer and I stopped developing for Blender. The old 2.5 cookbook is still available in the internet archive at: https://web.archive.org/web/20120824033549/http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Cookbook/Code_snippets/Interface#A_popup_dialog Have a look at this code snippet for an error dialog /

Windows下 编译Blender2.6

别等时光非礼了梦想. 提交于 2019-12-06 21:27:13
编译方法参考官方教程:http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Windows 本次编译的环境和准备的软件如下: Windows 7 64bit VS2008 SP1(注意,必须是VS2008,其他版本无法编译,因为官方依赖库比如boost是vc90的) Tortoise SVN CMake( 请下载64bit版本的,不能用32位的) 请记住我们所有的软件和配置都应该是64位的 1. 使用Tortoise SVN下载代码和依赖库。 在D盘根目录创建目录BlenderSVN,然后下载代码: cd D:\BlenderSVN svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/blender blender 因为是编译64位的Blender,所以使用如下命令下载依赖库: svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64 lib/win64 因为依赖库非常大,有2.8G,所以下载起来很长时间。下载过后的目录必须是这样的: BlenderSVN ----blender ----lib -------win64 2. 使用CMake生成工程文件。

Three js animate blender model with material colors

我只是一个虾纸丫 提交于 2019-12-06 07:18:54
I have an exported (three js json format) blender model. The model have a few material with colors. If i use THREE.MorphAnimMesh and THREE.MeshPhongMaterial the animation is working fine but no material colors. If i use THREE.MeshFaceMaterial it have colors but animation not working. The question is, how can i animate with material colors from the model js file? animation working but no colors. the model is white: var material = new THREE.MeshPhongMaterial({ morphTargets: true, morphNormals: true, vertexColors: THREE.FaceColors, shading: THREE.SmoothShading, perPixel: true } ); var meshAnim =

Is there a 3D format which is a 3D extension to SVG?

依然范特西╮ 提交于 2019-12-06 05:35:37
问题 SVG is the W3C's standard for 2D vector graphics. Something quite solid. Is there a 3D version of SVG? A kind of extension of it, so converting from .SVG to .something and reverse is quite straight forward. 回答1: No, there is no such standard extension to SVG as part of the W3C. The closest that exists is the W3C Community Group, "Declarative 3D for the Web Architecture Community Group" . Editorial: nor should there be. While SVG is great and vector, it is a presentation format, not a data

[学习笔记] Blender layout 视图切换

白昼怎懂夜的黑 提交于 2019-12-06 05:19:43
layout 数字键5 --- 正交视图/透视图 切换 数字键0 -- 摄像机视图 数字键7 -- 顶视图 数字键1 --- 前视图 数字键3 --- 右视图 ctrl +数字键3 --- 左视图 ctrl+数字键1 -- 后视图 ctrl+数字键7 -- 底视图 数字键盘/ 局部视图 Shift+鼠标中键 --- 平移视图 鼠标中键---旋转视图 鼠标中键滚轮---缩放视图 + 放大视图 - 缩小视图 空格 --- 播放动画 视图切换:另外按数字键盘1左侧的 ` 可调出各种视图待选。 ESC退出 增加视图窗口, 在两个窗口之间放置鼠标,显示+号,向左拖增加窗口 合并窗口,在某窗口顶部放置鼠标,出现+号,向左拖,或向下拖都会移除窗口。 在窗口里切换视图,点击红色圆圈部分切换视图,如下图: 来源: https://www.cnblogs.com/abc789/p/11963638.html

Importing COLLADA(.dae) file into blender using python

佐手、 提交于 2019-12-06 04:49:28
I got a project in which I've to import different files into blender. I am just a starter to blender and it's python API. I am looking for a way to import .dae file into blender using a python script. Until now I've been unsuccessful to find an import module in python for blender. Can anyone point me in the right direction? While most import/export operators can be found in bpy.ops such as bpy.ops.import_mesh.obj() the collada import/export operators are under bpy.ops.wm . The importer is bpy.ops.wm.collada_import(filepath="") . If your automating the import of many files you will want to use