Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
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
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
light shader #92088
09/27/06 21:33
09/27/06 21:33
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Is there a shader that will allow models to be affected by static lights similar to how geometry is affected?


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: light shader [Re: draculaFactory] #92089
09/27/06 23:17
09/27/06 23:17
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
You can get this with c_scan(...SCAN_LIGHTS) to static lights and pass light parameters to the shader in material skills.
[edit]
or c_trace to get tex_light & tex_color of floor (in case of wmb level, not made from models) and pass that values to the shader


Last edited by Lion_Ts; 09/27/06 23:27.
Re: light shader [Re: Lion_Ts] #92090
09/28/06 00:41
09/28/06 00:41
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
thats a good idea but i dont know about making shaders, your idea gives me an idea though, however i am making a level completely from models. ive tried geometry and if one thing goes wrong its a pain in the butt lol


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: light shader [Re: draculaFactory] #92091
09/28/06 12:26
09/28/06 12:26
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Oh well, this is a good method, but it isn't good for what I need. Thank you though.


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: light shader [Re: draculaFactory] #92092
09/28/06 22:11
09/28/06 22:11
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
I don't know any other method to pass info about static lights to the shader in the current version of 3dgs

Re: light shader [Re: Lion_Ts] #92093
09/29/06 09:52
09/29/06 09:52
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Yea this is a tricky subject, however, I was peeking at some code from loopix and his day night system has a nice way of faking this kind of thing.


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.

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