def n_check_data(self):
        # TODO [geometry][uv] assertions should go in here.
        n_geom = self.n_data.roots[0].children[0]
        nose.tools.assert_equal(n_geom.num_properties, 2)  # mat & texture
        n_gen_material.n_check_material_property(n_geom.properties[1])

        n_tex_prop = n_geom.properties[0]
        n_gen_texture.n_check_texturing_property(
            n_tex_prop)  # check generic props
        n_gen_diffusemap.n_check_diffuse_property(
            n_tex_prop)  # check diffuse settings
        n_gen_bumpmap.n_check_bumpmap_property(
            n_tex_prop)  # check bump settings

        # diffuse
        n_texdesc_diffuse = n_tex_prop.base_texture
        n_gen_texture.n_check_texdesc(n_texdesc_diffuse)  # check generic props
        n_gen_diffusemap.n_check_diffuse_source_texture(
            n_texdesc_diffuse.source,
            self.diffuse_texture_rel_path)  # check diffuse image

        # bump
        n_texdesc_bumpmap = n_tex_prop.bump_map_texture
        n_gen_texture.n_check_texdesc(n_texdesc_bumpmap)  # check generic props
        n_gen_bumpmap.n_check_bumpmap_source_texture(
            n_texdesc_bumpmap.source,
            self.bumpmap_texture_rel_path)  # check diffuse image
    def n_check_data(self):
        # TODO - probably should stick in some UV tests at some point
        n_geom = self.n_data.roots[0].children[0]
        nose.tools.assert_equal(n_geom.num_properties, 2)  # mat & texture
        n_gen_material.n_check_material_property(n_geom.properties[1])

        n_tex_prop = n_geom.properties[0]
        n_gen_texture.n_check_texturing_property(
            n_tex_prop)  # check generic props
        n_gen_diffusemap.n_check_diffuse_property(
            n_tex_prop)  # check diffuse settings
        n_gen_normalmap.n_check_normal_property(
            n_tex_prop)  # check normal settings

        # diffuse
        n_texdesc_diffuse = n_tex_prop.base_texture
        n_gen_texture.n_check_texdesc(n_texdesc_diffuse)  # check generic props
        n_gen_diffusemap.n_check_diffuse_source_texture(
            n_texdesc_diffuse.source,
            self.diffuse_texture_path)  # check diffuse image

        # normal
        n_texdesc_normalmap = n_tex_prop.normal_texture
        n_gen_texture.n_check_texdesc(
            n_texdesc_normalmap)  # check generic props
        n_gen_normalmap.n_check_normal_map_source_texture(
            n_texdesc_normalmap.source,
            self.normalmap_texture_path)  # check diffuse image
Beispiel #3
0
    def n_check_data(self):
        n_nitrishape = self.n_data.roots[0].children[0]
        n_gen_geometry.n_check_trishape(n_nitrishape)

        nose.tools.assert_equal(n_nitrishape.num_properties, 1)
        n_mat_prop = n_nitrishape.properties[0]
        n_gen_material.n_check_material_block(n_mat_prop)
        n_gen_material.n_check_material_property(n_mat_prop)