Example #1
0
    def b_create_data(self):
        b_obj = b_gen_geometry.b_create_cube(self.b_name)
        b_gen_uv.b_uv_object()
        b_gen_geometry.b_transform_cube(b_obj)

        b_mat = b_gen_material.b_create_material_block(b_obj)
        b_gen_material.b_create_set_default_material_property(b_mat)

        # diffuse
        b_mat_texslot = b_gen_texture.b_create_textureslot(b_mat, 'Diffuse')
        b_gen_texture.b_create_load_texture(b_mat_texslot,
                                            self.diffuse_texture_path)
        b_gen_diffusemap.b_create_diffuse_texture_properties(b_mat_texslot)

        # bump
        b_mat_texslot = b_gen_texture.b_create_textureslot(b_mat, 'Bump')
        b_gen_texture.b_create_load_texture(b_mat_texslot,
                                            self.bumpmap_texture_path)
        b_gen_bumpmap.b_create_bumpmap_texture_properties(b_mat_texslot)
 def b_create_data(self):
     b_obj = b_gen_geometry.b_create_base_geometry(self.b_name)
     b_mat = b_gen_material.b_create_material_block(b_obj)
     b_gen_material.b_create_set_default_material_property(b_mat)
     b_gen_wire.b_create_wireframe_property(b_mat)
Example #3
0
 def b_create_data(self):
     b_obj = b_gen_geometry.b_create_base_geometry(self.b_name)
     b_mat = b_gen_material.b_create_material_block(b_obj)      
     b_gen_material.b_create_set_default_material_property(b_mat)
     b_gen_material.b_create_gloss_property(b_mat) # set our gloss value
Example #4
0
 def b_create_data(self):
     b_obj = b_gen_geometry.b_create_base_geometry(self.b_name)
     b_mat = b_gen_material.b_create_material_block(b_obj)
     b_gen_material.b_create_set_default_material_property(b_mat)
     b_gen_specular.b_create_alter_specular_property(
         b_mat)  # update specular
Example #5
0
 def b_create_data(self):
     b_obj = b_gen_geometry.b_create_base_geometry(self.b_name)
     b_mat = b_gen_material.b_create_material_block(b_obj)
     b_gen_material.b_create_set_default_material_property(b_mat)
     b_gen_alpha.b_create_set_alpha_property(b_mat)  # update alpha