bsp parsing and lighting

BlitzMax Forums/BlitzMax Programming/bsp parsing and lighting

Chris C(Posted 2005) [#1]
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


N(Posted 2005) [#2]
Just so you know, no textures show up.

Specs in signature.


Chris C(Posted 2005) [#3]
works on my machine and a mates. Did you extract all the textures, bsp and exe to the same directory?


N(Posted 2005) [#4]
Yep.

Picture..


Edit: By the way, good job. Shame about the texturing, but I wouldn't be suprised if that was a driver problem.


SillyPutty(Posted 2005) [#5]
very nice ! Works for me !

we want source ! :)


Chris C(Posted 2005) [#6]
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)


N(Posted 2005) [#7]
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.


Chris C(Posted 2005) [#8]
@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


SillyPutty(Posted 2005) [#9]
@Chris C

pweeeeeeezzz ;)


Chris C(Posted 2005) [#10]
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...


Chris C(Posted 2005) [#11]
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...


SillyPutty(Posted 2005) [#12]
awsome work man !


Chris C(Posted 2005) [#13]
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.


sethus(Posted 2011) [#14]
Could someone please reup that great piece?