bsp parsing and lighting
BlitzMax Forums/BlitzMax Programming/bsp parsing and lighting
| ||
Well I've managed to parse out and display all the level/entity models from a bsp file. I have even parsed out entities, so that when you point at a button and press space the door opens. All the door/button linking/placement is done in qeradiant as it should be. However I'm soon to come to a screeching halt... basically because doors move they cant be included in the static lightmapping, so they are ignored by the bsp compiler. This leaves me wondering how the H do I dynamically render a shadow for a door given multiple lightsources and that the shadow could fall on polys at differing angles. I'm gonna plug on with the static light mapping as I cant see a problem with that, but any help would be appreciated Once its up to a decent level I'll release an example with code quickie demo here http://www.traklink.com/component/option,com_docman/task,cat_view/gid,2/Itemid,2/ ![]() door after button pressed |
| ||
Just so you know, no textures show up. Specs in signature. |
| ||
works on my machine and a mates. Did you extract all the textures, bsp and exe to the same directory? |
| ||
Yep. Picture.. ![]() Edit: By the way, good job. Shame about the texturing, but I wouldn't be suprised if that was a driver problem. |
| ||
very nice ! Works for me ! we want source ! :) |
| ||
just out of interest try d/loading again made a minor mod, which gfx card did you try it on? email me directly theres one other thing to try (not from a gmail account, they reject rar's) |
| ||
Nope, doesn't fix it. Tried it on my X800 XT (Desktop PC). If you can send me the code for the rendering portion of your code I might be able to figure out what's up. (not from a gmail account, they reject rar's) Well, that rules that out then. Though I don't know why they'd reject RAR files. |
| ||
@deux ask nicely ;p , wait for me to add lightmapping, and a promise of a code contribution wouldnt come a miss Theres loads of things need adding . dynamic lighting for non static entities . occlusion . collision detection @noel email me |
| ||
@Chris C pweeeeeeezzz ;) |
| ||
lol, wait till i've bodged in some kind of lightmapping, it looks pretty poor at the moment I'd be interested to here if anyone gets it to work with their own bsp... |
| ||
lightmaps done! lights with different colours! new test bsp has 2 doors with 2 switches each compiling with gtkradiant causes missing tri's once I've investigated that and tidied the code a bit I'll post some source time for sleep... |
| ||
awsome work man ! |
| ||
source code posted... maybe someone whos more familiar with irlicht might like to use that for diplay/picking/collisions/occlusion etc as irlichts bsp loader is currently unable to handle entities. |
| ||
Could someone please reup that great piece? |