Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (steyr, alibaba), 534 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Dynamic lights and blocks #314024
03/05/10 01:48
03/05/10 01:48
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I am using dynamic lights for shaders and models but I do not want them to affect the level geometry (blocks). Is this possible?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Dynamic lights and blocks [Re: Superku] #314032
03/05/10 03:47
03/05/10 03:47
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
probably have to use some shader or material, i asked for a type of light in WED that wouldnt affect blocks but as usual.. no reply

Re: Dynamic lights and blocks [Re: darkinferno] #314033
03/05/10 06:06
03/05/10 06:06
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
@darkinferno:You never ask grin
Code:
MATERIAL* no_dlight 
{
  effect=
  "
    texture entSkin1;
    texture entSkin2;//I forgot, is it entskin2 or entskin3?
    technique no_dlight
    {
      pass p0
      {
        Texture[0] = <entSkin2>;
        Texture[1] = <entSkin1>;

        ColorArg1[0] = Texture;  // shadow map
        ColorOp[0] = SelectArg1;        

        ColorArg1[1] = Texture;  // color map
        ColorArg1[1] = Current;  // shadow map
        ColorOp[1] = Modulate2X; //Also try modulate, or modulate4x

        magfilter[1] = linear;
        minfilter[1] = linear;
        mipfilter[1] = linear;
        }
    }
  ";
};


Just apply that material to the whole block, not guaranteed to work though...

Last edited by bart_the_13th; 03/05/10 06:12.
Re: Dynamic lights and blocks [Re: bart_the_13th] #314057
03/05/10 13:46
03/05/10 13:46
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Thank you both, I will try that material!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

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