You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WoP's sky lens flare requires two keys in the world spawn of a map (skylensflare and skylensflare_dir) to define the lensflare script and the position according to the cartesian XYZ coordinate system (cg_printDir is helpful), while the sunrays feature takes the position from the skybox shaders q3map_sun, q3map_sunExt (opengl1 shader files) or q3gl2_sun (opengl2 mtr files), which provide polar coordinates here. You could convert them to each other with some math, but mappers usually don't do that and find the “correct” position for the skybox sun by trial and error, so it's an estimate. This usually results in the sky lens flare spot and the sun ray sun spot not being exactly the same. This discrepancy is usually visible when r_drawSunRays is activated.
Possible solution:
Change WoP's sky lens flare feature to ignore the coordinates from the skylensflare_dir key in the world spawn and use the skybox shader sun coordinates instead. Choose q3gl2_sun (mtr files) over q3map_sunExt over q3map_sun (shader files) when searching for the coordinates.
Note: We cannot completely omit the skylensflare key in the world spawn, because all skyboxes with a q3map_sun or so would directly activate the sky lens flare, even for maps that don't want it. skylensflare defines the desired skylensflare script.
The text was updated successfully, but these errors were encountered:
kai-li-wop
changed the title
WoP's sky lens flare interferes with artifical sun created with opengl2 sunrays function
WoP's sky lens flare should read the sun coordinates from the q3map_sun key of the skybox shader
Aug 28, 2024
kai-li-wop
changed the title
WoP's sky lens flare should read the sun coordinates from the q3map_sun key of the skybox shader
WoP's sky lens flare should read the sun coordinates from the q3map_sun key of the skybox shader to avoid mismatch with sun rays feature
Aug 28, 2024
kai-li-wop
changed the title
WoP's sky lens flare should read the sun coordinates from the q3map_sun key of the skybox shader to avoid mismatch with sun rays feature
WoP's sky lens flare should read the sun coordinates from the q3map_sun key of the skybox shader to avoid mismatch with opengl2 sun rays feature
Aug 28, 2024
WoP's sky lens flare requires two keys in the world spawn of a map (
skylensflare
andskylensflare_dir
) to define the lensflare script and the position according to the cartesian XYZ coordinate system (cg_printDir
is helpful), while the sunrays feature takes the position from the skybox shaders q3map_sun, q3map_sunExt (opengl1 shader files) or q3gl2_sun (opengl2 mtr files), which provide polar coordinates here. You could convert them to each other with some math, but mappers usually don't do that and find the “correct” position for the skybox sun by trial and error, so it's an estimate. This usually results in the sky lens flare spot and the sun ray sun spot not being exactly the same. This discrepancy is usually visible whenr_drawSunRays
is activated.Possible solution:
Change WoP's sky lens flare feature to ignore the coordinates from the
skylensflare_dir
key in the world spawn and use the skybox shader sun coordinates instead. Choose q3gl2_sun (mtr files) over q3map_sunExt over q3map_sun (shader files) when searching for the coordinates.Note: We cannot completely omit the
skylensflare
key in the world spawn, because all skyboxes with a q3map_sun or so would directly activate the sky lens flare, even for maps that don't want it.skylensflare
defines the desired skylensflare script.The text was updated successfully, but these errors were encountered: