Jump to content

DoerrSt

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by DoerrSt

  1. Hi Rick,

     

    I load the model with LoadMode("mymodel.gmf"). This loads automatically the "mymodel.mat" and applies the materials. If I load the object in the model viewer the textures are automatically applied. The model script contains no code but on another model with code I've the same trouble.

     

    Regards,

     

     

     

    Stefan

  2. Hi,

     

    I load models with the material automatically with LoadModel("....").

     

    After the model is correctly loaded I try to change the material of this model (a modeller complaint about blurred textures - looks like I've to change the texture filter). The problem is that I can't get access to the material itself but not one of this commands returns a valid material:

     

    mat0=player.material

    mat1=player:GetChild(1).material

    mat2=GetEntityMaterial(player)

    mat3=GetEntityMaterial(player:GetChild(1))

     

    If I use

     

    material=LoadMaterial("abstract::cobblestones.mat")

    ground=CreateCube()

    ground:SetScale(Vec3(100.0,1.0,100.0))

    ground:SetPosition(Vec3(0.0,-2.0,0.0))

    ground:Paint(material)

     

     

    the commands

    mat0=ground.material

    mat2=GetEntityMaterial(ground)

    are returning the correct value.

     

    Do I undestand something or do I've just found a bug?

     

    What I want to do is creating a look to set the texture filter for each material with PIXEL instead of MIPMAP:

     

    Thanks,

     

     

     

    Stefan

  3. Hello,

     

    is there any way how I can set the TextureFilter for all materials (Lua, C) ? I want to set it for all textures to TEXFILTER_PIXEL instead of mipmap. Or do I have to change it for all materials one by one?

     

    As far as I can see there's no way to do that in the material-editor?

     

    Thanks,

     

     

     

    Stefan

  4. I'm not a modeller, sorry - more a programmer. A fried is doing the modelling stuff with 3DS Max.

     

    He send me a model in GMF-Format with different MAT-Files. I created the Default lua-Code to get the properties-diaog to get the properties inside of the LE2-Editor (lilke material, physics, ...). Here I can choose one material-file, but I've 4 .mat-Files from him

    I checked the .sbx-File and it Looks like it is only possible to indicate one of These material-files but not all 4.

     

    Sorry my misinterpreted description.

×
×
  • Create New...