blender

Babylon.js - models created with Blender appear rounded and weirdly shaped

早过忘川 提交于 2019-12-23 01:53:25
问题 I am working on a Babylon.js project. Therefore I created a test model (.babylon) with Blender (the export worked perfectly without any errors). My Problem is: The model in my browser 1 (Babylon.js) looks somewhat different than the model in Blender 2. Model in babylon Model in blender To import the mesh to my Babylon scene, i am using BABYLON.SceneLoader.ImportMesh . Babylon.js seems to somehow round the edged, which I really don't understand - there are plenty of examples of perfect models!

How to bake(convert) bones as FK from IK in Blender

女生的网名这么多〃 提交于 2019-12-22 09:58:28
问题 How can I convert from IK(Inverse Kinematics) to FK (Forward Kinematics) in Blender? I am trying to export a model which has skeletal animations, to THREE.js. However, It does not support IK. therefore, I need to convert all bones into FK. Does anyone know any solutions? Thanks! Happy Holidays! 回答1: I found, Bake Action can be bake all frames as IKs. But I suppose, there are better solution... If you'd like to bake all frames, see the following link. http://blenderartists.org/forum/showthread

Why is blender rigged animation distorted when exported as GLTF?

穿精又带淫゛_ 提交于 2019-12-22 09:53:26
问题 I created an animation in Blender with armature rigging. When I test it in Blender by pressing Alt-A, it works perfectly fine. However, when I export it as a .glb using the KhronosGroup GLTF exporter, the resulting animation is distorted (e.g., limbs are disconnected and moving in a weird way). Why is this happening (and how can I fix it)? For the past two days, I have been trying solutions from similar questions (such as applying location/rotation/scale with Ctrl-A, or deleting the Armature

How to load json models in three.js properly?

时光总嘲笑我的痴心妄想 提交于 2019-12-22 05:18:10
问题 I'm having a hard time loading JSON models in three.js. I'v made a very simple tube-like model and textured it in blender. The issue is that whenever i try to load the json model in three.js, the vertexes looks weird. I'v tried exporting model with different settings but got always the same problem, so i think the problem is within my code. EDIT: Negative. I loaded buffalo model and it looked like it should. Any idea what i'm doing wrong inside blender? <html> <head> <style> canvas { width:

Transferring rig weights from one mesh to another in blender 2.76

蹲街弑〆低调 提交于 2019-12-21 20:28:51
问题 I've recently started using blender in order to create my own models for games and such. I have created a model, rigged it, created clothes separately and now I want to add those clothes to my model so that it moves with the rig without the skin poking through. So there are many solutions that use the weight transfer tool but I can't seem to get this working with blender 2.76. I parent the rig to the clothes with empty weight groups under the deform option. I then, selecting the mesh and then

Open a file from a specific program from python

懵懂的女人 提交于 2019-12-21 20:02:25
问题 I would like to do a very simple thing but I am quite lost. I am using a program called Blender and I want to write a script in python which open a .blend file but using the blender.app which is located in the same folder with the blend file, not with the blender.app which is located in Applications. (using Macosx) So I was thinking that this should do the job...but instead it opens blender twice... import os path = os.getcwd() print(path) os.system("cd path/") os.system("open blender.app

Loading multiple objects in Three.js from Blender

女生的网名这么多〃 提交于 2019-12-21 18:30:44
问题 I have a quite complex shape (dressed girl) that in Blender is broken down into different objects and it's loaded into Three.js with the JSON loader (with a little hack I made, that uses zipped files instead of just JSON files, as there are a lot of vertices). As I want to change dynamically the style of the dress from a Web page, I was wondering how I can show/hide different pieces (e.g. sleeves) in the scene. I tried traversing the THREE.Mesh , but there are no children. When I export from

Loading multiple objects in Three.js from Blender

落花浮王杯 提交于 2019-12-21 18:29:42
问题 I have a quite complex shape (dressed girl) that in Blender is broken down into different objects and it's loaded into Three.js with the JSON loader (with a little hack I made, that uses zipped files instead of just JSON files, as there are a lot of vertices). As I want to change dynamically the style of the dress from a Web page, I was wondering how I can show/hide different pieces (e.g. sleeves) in the scene. I tried traversing the THREE.Mesh , but there are no children. When I export from

How to connect a Python socket on client-side to Node.js/socket.io?

Deadly 提交于 2019-12-21 02:46:10
问题 I want to connect Blender (v2.55) to a webpage through sockets. For the web part, I can use Node.js & socket.io. I've already used a little node.js/socket.io, it's not a problem I think. Now for Blender, it runs on Python 3.1, so I've already sockets and I can add libraries if needed. I'm new to Python sockets, can I connect a client to node.js/socket.io directly ? I tried with the basic code from the Python doc: import socket import sys HOST, PORT = "127.0.0.1", 8080 data = "Hello from

Static variable inheritance in Python

风格不统一 提交于 2019-12-20 10:37:29
问题 I'm writing Python scripts for Blender for a project, but I'm pretty new to the language. Something I am confused about is the usage of static variables. Here is the piece of code I am currently working on: class panelToggle(bpy.types.Operator): active = False def invoke(self, context, event): self.active = not self.active return{'FINISHED'} class OBJECT_OT_openConstraintPanel(panelToggle): bl_label = "openConstraintPanel" bl_idname = "openConstraintPanel" The idea is that the second class