Noodle Posted March 22, 2015 Share Posted March 22, 2015 Hey guys, I've been working on a singleplayer map and I wanted to add a section that was similar to the artus mines from Jedi Outcast. As in the previous game, I wanted to be forced to use the Light Amplification Googles to crawl through the dark spaced, however I found out the item didn't had the HUD textures it used to have. I managed to fix that issue, but now the light amplification itself doesnt works. This is how it should look: And this is how it currently looks in my game: Does anybody know how can I add the yellow shader thing? Link to comment
ensiform Posted March 23, 2015 Share Posted March 23, 2015 Pretty sure its because they took out the code that allows it to work in the renderer. Simply adding the images won't fix it. Link to comment
Circa Posted March 23, 2015 Share Posted March 23, 2015 They are goggles. Not googles. Despite the typo in the assets somewhere of both games. Noodle and Lancelot like this Link to comment
Tempust85 Posted March 24, 2015 Share Posted March 24, 2015 Pretty sure I added these in DF2 mod. Will have to look, but I think it was just a simple texture & items.dat copy over from JK2. Link to comment
ensiform Posted March 24, 2015 Share Posted March 24, 2015 The item exists in JKA, you can get it with giving the inventory and giving battery. The images just don't exist in JKA. But I'm not sure what exactly was the issue with the fog / fullbright effect not working without JK2. Link to comment
Noodle Posted March 24, 2015 Author Share Posted March 24, 2015 Turns out if I open the game with OpenJK the goggles (thanks for the correction Circa) work just fine. I guess the problem was in the code after all. Still, it'd be quite wizard if someone turns out to know how to fix it in the base game, since there are some people that don't have OpenJK or don't know how to install it. Link to comment
Solution eezstreet Posted March 25, 2015 Solution Share Posted March 25, 2015 I remember gnashing my teeth about this ages ago when I tried to implement JK2 items into JKA SP with reverse engineering, way back when that was still needed. From what I remember, there is a RF_GOGGLES or something of the sort which is missing in the renderer, and the trap calls for using the goggles (trap->RE_SetLightLevel and trap->RE_GetLightLevel iirc) are stubbed out on JA's engine. RF_GOGGLES or whatever does the fog, the stubbed out lighting function handles the lighting increase- the algorithms involved here are very cool, and if you're clever, you might do something involving HDR here. Implementing the functionality into OpenJK wouldn't be doable as adding a renderfield/renderflag breaks savegames from what I understand. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now