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.

3 Dimensional Chat / light spots

Author
Message
Jurgen
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 15th Aug 2003 20:24
Hi, I make my bsp's in worldcraft, really great program and all, I made some really cool maps, but now I have a problem:

Imagine yourself a window, where the sun comes shining in (ready, this can take a while for the unexperienced imaginator (is that a word? )) Well, this is easy to make using an info_target and a light_spot... when I render it nothing of this can be seen, yes I checked that all the objects are inside of the map and yes I checked that the lights don't cross too much...

Now, WHAT THE FUCK IS GOING ON HERE ??? I ONLY HAVE THE LIGHTS OF A NORMAL LIGHT_ENVIROMENT

help anyone plz... I already checked out some tutorials on the web, but I'm not doing anything wrong with the mapmaking itself. And don't say light-effects aren't possible in dbpro because the are
"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 17th Aug 2003 07:12
Use sprites to make the light effects. A "light" in DB just affects the objects around it, not how the camera sees where the light is, get it? Get a nice flare sort of texture, like a yellow or white circle. Now make about 4 or 5 alpha blended sprites. Use some kind of function to figure out if you can see the sun (I could figure one out, but you should be able to). If you can see it, then place your sprites on the screen. Start at the position of the sun. No find the "opposite position" on the screen. For example:
sx#=object screen x(sun)
sy#=object screen y(sun)
nx#=(screen width()-sx#)
ny#=(screen height()-sy#)
sx# and sy# represent the sun's on screen position
nx# and ny# represent the target position for the flare
position your sprites along the path from sx#,sy# to nx#,ny#

This should make a convincing lens flare effects. I think that that is what you want. To make the sun appear bright, make a picture with photoshop or corel photopaint or something. Make a gradient that fades from white to yellow to black. If you can't figure it out, I can send you one. Position this sprite at the sun's on screen position when you can see it.

Hope I helped you, Good Luck

Xander
Bolt of Bolt Software Productions
Jurgen
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 17th Aug 2003 14:40
sorry this is not my intention, If you have halflife (counterstrike mod) and look at any map you'll see shadows appear near boxes and stuff, well this isn;t coding, it is made with hammer (worldcraft). I allready made a map where hammer makes the shadows, but they are just several light spots placed near the box sothat the other side of the box couldn't get enough light. (shadow.... ) Now sometimes it works, and sometimes it doesn't... Why???? <- I don't know

"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."

Login to post a reply

Server time is: 2025-05-14 06:32:20
Your offset time is: 2025-05-14 06:32:20