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, juanex, Grant), 1,018 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
shadow script?? #124880
04/18/07 18:28
04/18/07 18:28
Joined: Jan 2007
Posts: 295
Portugal
Sam_Be Offline OP
Member
Sam_Be  Offline OP
Member

Joined: Jan 2007
Posts: 295
Portugal
hi
i have the extra version an i'm really sad that with this version models doesn't have shadows. so my question is if anyone knows a script which makes shadows for models and spites.

sam


GS-Extra Looking for a scripter Suche einen scripter. Estou a procura de um "Scripter".
Re: shadow script?? [Re: Sam_Be] #124881
04/18/07 18:34
04/18/07 18:34
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
How should a script do this? The only possibility for extra to get modelshadows is to make a shadowmap as sprite for each model and produce it at the ground following the player and may be scalled and rotated to the sunposition. But this would be very uncompfortable (is that right in English???) and not good liooking at all.

Last edited by RedPhoenix; 04/18/07 18:37.
Re: shadow script?? [Re: RedPhoenix] #124882
04/18/07 19:00
04/18/07 19:00
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
but u can do it easy if u trace and then use it folling:

shadow_sprite.tilt=-asin(normal.x);
shadow_sprite.roll=-asin(normal.y);

Re: shadow script?? [Re: Scorpion] #124883
04/19/07 03:03
04/19/07 03:03
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline
User
Trooper119  Offline
User

Joined: Apr 2004
Posts: 516
USA
Unless your doing something like a shadow "spot" that's directly under the character and moves a little bit depending on the closest light source (but is still directly under the player), I can't think of a script you can use that would even make sub-par results. The only realistic way to make shadows of varying quality is with a shader, and with shaders, I barely have any experience. Look at some shader scripts, I'm pretty sure shadow scripts are out there free for you to use (providing you have at least a6).


A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Re: shadow script?? [Re: Trooper119] #124884
04/19/07 03:10
04/19/07 03: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
Shaders require comm+


xXxGuitar511
- Programmer

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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