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 Discussion / Post your Darbasic lighting systems here! + I need help please :)

Author
Message
Benji
19
Years of Service
User Offline
Joined: 17th Dec 2005
Location: Mount Doom
Posted: 4th Jan 2006 22:24
I've been expiermenting with the Darkbasic lighting recently, and I would like to see what other people have done. Please post.

I posted a download below of what I did.

Does anyone know how to fix the ambience bug, the one that when you go inside a CLOSED building, for example, and one side of a wall is lighted up. It doesn't detect a wall blocking light. Does anyone have a free DLL or source code to fix this bug?

Attachments

Login to view attachments
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 5th Jan 2006 23:26
Being limited to 7 lights in DBC, I've never tried it...

...maybe one day I'll finish a project
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 6th Jan 2006 08:41
Benji,
DarkBasic uses per polygon lightning and therefore the lighting suck.
i would suggest you go about a lightmapper and load a lightmapped world. DirectX is limited to 8 lights only (where 1 is ambient light) so in order to have more lights you need to hide the lights not in use.

when my world editor is done, you can add "action zones" where if you enter an action zone you can select to hide a light. that is useful if you have two rooms and two lights, and the two lights are mixing with eachother. then when standing in one room the other light is hidden.
but you can do that without a world editor .^^


The Cowboy Game progress 17% (bullets)
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 6th Jan 2006 09:17
When I look at your buildings they have many lines on them that flicker, I think that you have a Z Buffer bug. This is usually caused by your buildings having walls inside walls. I don't know how you have modelled your buildings, but they are best made as one object if possible, or I think limbs works OK.

Benji
19
Years of Service
User Offline
Joined: 17th Dec 2005
Location: Mount Doom
Posted: 6th Jan 2006 23:31
Quote: "When I look at your buildings they have many lines on them that flicker, I think that you have a Z Buffer bug. This is usually caused by your buildings having walls inside walls. I don't know how you have modelled your buildings, but they are best made as one object if possible, or I think limbs works OK."


Those are not my models.

Quote: "Benji,
DarkBasic uses per polygon lightning and therefore the lighting suck.
i would suggest you go about a lightmapper and load a lightmapped world. DirectX is limited to 8 lights only (where 1 is ambient light) so in order to have more lights you need to hide the lights not in use.
"

I got lightmaps for the models, but how do you apply the texture and the lightmap at the same time on a model? Is that only available in Dbpro?

Login to post a reply

Server time is: 2025-05-23 07:01:31
Your offset time is: 2025-05-23 07:01:31