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 / Advanced Lighting

Author
Message
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 10th Aug 2014 15:40
Hey guys,

I want to implement in my project the latest advanced lighting from evolved. But it gives me an error when i am compiling it like in the materials.dba variable texture name is not valid.

How can i solve this problem? Or how can i implement it correctly? I just want to get the sky with the clouds etc btw.

Thank You very much for your help!

Rims Flames
L3mmy
17
Years of Service
User Offline
Joined: 19th Jun 2009
Location: England, Sheffield
Posted: 10th Aug 2014 17:49
I'm getting the same headache lol...Trying to implement the lighting from the Palm Tree demo but not getting far quickly...

See attachment image

www.monsterwareltd.co.uk/imagehost <-- Image Hosting for your pictures
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 10th Aug 2014 17:56
At least yours work, mine it gives compile errors

Rims Flames
L3mmy
17
Years of Service
User Offline
Joined: 19th Jun 2009
Location: England, Sheffield
Posted: 10th Aug 2014 18:06
Post up your code I'll have a scan through it?...or does it say where the errors are?

www.monsterwareltd.co.uk/imagehost <-- Image Hosting for your pictures
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 10th Aug 2014 18:27
in Materials.dba the variable Texture is not valide i can't give you the code cuz its the one you already know I try to get the skybox from the Terrain function.

Rims Flames
L3mmy
17
Years of Service
User Offline
Joined: 19th Jun 2009
Location: England, Sheffield
Posted: 10th Aug 2014 21:30
Took a couple o hours but I managed to figure it out and get closer to what I wanted Gotta add all the detail mapping now
You sort yours?

www.monsterwareltd.co.uk/imagehost <-- Image Hosting for your pictures
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 11th Aug 2014 00:05
Hey man,

No i didn't...it keeps giving me that error on Materials.dba
"Variable Texture is not valid..."

Rims Flames
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 12th Aug 2014 09:44
Anyone?

Rims Flames
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 12th Aug 2014 11:06
By the sounds of it (and since you won't provide any snippet of the offending code) I would venture a guess that it expects certain texture names to be set in order to identify certain maps, such as "Diffuse", "Normal", and so forth.


"Why do programmers get Halloween and Christmas mixed up?"
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 12th Aug 2014 12:09
Do you know why in the world the imported object looks like this ? Thank You

Rims Flames
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 12th Aug 2014 12:33 Edited at: 12th Aug 2014 12:33
Probably missing a texture / an existing texture is lacking certain information. But it's hard to guess, if anything AdvancedLighting has always been a royal pain to understand the source of (awesome as it is).


"Why do programmers get Halloween and Christmas mixed up?"
Rims Flames
12
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 12th Aug 2014 21:35
Man, is just that texture var error nothing to show up its just copying and pasting the files with include and bringing in the code the #include advanced lighting and it gives me that error....

Rims Flames
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 12th Aug 2014 23:08
Quote: " (and since you won't provide any snippet of the offending code)"

this sums up what the next step is - which should have been your first
Quote: " i can't give you the code cuz its the one you already know"

evolveds code is not simple and clearly from you pic you have altered it, just post code of the dba files you have altered, otherwise your unlikely to get help unless someone has been through same problem that isn`t a fault in your altered code - which is what needs to be determined first
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 12th Aug 2014 23:21 Edited at: 12th Aug 2014 23:28
What third party plug-ins do you have installed. Sometimes you will get this error due to a conflict with a plug-in command. Try disabling different plug-ins to find the culprit.

SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 12th Aug 2014 23:53 Edited at: 12th Aug 2014 23:54
I've been using Advanced Lighting for a while now - sometimes strange variable and type errors do appear
Something you might want to try is using #include for each .dba file separately, instead of just '#include "Advanced Lighting.dba"'. Some of the Advanced Lighting source files (Advanced Lighting.dba and AL_Lighting.dba I think) contain #include references to the other source files, so you need to search the files for any #include statements, and remove 'em first
After that, include each of the source files separately, but try skipping 'Materials.dba' - it's not important unless you're using Evolved's Material Editor as well. If you still get an error, try removing other files as well - hopefully it'll work eventually
Good luck

The code never bothered me anyway...

Login to post a reply

Server time is: 2026-07-05 15:43:18
Your offset time is: 2026-07-05 15:43:18