Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mixed skin? #123552
04/12/07 21:25
04/12/07 21:25
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
It's possible to make a model with couple of skins?
I mean f.e. a car... the body has alpha 100 and has metalic material, but windows (some triangles of this car) has alpha 50 and different mateial?
Or I have to make fiew mdls and then attach by vec_for_vertex function?

And second question... how to connect different materials to the same model at the same time?
f.e.
my. material = difuse_mat; (creates by fx file)
my.material = bump_mat; (creates by script - this one from tutorial)
So the entity is difuse and bump at the same time.

Last edited by tompo; 04/12/07 21:29.

Never say never.
Re: Mixed skin? [Re: tompo] #123553
04/12/07 21:39
04/12/07 21:39
Joined: Jan 2007
Posts: 1,565
innsbruck, austria
achaziel Offline
Serious User
achaziel  Offline
Serious User

Joined: Jan 2007
Posts: 1,565
innsbruck, austria
for example a car's windows... can't that be done with alpha mapping?


Yeah, but... Who is Lu?
Re: Mixed skin? [Re: achaziel] #123554
04/12/07 23:08
04/12/07 23:08
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
it means?


Never say never.
Re: Mixed skin? [Re: achaziel] #123555
04/12/07 23:10
04/12/07 23:10
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Quote:

my. material = difuse_mat; (creates by fx file)
my.material = bump_mat; (creates by script - this one from tutorial)
So the entity is difuse and bump at the same time.




First, make sure you know what diffuse & bumpmapping are...

You cannot combine materials. But bumpmapping (Normal Mapping) includes diffuse lighting... lol.


xXxGuitar511
- Programmer
Re: Mixed skin? [Re: xXxGuitar511] #123556
04/12/07 23:30
04/12/07 23:30
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
this was only an example
but ok:) It's impossible to combine materials:)
And what about my first question? car windows?
it's possible to attach diferent materials to different triangles (polygon)?
car is metalic with no transparency, and windows... like windows;)


Never say never.
Re: Mixed skin? [Re: tompo] #123557
04/13/07 04:40
04/13/07 04:40
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Is your texture a .tga?


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Mixed skin? [Re: MrCode] #123558
04/13/07 05:44
04/13/07 05:44
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Use a 32 bit TGA texture, and creat an alpha channel for it...

Quote:

it's possible to attach diferent materials to different triangles (polygon)?



Yes, sort of. You can use different materials "per-skin". Therefore you must apply the "glass" triangles to a seperate material skin in MED...


xXxGuitar511
- Programmer

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