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 / Evolves Advanced Lighting - How can I add objects with textures to appear other than black?

Author
Message
DARKBASIC PRO 3d WORLD EDITOR
13
Years of Service
User Offline
Joined: 2nd May 2012
Location:
Posted: 24th Mar 2015 12:34
I am trying Evolves Advanced Lighting. I tried to make sense of the code and even read some of the post alike, but with no success because it seems everyone else seems to get at least that part lol but Im thinking it has to do with the textures or lighting. Even after I MAKE OBJECT BOX it won't color anything!!!

here is the code:

(pardon the mess!!)



If your familiar with the Advanced Lighting, this seems to be the older one. I have the newer one but I am afraid if I don't get this one then I probably won't be able to understand the update... Please help!!!

- Infinity is Simplicity -
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 26th Mar 2015 22:29
I'm not sure exactly which version you are using, bit you may be missing a call to

object_setAutoUpdate(object#, mode)

double check the demo projects with AL.

it also looks like you have commented out applying the textures and instead just color it. the shaders expect certain texture maps on certain stages to work properly. some of these textures affect the objects lighting and without them, it will not render correctly

DARKBASIC PRO 3d WORLD EDITOR
13
Years of Service
User Offline
Joined: 2nd May 2012
Location:
Posted: 29th Mar 2015 07:26
Quote: "I'm not sure exactly which version you are using, bit you may be missing a call to

object_setAutoUpdate(object#, mode)

double check the demo projects with AL.

it also looks like you have commented out applying the textures and instead just color it. the shaders expect certain texture maps on certain stages to work properly. some of these textures affect the objects lighting and without them, it will not render correctly
"


yeah the object_setAutoUpdate line definitely did it.. thanks a lot!!
I also undid the remarks.

- Infinity is Simplicity -
DARKBASIC PRO 3d WORLD EDITOR
13
Years of Service
User Offline
Joined: 2nd May 2012
Location:
Posted: 29th Mar 2015 07:26 Edited at: 29th Mar 2015 07:27


- Infinity is Simplicity -

Login to post a reply

Server time is: 2025-05-15 01:52:35
Your offset time is: 2025-05-15 01:52:35