1 registered members (bdgogo),
1,447
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Texture and material
#145468
08/03/07 14:52
08/03/07 14:52
|
Joined: Mar 2006
Posts: 724 the Netherlands
Frits
OP
User
|
OP
User
Joined: Mar 2006
Posts: 724
the Netherlands
|
Please look at the snapshot; Shot at 2007-08-03 Both models have the same basic texture (bright02) and the model on the right has a second texture (wood02). I have attached the same material to both the models; Code:
material model_statues { //helderheid ambient_blue=10; ambient_green=10; ambient_red=10; //licht ontvangst diffuse_blue=50; diffuse_green=50; diffuse_red=50; //glans specular_blue=20; specular_green=20; specular_red=20; //licht afgifte emissive_blue=30; emissive_green=30; emissive_red=30; //glanspuntgrootte power=5; }
Does anyone know why the material has effect on the left model and not on the right model?
I like to keep scripting simple, life is hard enough as it is. Regards, Frits
|
|
|
Re: Texture and material
[Re: Frits]
#145469
08/03/07 17:41
08/03/07 17:41
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
try setting the models unlit flag.
If there are blocks & lights in your level, they may be recieving different light levels
xXxGuitar511 - Programmer
|
|
|
Re: Texture and material
[Re: xXxGuitar511]
#145470
08/04/07 11:20
08/04/07 11:20
|
Joined: Mar 2006
Posts: 724 the Netherlands
Frits
OP
User
|
OP
User
Joined: Mar 2006
Posts: 724
the Netherlands
|
Setting the Unlit flag does not help. For the moment there are no lights in the level only an ambient light from the sun, setting 25, 25, 25. Only thing different with the two models; at first, for the right model, I had used material setup in manage skins. Later on I have removed that setting and assigned it with the material script. This strange behaviour still exists and I have no clue how to solve this. Only thing I can think of is, that I remake that model from scratch.
I like to keep scripting simple, life is hard enough as it is. Regards, Frits
|
|
|
Re: Texture and material
[Re: Frits]
#145471
08/05/07 01:17
08/05/07 01:17
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
It's not the model. Check your entities material and make sure the settings aren't different on the other model.
One of them must have sunlight on a block underneath it and the other doesn't
make sure skin is the same.
xXxGuitar511 - Programmer
|
|
|
Re: Texture and material
[Re: xXxGuitar511]
#145472
08/05/07 07:32
08/05/07 07:32
|
Joined: Mar 2006
Posts: 724 the Netherlands
Frits
OP
User
|
OP
User
Joined: Mar 2006
Posts: 724
the Netherlands
|
Like I said in my posts; - the material is the same for both models - there is no sunlight in the level (setting 0,0,0) - the skin is the same for both models (bright02) - left model has one skin (bright02) - right model has two skins (bright02 and wood02)
Extra: I made these models in WED, textured them, and exported them to MED (A7)
I like to keep scripting simple, life is hard enough as it is. Regards, Frits
|
|
|
Re: Texture and material
[Re: Nems]
#145474
08/05/07 14:06
08/05/07 14:06
|
Joined: Mar 2006
Posts: 724 the Netherlands
Frits
OP
User
|
OP
User
Joined: Mar 2006
Posts: 724
the Netherlands
|
Well, all this can be true, but I made a model of a window at the same way, and this model has 4 skins and react on the material as I espected. But I will delete one skin and see what happens.
Edit: I have found the problem, for some reason WED has saved the model also in the folder where the level is and used this model, while I have all my models in a different folder. So when I change something in a model, it did ofcourse not affect the model in the level directory.
Last edited by Frits; 08/05/07 15:10.
I like to keep scripting simple, life is hard enough as it is. Regards, Frits
|
|
|
|