blender

Three.js - accessing a child object in a scene

僤鯓⒐⒋嵵緔 提交于 2019-12-24 16:12:41
问题 I'm trying to access the child object sole in a scene. I am able to access the var sole inside the loader function using obj , but I need to access it from outside the loader function. Here's the working code and here's the json model file. I can access it from inside the loader, like this: var loader = new THREE.ObjectLoader(); loader.load("models/shoe4.json", function (obj) { scene.add (obj); scene.rotation.y = Math.PI/1; scene.position.y = -5; scene.position.z = -24; var sole = obj

Why aren't python packages from Anaconda being detected by Blender?

你。 提交于 2019-12-24 15:52:52
问题 I've recently been using Blender to render 3D models of objects and training an SVM to recognize pictures of object taken from some perspective. To train said SVMs I need to use "sklearn", which comes by default with Anaconda. Long story short, I want Blender (which runs Python 3.4.2) to use the packages and modules present in my anaconda installation (which runs Python 3.4.3). I've tried a variety of things following this website: https://www.blender.org/api/blender_python_api_2_60_1/info

Given an X co-ordinate, how do I calculate the Y co-ordinate for a point so that it rests on a Bezier Curve

我只是一个虾纸丫 提交于 2019-12-24 13:26:30
问题 I have a point (circled in pink) which has a known X co-ordinate and a known Y co-ordinate but the Y co-ordinate is incorrect. It is currently resting upon the point where the target bezier curve (the curve partially in a white square) would be if it were a line between its two points. I need to calculate the correct Y co-ordinate for my circled point so that it ends up on the red cross. I am a C# programmer and not a mathematician so if this answer could be expressed in code or with an

SCNNode static body with .dae causing issues

限于喜欢 提交于 2019-12-24 05:15:10
问题 I have built a landscape model in blender, exported to .dae and added to my xcode project. I have loaded the scene then attached the child (landscape grid mesh) to my landscapeNode, this loads perfectly. However when I attach a static physics body to the landscspeNode my heroNode seems to crash into a invisible wall when attempting to fly above the land. The functionality I am looking for is the obvious collision with the land I have modelled so the heroNode cannot fly through the land and is

Blender 2.7X Exporter to .json For three.js JSONLoader

匆匆过客 提交于 2019-12-24 03:16:11
问题 I am trying to export from Blender into Three.js using the JSON route (for animations) Three.js version r71 Blender version 2.74 The current Blender exporter successfully exports a .json file NOT a .js file. All examples within the r71 folders import .js files only. Does anyone have any working examples on how to import a .json file that has been exported from Blender 2.7x? If not, I'll have to go back to Blender 2.69 and use the commonly documented .js import. 回答1: I might be wrong but .json

Blender 2.7X Exporter to .json For three.js JSONLoader

僤鯓⒐⒋嵵緔 提交于 2019-12-24 03:16:02
问题 I am trying to export from Blender into Three.js using the JSON route (for animations) Three.js version r71 Blender version 2.74 The current Blender exporter successfully exports a .json file NOT a .js file. All examples within the r71 folders import .js files only. Does anyone have any working examples on how to import a .json file that has been exported from Blender 2.7x? If not, I'll have to go back to Blender 2.69 and use the commonly documented .js import. 回答1: I might be wrong but .json

Morph Targets Three.js

若如初见. 提交于 2019-12-23 08:00:07
问题 I'm trying to get started with morph targets and three.js. However, there doesn't seem to be much documentation on this subject. As I'm looking at the source code: morphTargetInfluences[] seems to be the magic...how does this work? How do I use this? Is a value of 1 full strength? How can I differentiate between different morph targets on the same model? I'm just trying to understand: morphTargetInfluences[]. Thanks in advance 回答1: http://threejs.org/examples/webgl_morphtargets.html Morph

3d animation from cinema4d to blender

心已入冬 提交于 2019-12-23 03:39:22
问题 I need to import a mesh animation from Cinema4D into Blender . I tried to do that using Collada.The Collada 1.3 importer doesn't seem to do anything, the Collada 1.4 importer seems to work, but the animation didn't get imported into Blender. After reading this post: Problem solved! In case anyone comes in here looking for the answer, I spoke to Otomo via email and he kindly explained that the problem lies in the .dae file being exported incorrectly from C4D. I hope Otomo doesn't mind me

Blender Python `bpy` `__init__.py`, apparently importing from a non-existent module `_bpy`

六月ゝ 毕业季﹏ 提交于 2019-12-23 02:25:10
问题 I'm using Mac OS X with PyCharm and Python 3.5.1 and Blender 2.77. I'm using Blender with Python scripts. I understand that in order to run Python scripts that use Blender (i.e. that imports bpy ), I need to run it from command line using blender -b -P /path/to/my_python_script.py (although I don't really know why). That's all fine and it works, but I wish I could just run it from inside Python, because I use these scripts with other non-Blender Python code and I like to use PyCharm to debug

How to build a blender build in Xcode 5?

感情迁移 提交于 2019-12-23 02:06:32
问题 I have been trying to create my own custom build of blender following through with the wiki but I have had no luck with actually building the final version with X Code. I have about 140 warning messages and 32 error messages. I just can't figure it out. Below is a section of the code with the errors in it. I would greatly appreciate any help I could get on this one! "_Controller_actuators_length", referenced from: BL::Controller::Controller_actuators_length_wrap(PointerRNA*) in libbf_intern