aboutsummaryrefslogtreecommitdiff
path: root/src/camera.cpp
AgeCommit message (Collapse)Author
2017-01-23Zoom FOV: Reduce minimum zoom FOV to 7 degreesparamat
The default of 15 is unchanged. 7 degrees is x10 magnification which is common for binoculars. Alter hardcoded limits in camera.cpp: Minimum 7 degrees. Maximum 160 degrees to match upper limits in advanced settings.
2017-01-20Remove `mathconstants.h` and use the correct way to get `M_PI` in MSVC. (#5072)red-001
2017-01-09Environment & IGameDef code refactoring (#4985)Ner'zhul
* Environment code refactoring * Cleanup includes & class declarations in client & server environment to improve build speed * ServerEnvironment::m_gamedef is now a pointer to Server instead of IGameDef, permitting to cleanup many casts. * Cleanup IGameDef * Move ITextureSource* IGameDef::getTextureSource() to Client only. * Also move ITextureSource *IGameDef::tsrc() helper * drop getShaderSource, getSceneManager, getSoundManager & getCamera abstract call * drop unused emerge() call * cleanup server unused functions (mentionned before) * Drop one unused parameter from ContentFeatures::updateTextures * move checkLocalPrivilege to Client * Remove some unnecessary casts * create_formspec_menu: remove IWritableTextureSource pointer, as client already knows it * Fix some comments * Change required IGameDef to Server/Client pointers * Previous change that game.cpp sometimes calls functions with Client + InventoryManager + IGameDef in same functions but it's the same objects * Remove duplicate Client pointer in GUIFormSpecMenu::GUIFormSpecMenu * drop ClientMap::sectorWasDrawn which is unused
2016-11-30Optimize/adjust blocks/ActiveObjects sent at the server based on client ↵lhofhansl
settings. (#4811) Optimize/adjust blocks and active blocks sent at the server based on client settings.
2016-10-06Use relative position for nametagsSmallJoker
2016-08-26Camera: Higher frequency limit for view/hand bobbing and footstepsparamat
Rebased and tuned version of Calinou's original pull request. 'm_view_bobbing_speed' controls the frequency of view bobbing, hand bobbing and footsteps, it was limited to a maximum of 40 (walking frequency) so did not increase if player speed was modified by a 'speed buff', a sprinting mod or modified in .conf or advanced settngs. This commit raises the limit to 70 which is suitable for sprinting.
2016-08-10Zooming the camera requires the 'zoom' privilegeBen Deutsch
2016-08-10Add zoom, tweakable with zoom_fov, default key: Z (like optifine)Esteban I. Ruiz Moreno
2016-04-02Fix nametag hidingest31
Commit c3b279750ece0b5144bf8e973d55108347462223 "Move object nametags to camera" has added a regression to still display a shadow if their alpha got set to 0.
2016-02-21Camera: remove auto tune FPS, single view range settingRealBadAngel
2016-02-19Camera: Don't count camera offset twice for Nametagged CAOsRealBadAngel
2016-02-18Move object nametags to cameraRealBadAngel
2016-01-18Fix wield item glitchRealBadAngel
2015-10-31Fix clang warningShadowNinja
2015-10-14Rename macros with two leading underscoresShadowNinja
These names are reserved for the compiler/library implementations.
2015-07-21Add wielded (and CAOs) shaderRealBadAngel
2015-07-21Remove profiler.h include where it's not needed. Remove some unreachable and ↵Loic Blot
very old code
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-03-27Make camera clear error message if there's no errorShadowNinja
2015-03-27Change error_message from wstring to stringShadowNinja
This removes a lot of narrow/wide conversions where a wide string was never used.
2015-01-08Return step smoothing value to 23paramat
2014-12-12Allow footstep sounds to play for liquid and ladder nodes, making swimming ↵MirceaKitsune
and climbing sounds possible
2014-12-07Increase third person view distanceCalinou
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-07Fix regression (increase/decrease viewing range with +/- keys)Craig Robbins
2014-12-07Performance of main client loop up to 2x faster In places, up to 3 times fasterCraig Robbins
NOTE 1: This does not mean a 2x increase in framerate. Increase in fps may be up to 1-2fps NOTE 2: This local 'caching' of settings is not optimal and an alternative solution will be worked on after 0.4.11 is released
2014-11-26Increase step smoothing to fit 1:1 stairs (works well on slabs too)Calinou
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-08Implement WieldMeshSceneNode which improves wield mesh renderingKahrl
- Don't create and cache an extruded mesh for every (non-node) item. Instead use a single one per image resolution. - For cubic nodes reuse a single wield mesh too - Improve lighting of the wielded item - Increase far value of wield mesh scene camera, fixes #1770 - Also includes some minor refactorings of Camera and GenericCAO.
2014-05-18Add support for interlaced polarized 3d screenssapier
Add (experimental) support for topbottom as well as sidebyside 3d mode
2014-04-27Add support for dpi based HUD scalingsapier
Add support for (configurable) multiline hotbar Improved screensize handling Add userdefined gui scale by BlockMen
2014-04-15Fix all warnings reported by clangSfan5
2014-04-12Add player:set_eye_offset() by @MirceaKitsune and clean upBlockMen
2014-04-12Add third person viewBlockMen
2014-03-04Fix rendering glitches when far from the center of the mapNovatux
2013-08-03Fix and improve view range tunerPerttu Ahola
2013-05-21Fix disappearing of wielditemPilzAdam
2013-05-20Dont animate changing wielditem from hand to handPilzAdam
2013-05-20Add a little animation when changing the wielded itemPilzAdam
2013-05-18Fix math for isBlockInSight. Fixes #718 (client-side).Aaron Suen
2013-04-23Disable fall bobbing by default; enable using fall_bobbing_amount = 1.0Perttu Ahola
2013-04-11Swing the camera down when the player lands on the ground, based on the ↵MirceaKitsune
velocity the surface is hit with.
2013-04-07fix mesh leak in camera classsapier
2013-04-03Fix camera "jumping" when attached and the parent goes too fastZeg9
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2013-01-03Tilt camera on player damage (tweaked by PilzAdam)Jeija
2012-12-02Smooth day-night transitionsPerttu Ahola
2012-12-02Get rid of jordan4ibanez's insane digging animation speedPerttu Ahola
2012-12-02On-demand item meshes and texturesPerttu Ahola
2012-11-10Add jordan4ibanez' better digging animationPilzAdam
2012-07-21Define M_PI on MSVCPerttu Ahola