blender-2.50

Python script with arguments for command line Blender

ぃ、小莉子 提交于 2019-12-18 15:18:54
问题 I'm new to blender and python. I have a blender model (.blend) that I want to batch-render as several images providing some properties for each image. I wrote a python script with those parameters, something like: import bpy pi = 3.14159265 fov = 50 scene = bpy.data.scenes["Scene"] # Set render resolution scene.render.resolution_x = 480 scene.render.resolution_y = 359 # Set camera fov in degrees scene.camera.data.angle = fov*(pi/180.0) # Set camera rotation in euler angles scene.camera

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

Blender 2.5 Python animated world texture setup

时间秒杀一切 提交于 2019-12-05 20:04:15
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 the type of a new texture made by bpy.ops.texture.new()? For data addition/removal, its best not to use

How to get proper number of vertices in OBJ file from DCC tools such as Blender for use in OpenGL ES?

微笑、不失礼 提交于 2019-12-01 06:00:03
问题 I am told that for a simple cube I need 36 vertices when I want to have colors/textures etc. for OpenGL ES application but when I export the colored cube to OBJ format using Blender, I only get 8 vertices and also I don't even get color data in the OBJ not to mention I only get 8 normals in OBJ file but I need normal for each vertex in each triangle ( a total of 36 normals). This is what I get as the content of the OBJ file for a cube that has been colored with different colors on all the

Python script with arguments for command line Blender

孤街醉人 提交于 2019-11-30 12:41:50
I'm new to blender and python. I have a blender model (.blend) that I want to batch-render as several images providing some properties for each image. I wrote a python script with those parameters, something like: import bpy pi = 3.14159265 fov = 50 scene = bpy.data.scenes["Scene"] # Set render resolution scene.render.resolution_x = 480 scene.render.resolution_y = 359 # Set camera fov in degrees scene.camera.data.angle = fov*(pi/180.0) # Set camera rotation in euler angles scene.camera.rotation_mode = 'XYZ' scene.camera.rotation_euler[0] = 0.0*(pi/180.0) scene.camera.rotation_euler[1] = 0.0*

Blender mirror modifier doesn't export mirrored half

两盒软妹~` 提交于 2019-11-28 10:49:19
问题 When I use mirror modifier in blender and export my collide (.dae), my exported object doesn't have include the 'mirrored half' but just has the side where I didn't delete the faces. Help? 回答1: When exporting to DAE, look in your Toolshelf Properties and try selecting "apply modifiers" 回答2: If mirror modifier is not applied, all mirrored vertices are not considered as "true" vertices. You just have to apply the mirror modifier in object data panel. 来源: https://stackoverflow.com/questions