Half Life maps all black
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
Half Life maps all black
I just added half life bsp support to my stock GLquake iphone port using baker's tutorial. I made a Half life format map and tested it and it was entirely black. Almost like i didn't add light. I did, even if i didn't add a single light entity the engine automatically makes it fullbright. It worked in darkplaces in <= High lighting settings, but if i put full lighting i get the same effect: Blackness. I dont think its my worldcraft /compiling because i tested c0a0 from half life and i still get blackness. I even tried using quake's format of light by making brightness 500 instead of XXX XXX XXX. And still nothing.
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
I think i found it. It looks like spike mentioned something about the lighting and baker's method is wrong, ill change it to his and try it tonight.
Spike wrote:in baker's stuff, I don't see the divide-by-3 for the lightmap offsets.
Also, that 'beam' brush in baker's screeny seems to have the same lined effects, as well on the walls.
Ah, right... step #13 is wrong. It greyscales it, but leaves it as 3-componant. Which is wrong.
What you should do is divide the surface lightmap offsets by 3, and average the 3 rgb lightmap values and scale them down.
so:
loadmodel->lightdata = loadmodel->lightdata[i+1] = loadmodel->lightdata[i+2] = out;
becomes:
loadmodel->lightdata[i/3] = out;
but yeah, you need to divide the msurface_t lightofs field by 3 too, but only for halflife maps.
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
I'd really like to fix this because I'm practically there, it "kinda" works and i hate it when i do things and it "kinda" works. But i haven't ever done engine before and I would like my mod to have hlbsp because its a great feature to have. So if you guys could help me out I would really appreciate it. Spike's fix didnt work, i even skipped step 13. I just want this to work, you guys would know more than me. Thanks in advance.
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
if its entirely different dont you think i would have caught on? Its like the psp engine, it has the psp part and the basic quake engine code too. Its no different than any other GLquake on any other platform. Its ID's default GL source. I followed the tutorial word for word, now how the fuck could i do that if its entirely different? I dont care how well of a programmer you are, its not a free pass to be a douchebag. You had to start somewhere too. I'm one of the few people who has the balls to take the time to learn programming. The last thing i need is a stuck up programmer with a bad attitude bringing me down. I just want my game to be a decent quality to do that I need some engine modifications and I have not messed with engine ever. I got the QC covered, im pretty good at that. I just would appreciate some help with an engine issue.
Quote from TMSoft, porters of the engine:
"Kevin Arunski started the project by downloading the GLQuake source code from ID Software. He ported the graphics, sound, and networking. Todd Moore joined in and implemented the user interface and player controls."
All they did was make the GLquake work on ipod. So its should still be in your guys' knowledge to be able to help me.
Quote from TMSoft, porters of the engine:
"Kevin Arunski started the project by downloading the GLQuake source code from ID Software. He ported the graphics, sound, and networking. Todd Moore joined in and implemented the user interface and player controls."
All they did was make the GLquake work on ipod. So its should still be in your guys' knowledge to be able to help me.
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
Oh, well I apologize then, i just dont think there is a nice way to say "you fucked up". And its not written in OpenGL ES, I don't see what you guys are missing.. Do you want the entire source? I can give it to someone if they are willing to help me. If open GL and openGL ES is entirely different, how could i have followed baker's tutorial word for word with no issues?
Lets just pretend i tried this for the PC and got the same effect. Where would you suggest i start trying to fix it at?
Lets just pretend i tried this for the PC and got the same effect. Where would you suggest i start trying to fix it at?