Comments (4)
Solution:
gl_rmain.c , R_UpdateVariables
if (r_refdef.scene.worldmodel)
{
r_refdef.scene.lightmapintensity *= r_refdef.scene.worldmodel->lightmapscale;
// Baker: Add this ...
if (cl.worldmodel && cl.worldmodel->type == mod_brushq3) {
r_refdef.scene.lightmapintensity *= r_refdef.scene.rtlightstylevalue[0];
}
}
from darkplaces.
Hemebond, can you provide the last known working version of DarkPlaces that did not have the issue.
I assume Wrath doesn't have issue? Is this correct?
If you can tell me the most recent one where it worked, I would like to take a look at this.
from darkplaces.
Hemebond, can you provide the last known working version of DarkPlaces that did not have the issue.
I tried to compile older versions to find and test the exact commit but couldn't compile (I need to try with 5e9e998). It appears there were significant light style changes in fb21704.
I assume Wrath doesn't have issue? Is this correct?
Correct. Wrath is based on a much older version.
If you can tell me the most recent one where it worked, I would like to take a look at this.
The most recent "release" that works is 2017-08-30.
from darkplaces.
This is highly likely part of the solution:
Classic DarkPlaces does this in gl_rmain.c in R_GetCurrentTexture:
And DarkPlaces Beta has no equivalent code in R_GetCurrentTexture
VectorSet(t->dlightcolor, t->lightmapcolor[0] * t->lightmapcolor[3], t->lightmapcolor[1] * t->lightmapcolor[3], t->lightmapcolor[2] * t->lightmapcolor[3]);
colorscale = 2;
// q3bsp has no lightmap updates, so the lightstylevalue that
// would normally be baked into the lightmap must be
// applied to the color
// FIXME: r_glsl 1 rendering doesn't support overbright lightstyles with this (the default light style is not overbright)
if (model->type == mod_brushq3)
colorscale *= r_refdef.scene.rtlightstylevalue[0];
colorscale *= r_refdef.lightmapintensity;
VectorScale(t->lightmapcolor, r_refdef.scene.ambient, ambientcolor);
VectorScale(t->lightmapcolor, colorscale, t->lightmapcolor);
from darkplaces.
Related Issues (20)
- Is this a Darkplaces issue? WRATH crashes killing a specific enemy type HOT 2
- Quake Mods With quake.rc lacking "exec default.cfg" HOT 7
- modlist.txt looks for mods in c:\ on windows HOT 2
- makestatic on func_illusionary loses alpha
- Nehahra support is incomplete HOT 8
- Explosions leave scorch marks on water surfaces HOT 1
- Quake particle can be too small or big depending on distance
- Colour in screenshots are washed out and low contrast HOT 2
- particlefont.tga affects shape of Quake particles
- Remove Nexuiz-specific code and compile support HOT 1
- OBJ Support For MD3 Tags For Attachment Tutorial
- Improve sound/audio propagation and acoustics HOT 4
- Turning with the keys is too fast HOT 4
- ''cvar_set: variable campaign not found'' HOT 9
- Support more than just linear falloff attenuation on rtlights
- Option to restore old Darkplaces viewbob
- Can not see entities when outside the level
- New Immortal mod crashes to desktop with out of memory error HOT 1
- Allow texture variants without diffuse texture
- Explosions are missing default DarkPlaces particles HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkplaces.