def n_create_data(self):
     gen_data.n_create_header_oblivion(self.n_data)
     n_gen_geometry.n_create_blocks(self.n_data)
     n_trishape = self.n_data.roots[0].children[0]
     n_gen_material.n_attach_material_prop(n_trishape)
     n_gen_wire.n_attach_wire_prop(n_trishape)  # add niwireframeprop
     return self.n_data
Beispiel #2
0
    def n_create_data(self):
        gen_data.n_create_header_oblivion(self.n_data)
        n_gen_geometry.n_create_blocks(self.n_data)

        n_trishape = self.n_data.roots[0].children[0]
        n_gen_material.n_attach_material_prop(n_trishape)
        n_gen_material.n_alter_emissive(n_trishape.properties[0])
        return self.n_data
Beispiel #3
0
 def n_create_data(self):
     gen_data.n_create_header_oblivion(self.n_data)
     n_gen_geometry.n_create_blocks(self.n_data)
     n_trishape = self.n_data.roots[0].children[0]
     n_gen_material.n_attach_material_prop(n_trishape)
     n_gen_specular.n_alter_material_specular(
         n_trishape.properties[0])  # set material alpha
     n_gen_specular.n_attach_specular_prop(n_trishape)  # add nialphaprop
     return self.n_data
Beispiel #4
0
 def n_create_data(self):
     
     gen_data.n_create_header_oblivion(self.n_data)
     n_gen_texture.n_create_blocks(self.n_data)
     
     n_nitrishape = self.n_data.roots[0].children[0]
     n_gen_material.n_attach_material_prop(n_nitrishape) # add nimaterialprop
     
     n_gen_texture.n_create_store_normal_data(n_nitrishape) #store normal data as NiBinaryExtraData
     n_gen_texture.n_create_texture_property(n_nitrishape) # add nitexturingprop
     
     n_textureprop = n_nitrishape.properties[0]
     n_gen_diffusemap.n_create_diffuse_map(n_textureprop) #add nitexturesource diffuse
     n_gen_glossmap.n_create_gloss_map(n_textureprop) #add nitexturesource glowmap
     
     return self.n_data