Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
lamp #112053
02/15/07 15:17
02/15/07 15:17
Joined: Jan 2007
Posts: 40
germany
boochie Offline OP
Warez
boochie  Offline OP
Warez

Joined: Jan 2007
Posts: 40
germany
i'm looking for a kind of a light of a lamp that lights just in the area i want. i want to create a ordinary light of a ordinary lamp you can buy everywhere. the light shouldn't light at everywhere. do you know a solution?
---------------
ich suche nach einer art licht, das bloß in an die stelle leuchtet, wo ich es haben will. ich möchte ein ganz übliches licht einer handelsüblichen taschenlampe erstellen. das würde heißen, dass sie nicht überall hinscheinen sollte. wisst ihr wie?


Use condoms! They fit perfectly over your head! xD USING 3D GAMESTUDIO VERSION 6.22 PRO & BLENDER
Re: lamp [Re: boochie] #112054
02/15/07 15:28
02/15/07 15:28
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
You have to mess up with lightrange, spotlight, d3d_spotlightcone see the manual. I can put here a simple example but later cause i am at work now.

Re: lamp [Re: demiGod] #112055
02/15/07 17:13
02/15/07 17:13
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
even easier, you can put a lamp model somewhere, and put a light on it, and move it around, change the intensity of the light, and place it where ever you need the light to shine. all in WED.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: lamp [Re: Blink] #112056
02/15/07 19:29
02/15/07 19:29
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
Well, there is a simple example where you attach the action to an entity and then play with the values as you need and even rotate or tilt as you want. Hope it helps.

Code:


action test_light
{
/*d3d_spotlightcone[0] = 90;// inner light cone in degrees (1..90, default 30)
d3d_spotlightcone[1] = 1;//darker area around light cone (1..90, default 15)
d3d_spotlightcone[2] = 0; //light falloff effect within the darker area (-5..5, default 1)
d3d_pointlightfalloff[0] = 90; // tweak the pointlightfalloff with these values.
d3d_pointlightfalloff[1] = 1;
d3d_pointlightfalloff[2]= 0;*/
my.tilt = -60;
my.red = 255;
my.green = 255;
my.blue = 0;
my.transparent=on;
my.alpha=0;
//my.cast = on;
my.lightrange = 2000;
my.spotlight = on;
while(1)
{
my.pan += 5 * time_step;
wait(1);
}
}




Re: lamp [Re: demiGod] #112057
02/16/07 09:40
02/16/07 09:40
Joined: Jan 2007
Posts: 40
germany
boochie Offline OP
Warez
boochie  Offline OP
Warez

Joined: Jan 2007
Posts: 40
germany
i have just to put this code at a lamp model? sounds good. i'll try it.
------------------
ich muss bloß das skript zu meinem lampen modell stellen? hört sich gut an, ich werds versuchen.


Use condoms! They fit perfectly over your head! xD USING 3D GAMESTUDIO VERSION 6.22 PRO & BLENDER

Gamestudio download | 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