Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (bdgogo), 1,447 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Texture and material #145468
08/03/07 14:52
08/03/07 14:52
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline 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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
User
Frits  Offline 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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
User
Frits  Offline 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: Frits] #145473
08/05/07 09:02
08/05/07 09:02
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
That has to be your clue, two skins and as the 2 skin one is having the prob maybe you could delete one skin(swap if results return zero) and see what that does or like you say, recompile the model/entity.

I often run into probs like this, somehow, GStudio manages to 'hold' onto probs from one file or script and never lets go. My only recourse is to try again and note every step, but thats not always successful.

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 Offline OP
User
Frits  Offline 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

Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1