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
FIxed Function help #40753
02/08/05 02:33
02/08/05 02:33
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
Can someone tell me exactly what to use to simply change a texture from the default skin to a different skin in fixed functions? I have no clue about the FFP.

Re: FIxed Function help [Re: Matt_Aufderheide] #40754
02/08/05 03:31
02/08/05 03:31
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline
Developer
xoNoid  Offline
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
Ok try this. But as I am also new to this thing so it might not work:

Code:
 

bmap myskin2=<myskin.bmp>;//skin to change to

material set_skin2
{
skin2=myskin2
effect="
texture mtlSkin2;
technique render_skin
{
pass P0
{
Texture[0] = <mtlSkin2>;
ColorArg1[0] = Texture;
}
}
technique fallback { pass P0 {} }//fallback renders entity normally
";
}



Re: FIxed Function help [Re: Matt_Aufderheide] #40755
02/08/05 04:31
02/08/05 04:31
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
Maybe I am reading too deep into this...... Are you wondering about dealing with entSkins or mtlSkins?? And, are you simply looking to change the current skin from inside an <Action> to update the current Skin pointer??

An example:
Some of my terrain "LOD", I change/unload the skins dynamically based on distance and view. For some strange effects I also cycle through some different Skins based on instructions in an <Action>.

Re: FIxed Function help [Re: Steempipe] #40756
02/08/05 17:52
02/08/05 17:52
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
well acutally i am trying to set texture and render states manually in D3D in a DLL.. but when i just do device->SetTexture(..) i just get nothing.. I only want to render a mesh as completely black, so i had a black texture loaded, but it seems not to work the way i am doing it.. maybe there is some simple texture stage states that make something black?

Last edited by Matt_Aufderheide; 02/08/05 17:54.

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