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
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 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
apply .bmp to a model need material or shader? #39274
01/15/05 00:04
01/15/05 00:04
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
hi,

I'd like to apply different .bmps to each model in a level (each model is the same .mdl) to create slightly unique models without actually creating unique models.

can I create a simple material that would apply the .bmp to the model?
I don't require or want any other effects just paint the .bmp onto the model.

do I need to use a shader instead of a material to do this?

whichever way I need to go does anyone have a very basic simple example that I can use to learn what to do?

thanks,
LazyDog


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: apply .bmp to a model need material or shader? [Re: LazyDog] #39275
01/23/05 01:05
01/23/05 01:05
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
nobody with some experience can help me out here?


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: apply .bmp to a model need material or shader? [Re: LazyDog] #39276
01/23/05 02:18
01/23/05 02:18
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
You can give the model multiple skins in MED (this is explained in the manual), then in code change the skin being applied to the model by using my.skin=number. No shaders needed.

-Rhuarc


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: apply .bmp to a model need material or shader? [Re: Rhuarc] #39277
01/23/05 03:03
01/23/05 03:03
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Ah, But Rhuarc this can become very costly with skin sizes. For example if he has a large model with Many choices of skin colors and all he wants to be able to do is slap on another BMP Image to the model instead of having to make an entire new skin for each BMP with all those colors.


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: apply .bmp to a model need material or shader? [Re: ISG] #39278
01/26/05 08:33
01/26/05 08:33
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
Yes, I'm already doing the multiple skin thing that's exactly why I'm looking at the possiblity of using a shader/material because I have so many skins. I'm just looking for a simple example of putting a graphic on the model.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: apply .bmp to a model need material or shader? [Re: LazyDog] #39279
02/04/05 01:22
02/04/05 01:22
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline
Developer
xoNoid  Offline
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
correct me if Im wrong as I am new to shaders but can you not just do something like this:

bmap texture_for_me=<my_texture.bmp>;

material change_texture_mat
{
skin2 = texture_for_me;
effect = "
texture mtlSkin2;
technique env_cube
{
pass P0
{
Texture[0] = <mtlSkin2>;
}

";
}

function change_texture
{
my.material=change_texture_mat;
}


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