Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Unlit [Re: ShoreVietam] #59475
11/26/05 00:32
11/26/05 00:32
Joined: Jan 2005
Posts: 567
Sweden
Gafgar Offline OP
Developer
Gafgar  Offline OP
Developer

Joined: Jan 2005
Posts: 567
Sweden
ok.. i must have around 3 screens and allot of text to really explain it.. i will try to make that tomorrow...


__________________________________________________ / Gafgar The Goblin... http://www.Goblinsoftware.tk/
Re: Unlit [Re: Gafgar] #59476
11/28/05 00:00
11/28/05 00:00
Joined: Jan 2005
Posts: 567
Sweden
Gafgar Offline OP
Developer
Gafgar  Offline OP
Developer

Joined: Jan 2005
Posts: 567
Sweden
ok. it become more than 3












and here is the code for the sprites...

my.skill2 = random(13);
my.oriented = off;
my.facing = on;
my.decal = on;
my.scale_x = 0.3 + random(0.20);
my.scale_y = 0.3 + random(0.20);
my.passable = on;
my.unlit = on;


__________________________________________________ / Gafgar The Goblin... http://www.Goblinsoftware.tk/
Re: Unlit [Re: Gafgar] #59477
11/28/05 17:30
11/28/05 17:30
Joined: Jan 2005
Posts: 567
Sweden
Gafgar Offline OP
Developer
Gafgar  Offline OP
Developer

Joined: Jan 2005
Posts: 567
Sweden
ok.. no one answered.. should i move this to bug hunt? -_-
this is a really big problem for me...


__________________________________________________ / Gafgar The Goblin... http://www.Goblinsoftware.tk/
Re: Unlit [Re: Gafgar] #59478
11/29/05 10:02
11/29/05 10:02
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I don't fully understand what you want to tell us with your screenshots.

Unlit does not mean that an object is black or something. It just means that the object's brightness won't be altered anymore by static and dynamic lights. It's 'frozen'. You might also set unlit in WED for even preventing the initial brightness calculation. If you want all sprites to be equally bright, just set their material colors accordingly.

The formula for the brightness of an object is described in the Beta manual.

Re: Unlit [Re: jcl] #59479
11/29/05 10:38
11/29/05 10:38
Joined: Jan 2005
Posts: 567
Sweden
Gafgar Offline OP
Developer
Gafgar  Offline OP
Developer

Joined: Jan 2005
Posts: 567
Sweden
When the object is created i set the unlit and ad an ambient to the entity. and still it change brightness... that is what i want to show... (when i in game remove the entity wit the light every object change anyway..


__________________________________________________ / Gafgar The Goblin... http://www.Goblinsoftware.tk/
Re: Unlit [Re: Gafgar] #59480
11/29/05 10:57
11/29/05 10:57
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Perhaps you need the ambient_red stuff in a material. To get true color, set all to 255.

If you want all objects affected in the same way, use the mat_model or mat_sprite predefined materials. To affect a single object individually, create a material for it and in an action, point to that material then add my.dynamic = off after assigning the material to speed up rendering.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Unlit [Re: ulillillia] #59481
11/29/05 12:03
11/29/05 12:03
Joined: Jan 2005
Posts: 567
Sweden
Gafgar Offline OP
Developer
Gafgar  Offline OP
Developer

Joined: Jan 2005
Posts: 567
Sweden
at the first image all sprites have a given alpha depending on there position to the tree and the trees position to the light. but when the sprites are facing the light they all become affected even if i have unlit = on; and the manual says that is should not happen, that they will be unaffected by all light. But that’s not how it is.
(My computer don’t seems to be able to handle materials)


__________________________________________________ / Gafgar The Goblin... http://www.Goblinsoftware.tk/
Re: Unlit [Re: Gafgar] #59482
11/29/05 12:13
11/29/05 12:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
If your computer were unable to handle materials, your image would be all black.

Unlit does only affect the influence of static and dynamic lights. It does not affect the sun or any other entity shading parameters. For disabling the shading you have to set the material's diffuse color vector at zero.

I'm afraid there is no way around reading the manual about materials - "My computer can't handle materials" is no excuse, unless you inherited your computer from your grandfather.

By the way, your tree sprites look nice.

Re: Unlit [Re: jcl] #59483
11/29/05 14:15
11/29/05 14:15
Joined: Jan 2005
Posts: 567
Sweden
Gafgar Offline OP
Developer
Gafgar  Offline OP
Developer

Joined: Jan 2005
Posts: 567
Sweden
I am working on a laptop and I tried many things on this laptop but the graphic card does not seem to like any of them. I can’t handle FFE and I can’t handle materials. Anyway they make no deference on the light/shading on the model.. I have used that material effect editor lately and thought that if I had maid any wrong earlier in my script with materials then this would work, but no. No difference...
But what does the unlit do then? i understand that this computer cant make my leaves look good but what does the unlit rely do? i have read the manual and it says
"By setting this flag, the entity is not lit by external static and dynamic light sources. Only it's own light values, like ambient or the bright flag, influences it's brightness. By setting the ambient to -100 the entity becomes totally black. Large entities placed in the level, with a diameter of 250 quants or more, get the unlit and bright flag set by default. "

Thanks


__________________________________________________ / Gafgar The Goblin... http://www.Goblinsoftware.tk/
Re: Unlit [Re: Gafgar] #59484
12/01/05 10:32
12/01/05 10:32
Joined: Jan 2005
Posts: 567
Sweden
Gafgar Offline OP
Developer
Gafgar  Offline OP
Developer

Joined: Jan 2005
Posts: 567
Sweden
no response?... -_-
I don’t like to post posts like this but have to else it will bi burrowed in the line...


__________________________________________________ / Gafgar The Goblin... http://www.Goblinsoftware.tk/
Page 2 of 3 1 2 3

Moderated by  HeelX, Spirit 

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