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 / eXtends virtual lights + shadows

Author
Message
anwserman
15
Years of Service
User Offline
Joined: 20th May 2011
Location: Wisconsin
Posted: 19th Jun 2011 01:38
Hello everyone!
I have a question regarding eXtends virtual lights and using them for shadows. From the demo I ran - and reading up - I can use eXtends to create virtual lights, and the plug-in will determine which lights are active based on camera position.

Now, I'm wondering how I can use these active lights and use them to cast shadows. I've read via forums and documentation that I can set specific lights to be used for shadows - position and range - but I cannot find a way to delete these lights.

Basically, my question is - how can I update the shadowing system to use the light positions as determined from eXtends? In theory, I know how to do everything else - but from what I've noticed, I can only keep adding lights for shadow casting but cannot remove them.

What I have so far:

1) Load map into DB
2) Disable lighting ability for mesh objects that will NOT be illuminated by hardware lights
3) Disable shadowing ability for mesh objects that will NOT be casting hardware (GPU) shadows
4) Create virtual lights within eXtends
5) Somehow initialize shadows
6) Render map

Login to post a reply

Server time is: 2026-07-10 21:17:03
Your offset time is: 2026-07-10 21:17:03