Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Trouble with Evolved's Advanced Lighting

Author
Message
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 22nd Jul 2013 04:09
Hi again!
I first posted this at the bottom of the 'Evolved AL Tutorial' thread I started, but I thought it would probably do better in it's own thread, hope nobody minds
I've tried for a 'first scene' using Advanced Lighting, just adding the Parallax Occlusion effect to the system, then applying it to objects, to see if I can get it working... The problem is though, I can't get any objects to display! At all! Basically in my scene, as soon as I add an object to the AL system, it vanishes and can't be seen (apart from in the debugging cameras when you press F1)

Here's the code:

I'm sorry, there's some junk code in there, because I've been testing this stuff and trying to get it working
If you can spot anything wrong with it, please let me know!
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd Jul 2013 03:50
It might be that your graphics card doesn't support the shaders or you may have edited one so that it doesn't compile or fails to do what it is supposed to. Those kinds of errors usually remove the objects which have the shader in question applied completely from rendering.

I also think that objects in the AL shader system may very well have all (or at least most of) their texture stages reserved for certain maps that the shaders expects. Thus, for example adding in another texture that for example overwrites the expected alpha map with zero values would also make objects "disappear".

Those are some thoughts anyway, I'm afraid I don't have that much experience with the system myself to spot any certain problems.


"Why do programmers get Halloween and Christmas mixed up?"
Inflictive
17
Years of Service
User Offline
Joined: 16th Jun 2009
Location: Altis
Posted: 23rd Jul 2013 05:09
Try the examples. I have a windows vista laptop I tried advanced lighting on, everything was all buggy because the graphics card was too old. The same example programs ran fine on my desktop, maybe the problem is your computer.
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 23rd Jul 2013 18:56
Thanks
I've tried the examples, they all work ok for me... I'll play around with it a bit more this evening and see if I can do anything more!
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 29th Jul 2013 03:20
Hey
Should probably just say, finally came back to this one, and I think I've found what was wrong! I had an ordinary sky-sphere set up around the scene to give me some idea of perspective against the backdrop, and that seemed to be drawing OVER any object added to the AL system for some reason :s
Oh well, I can probably handle it from here on thanks
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 29th Jul 2013 23:17
Hi again, just wondering... Does Advanced lighting only work with the shaders it comes with (as in the ones in the /shaders/ folder), or can you add any effect of your own to the system? Just curious, thanks for answers
TheKid
13
Years of Service
User Offline
Joined: 7th Feb 2013
Location: California
Posted: 31st Jul 2013 05:50
I believe you can create your own custom shaders. Ill mess around with it a little and let you know.
Inflictive
17
Years of Service
User Offline
Joined: 16th Jun 2009
Location: Altis
Posted: 8th Aug 2013 02:02
You COULD make your own effects, but the advanced lighting system requires the data to be packed a certain way into the ARGB, so you can't just use any effect, you need to understand how it works and make/modify the effects yourself.

Login to post a reply

Server time is: 2026-07-07 00:49:34
Your offset time is: 2026-07-07 00:49:34