Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (kzhao, AndrewAMD, bigsmack, 7th_zorro), 869 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Materials #262004
04/21/09 14:51
04/21/09 14:51
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Where i can get some samples of materials?
I saw that this is smaragd material
Code:
MATERIAL* mat_smaragd =
{  
ambient_blue = 100;  
ambient_green = 255;  
ambient_red = 100;  
diffuse_blue = 0;  
diffuse_green = 100;  
diffuse_red = 0;  
specular_blue = 255;  
specular_green = 255;  
specular_red = 255;  
power = 10;
}


But, what is default material settings (for example, i want to highlight entity with smaragd material and then return back, to standart material)?
And is there a base of samples (for example, from where i can get ambient, diffuse and specular of clay, metal and so on), so i didnt may to try settings by my hand.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Materials [Re: VeT] #262082
04/21/09 20:49
04/21/09 20:49
Joined: Nov 2004
Posts: 55
Michigan
S
splashmaker Offline
Junior Member
splashmaker  Offline
Junior Member
S

Joined: Nov 2004
Posts: 55
Michigan
mat_model is the default material for models. All default material names are listed in the manual under engine objects->material.

In the template directory materials.c contains mat_model
ambient_blue = 200;
ambient_green = 200;
ambient_red = 200;
diffuse_blue = 255;
diffuse_green = 255;
diffuse_red = 255;
specular_blue = 0;
specular_green = 0;
specular_red = 0;
power = 0;
sun_albedo = 50;

There is also mat_metal but no clay or other defaults.

-Splashmaker

Re: Materials [Re: splashmaker] #262088
04/21/09 21:26
04/21/09 21:26
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Thanks for code smile

But there was just examples... Arent there any site, or resource, or code, whatever else, wich contain a collection of properties(ambient, diffuse, so on) for different materials ?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Materials [Re: VeT] #264829
05/08/09 12:51
05/08/09 12:51
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
hm... one more question about materials:
i have a lot of entities, some of them - with light and others - with dark textures... I want to higlight one of them all.

I had played with ambient (in this case, dark texrure with ambient = light texture) and ambient(in this case, dark texture change a little bit), but still didnt get nice effect.

If needed, i can add screenshots


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Materials [Re: VeT] #268417
05/29/09 06:43
05/29/09 06:43

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Originally Posted By: VeT
But there was just examples... Arent there any site, or resource, or code, whatever else, wich contain a collection of properties(ambient, diffuse, so on) for different materials ?


I would have the same question. Are there none of site, resources, codes? i mean i know the AUM 35 Workshop, but i want more material examples...


Moderated by  Blink, Hummel, Superku 

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