Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,454 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Point Lights/ Spotlights Flickering #181933
02/04/08 12:36
02/04/08 12:36
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Does anyone have an issues with some spotlights or pointlights flickering oddly, and seeming to turn off or on based on the player position? Im generating some problems with this.

Doesnt seem to matter the settings, or where they are placed, sometimes they do sometimes they dont, but some always flicker.

Any help would be greatly appreciated.

Update: actually i find that no matter what, all lights (pointlight, or spotlight) beyond the first 1 flicker or act weird. hmmmm

Last edited by oldschoolj; 02/04/08 13:01.

you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Point Lights/ Spotlights Flickering [Re: oldschoolj] #181934
02/04/08 14:06
02/04/08 14:06
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
I have created a small video, easily downloaded from my server. I would like you to view this video, JCL or Doug, to see if the problem can be solved. This is a ingame video, so I canot put the link on the forums, is there anywhere else I can post this link?


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Point Lights/ Spotlights Flickering [Re: oldschoolj] #181935
02/04/08 14:37
02/04/08 14:37
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Grafton released some examples in the user contributions forum. Maybe those can help you narrow down the problem?

Edit: Ok I see now, but thought it would help ^^


smile
Re: Point Lights/ Spotlights Flickering [Re: D3D] #181936
02/04/08 14:40
02/04/08 14:40
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
if your talking about his projection shader this is a Spotlight


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Point Lights/ Spotlights Flickering [Re: oldschoolj] #181937
02/04/08 16:30
02/04/08 16:30
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
If anyone else would like to take a look at the video, I really need help in deciding if this is an engine bug or not. Please contact me, if your knowledgable in this area.


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Point Lights/ Spotlights Flickering [Re: oldschoolj] #181938
02/04/08 16:37
02/04/08 16:37
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
How do you do the lights?
I encountered some graphicscard specific flickeringproblems with postprocessing...

Re: Point Lights/ Spotlights Flickering [Re: Slin] #181939
02/04/08 22:44
02/04/08 22:44
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Ya i checked out that route, seems that it does it with or without post processing, no change. Also I tried to different GPU's, with the same results.


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Point Lights/ Spotlights Flickering [Re: oldschoolj] #181940
02/05/08 06:53
02/05/08 06:53
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Ok, I know now that there is no way it has anything to do with light placement or level design, it either has to do with the code or engine. The reason I know this is because I can take any light and put it anywhere in the level, that light will always work fine, but any light after it wont. I find this odd, because it shouldnt matter what order I assign the lights in.


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Point Lights/ Spotlights Flickering [Re: oldschoolj] #181941
02/05/08 07:33
02/05/08 07:33
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Ok, so I have just solved the problem, but if someone can tell me why this was a problem it would really help me to better understand whats going.

I had 3 groupings of shrubs, grass,rocks etc. in a triangular area approximately 2000 quants from eachother. Over each grouping were several 32bit alpha masked sprites acting as sun rays. Each group was a duplicate of the next and positioned the same way, and here is their code:
Code:
action light_rays()
{
set (my, TRANSLUCENT | BRIGHT);
my.alpha = 100;
}



approximately 800 quants directly above each grouping is a spotlight:

Code:
action spotlight()
{
set (my, INVISIBLE | PASSABLE);
my.tilt = -90;
my.lightrange = 1000;
my.red = 60;
my.green = 60;
my.blue = 60;
my.flags2 |= SPOTLIGHT;
}



As I said before, only 1 worked properly at a time, the other two flickered, and it didn't matter which one I activated frst, they functioned the same.

The solution came from me deleting all of the alpha masked sprites. Now they all work. I have no clue why this happened.


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Point Lights/ Spotlights Flickering [Re: oldschoolj] #181942
02/05/08 16:27
02/05/08 16:27
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The sprites are probably unrelated. Light flickering can occur when more than 8 moving lights hit a certain surface. The surface then selects the 8 closest lights. At the moment when the distance to the lights changes and the surface is lit by a different light, we can see this as flicker.


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