blender

blender import/export script

微笑、不失礼 提交于 2019-11-29 17:52:02
I should create a python script for Blender that imports obj and exports obj removing all texture sections. I never used blender, is there a good tutorial for scratch the surface and achieve this simple task? thank you The blender python api website includes several tutorials to learn using python in blender. You can find details of the obj importer and exporter options. The obj import/export is handled by a python addon that is included with blender . You could start with something as simple as - import bpy,os for f in os.listdir('/path/to/use'): bpy.ops.import_scene.obj(filepath=f) bpy.ops

Importing model into three.js - performance

半世苍凉 提交于 2019-11-29 15:31:09
问题 Is there a good/recommended approach regarding performance to load a 3D model from file to be used in a three.js JavaScript application (especially where the model is generated in Blender)? I currently have the following workflow: Create model in Blender. Export using the three.js exporter. Load from javascript using THREE.JSONLoader This works great except that the resultant JSON file can be around 4MB and it would be good if I could reduce this size. I am wondering what the best approach is

Model with bones animation (blender export) animating incorrectly in three.js

▼魔方 西西 提交于 2019-11-29 09:52:47
I am currently working on skeletal animation tests in three.js. I have a simple model which animates just fine in blender. Basically it consists of three stacked, bending cubes. When I export the blender file to the three.js using the blender export plugin with Blender V2.64, the animation in the webGl context appears different as if the skinweighting is wrong. WebGL-Demo: http://rainbowrangers.de/threejs/animation_test01/ Blender-File: http://rainbowrangers.de/threejs/animation_test01/model/animation_test01.blend What do I have to do to get the correct result in three.js? I am the person you

初识Blender并制作小模型

守給你的承諾、 提交于 2019-11-29 08:23:17
初识Blender并制作小模型 作为Blender的新手,要纪录第一次使用的过程。本次也是第一次写博客。 下载Blender 链接: https://www.blendercn.org/download . 初始界面 初次打开界面如上 如何切换至中文 选中菜单栏Edit中的Preferefces,在Interface中先勾选Translation,其次勾选Interface。 然后界面就变成中文版的。 注意:每次改变设置后都要保存用户设置,否则下次打开又要重新操作一次,降低工作效率。 编辑->设置->(左下角按钮)->保存用户设置 操作键修改(根据个人的偏好进行修改) 编辑->设置->键位映射 这里将空格键原功能为播放修改为工具 注意:每次改变设置后都要保存用户设置,否则下次打开又要重新操作一次,降低工作效率。(重要事情说多遍) 功能快捷键 快捷键是一个好东西,初次使用就应该先大概知道些较为基础的快捷键。 日后在慢慢积累其他的快快捷键。 尽量不要死记硬背 多多实践操作才是硬道理 视图旋转: 鼠标中键 视图平移: Shift + 鼠标中键 视图缩放: 滚轮操作 视角切换: ~ 模式切换: z 物体模式与编辑模式的切换: tab 点线面模式: 1 / 2 / 3 物体添加: shift + A 物体复制: Shift + D 物体移动: G 若想让其在坐标轴方向上移动则可在按 X Y

Recommended 3D model type for in-game character model, loaded manually?

隐身守侯 提交于 2019-11-29 04:31:53
I'm writing a game in JOGL and need to represent the in-game character. I plan to use skeletal animation for the character movements, and of course the character will be skinned. I can't seem to find any good model loaders for JOGL so I plan to load the filetype myself, based on specs or something. I also plan to use Blender as my 3D modeler, so some type that exists in there would be best. What filetype do you recommend I use? .blend? .x, .3ds, .md2/3/5, ...?? Remember I'd like something with a clear defined format so that I can write the loader without having to deobfuscate some random file

Three.js load multiple separated objects / JSONLoader

余生长醉 提交于 2019-11-29 02:32:37
is it possible to load a scene (e.g. two different cubes) exported from blender to json and identify them? I need to distinguish between them e.g. to make one rotating and the other moving. Thank you in advance! Denv edit+++ Thank you for your answer! So if I load two cubes in one JSON file: loader.load("untitled1.js", function(geometry, materials) { mesh = new THREE.Mesh( geometry, new THREE.MeshFaceMaterial(materials)); mesh.scale.set( 10, 10, 10 ); mesh.position.y = 0; mesh.position.x = 0; scene.add( mesh ); }); How can I move first cube? mesh.getObjectById(0).position.x = 15; Doesn't seems

How to convert Blender blend (or obj) file to Qualcom Vuforia .h file

China☆狼群 提交于 2019-11-28 19:58:26
I'm developing an iOS app with augmented reality using Qualcomm Vuforia and I have difficulty in understanding how to create 3D models from Blender (or other softwares). All the examples use .h files with the coordinates of the vertices to generate i.e. a teapot. I can not find documentation useful for me. Is there a tool to convert .blend or .obj files to .h (OpenGL ES)? thanks I developed a script called mtl2opengl that does exactly what you need, based on the project obj2opengl . The script works with .obj and .mtl files, which I think can be exported straight from Blender, and produces .h

Including textures when exporting from Blender to COLLADA/.dae format for use in SceneKit

╄→гoц情女王★ 提交于 2019-11-28 18:01:36
I am able to export meshes created in Blender for use in SceneKit by using the COLLADA/.dae format - however no textures show up on iOS device. Also, Preview on OS X won't open any COLLADA file exported from Blender - yet the sidebar preview does show the mesh. What are the options needed at export to make this work? FlippinFun Create a scnassets folder first (not required but useful) Create a folder on your desktop and give it an extension of ".scnassets" Put your collada(.dae) file along with any textures you will be using in it. Drag the folder into your project and save as copy like usual.

Blender export to Three.js

拥有回忆 提交于 2019-11-28 16:29:10
问题 I just created a random mesh using Blender and I want to export it to be used in HTML5 via the Three.js. I haven't seen any decent tutorials that shows how to do this. Can anyone help me out with this? I just want the 3D Mesh to display in the web, no animations included. Thanks! 回答1: The easiest way I found after many searches and trial and error was Three.ColladaLoader . Place your .dae files in a folder titled models in your /root directory. I found the Blender JSON exporter less reliable.

blender import/export script

巧了我就是萌 提交于 2019-11-28 11:56:44
问题 I should create a python script for Blender that imports obj and exports obj removing all texture sections. I never used blender, is there a good tutorial for scratch the surface and achieve this simple task? thank you 回答1: The blender python api website includes several tutorials to learn using python in blender. You can find details of the obj importer and exporter options. The obj import/export is handled by a python addon that is included with blender. You could start with something as