Rasmus Brönnegård
3478ee322b
goto: Find a more exact end of path wrt goalRadius
...
The last segment of the path is shortened to avoid going too close
and risk bumping into the object that it was meant to approach.
The same position could also be found by finding the roots of a second
order polynomial analytically but this solution is simple and sufficient.
2022-02-15 22:46:30 +01:00
Evgeny Pestov
550d0f915b
Use std::out_of_range in Utf8CharSizeAt
2022-02-14 18:33:41 +07:00
Evgeny Pestov
d9e26c2516
Use std::invalid_argument in Utf8CharSizeAt
2022-02-14 18:23:44 +07:00
Evgeny Pestov
4bce63e38d
Use 0b instead of 0x and check 1-byte prefix first in Utf8CharSizeAt
...
1-byte symbols is more common then 4-bytes symbols.
So checking 1-byte prefix first is more efficient.
2022-02-14 18:09:08 +07:00
Evgeny Pestov
ec8a09e4a9
Merge commit '3405c03' into fix/editor-input-utf8
2022-02-14 17:57:30 +07:00
Evgeny Pestov
05b68a4b80
Refactor: Create function isUtf8ContinuationByte
2022-02-14 17:56:34 +07:00
Tomasz Kapuściński
c378009128
Feature-breaking refactors
...
* Partially filled Material structure, currently only base attributes
* Removed recoloring of textures and team variants
* Removed one base object tier in engine structures
* Removed EngineRenderState
* Rewritten some code to better coding style
2022-02-13 00:03:46 +01:00
Rasmus Brönnegård
2d794d1a32
goto: Handle oversized costs with a special bucket
...
This is a bit redundant because the current usage of goto
does not trigger it. It can be triggered by:
* increasing goalRadius
* decreasing NUMQUEUEBUCKETS
* decreasing BM_DIM_STEP
* increasing edge costs
2022-02-12 23:35:58 +01:00
Rasmus Brönnegård
e38835cfd4
goto with A-star (with bucket queue)
2022-02-12 23:35:58 +01:00
tomangelo2
e3ba1a1840
Fix compilation errors on MacOS
2022-02-10 19:46:50 +01:00
tomangelo2
08f6c32551
Update Homebrew installation command
2022-02-09 20:43:35 +01:00
Rasmus Brönnegård
2b8d580355
goto with Dial's algo (Dijkstra's + bucket sort)
2022-02-08 21:14:17 +01:00
Rasmus Brönnegård
ee390bc270
LoadFinishedLevels if needed in LoadScene
2022-02-08 20:02:56 +01:00
Rasmus Brönnegård
14e7cd0e52
Rename loadgame to loadsave
2022-02-08 14:17:11 +01:00
tomangelo
6d8a52eb15
Merge pull request #1458 from lolbot-iichan/produce_teams
...
Add optional team parameter to produce() function
2022-02-07 16:34:19 +01:00
tomangelo
951db17d53
Merge pull request #1488 from colobot/dev-refactor-fonts-cache
...
Refactor fonts reloading
2022-02-07 15:24:10 +01:00
Tomasz Kapuściński
0d612b9928
Optimized text rendering
2022-02-05 21:07:25 +01:00
Tomasz Kapuściński
aacc2d0596
Moved non-CRenderer-specific functionality back to CDevice and refactored some of the state change methods
...
Rewritten control rendering code to use improved way of sending geometry to GPU memory
2022-02-05 19:07:46 +01:00
Tomasz Kapuściński
074706e7ec
Removed Vertex and VertexCol structures
2022-02-04 01:22:27 +01:00
Tomasz Kapuściński
1631b9587f
Removed all DrawPrimitive*() methods from CDevice
2022-02-04 01:06:37 +01:00
Tomasz Kapuściński
750a470b9a
Minor color refactors, added DrawPrimitives, rewritten remaining effect rendering
2022-02-04 01:00:18 +01:00
Tomasz Kapuściński
37bdc8665f
Removed remaining rendering code from CGL33Device and fixed some issues
2022-02-03 20:53:53 +01:00
Tomasz Kapuściński
cbf661f69f
Disabled tests for light manager as it needs future refactoring
2022-02-03 19:35:30 +01:00
Tomasz Kapuściński
d16144eee4
Added missing include and removed debugging calls
2022-02-03 18:55:46 +01:00
Tomasz Kapuściński
1a190b7f6f
Partial refactor of UI rendering to improve performance and fix transparency issues
...
Disabled rendering via CDevice
2022-02-03 18:40:58 +01:00
Rasmus Brönnegård
a7b294025e
Rename BeamSearch to PathFindingSearch etc
2022-02-02 20:26:05 +01:00
Rasmus Brönnegård
e2d4dd6995
Use ray tracing algorithm in BitmapTestLine
2022-02-02 20:26:05 +01:00
Rasmus Brönnegård
d9f3078396
Replace beam search with breadth-first search
2022-02-02 20:26:05 +01:00
Tomasz Kapuściński
0908e10ff6
Removed material, lighting, fog and shadowing code from CDevice
2022-02-02 19:09:38 +01:00
Tomasz Kapuściński
7d9badb542
Added UV transform and rewritten animated texture mapping code to use it
2022-02-02 18:13:21 +01:00
Tomasz Kapuściński
3bd4fee844
Merge branch 'dev' into dev-graphics-overhaul
...
# Conflicts:
# src/graphics/engine/camera.cpp
# src/object/auto/autonuclearplant.cpp
# src/object/auto/autopowerplant.cpp
# src/object/interface/powered_object.h
# src/object/motion/motionvehicle.cpp
# src/object/old_object.cpp
# src/object/old_object.h
# src/object/task/taskmanip.cpp
# src/object/task/taskmanip.h
# src/object/task/tasktake.cpp
2022-02-02 18:11:06 +01:00
tomangelo
3405c038c9
Merge pull request #1495 from rasmusgo/numpad
...
Add workaround for numpad home/end keys etc
2022-02-02 16:45:14 +01:00
Rasmus Brönnegård
3400a0fab0
Add -loadgame argument to load game on start
2022-02-02 11:01:57 +01:00
Emxx52
85dc3f68e7
Merge pull request #1497 from colobot/dev-fix-recharging
...
Fix assert fail after PR#1444
2022-01-30 21:21:16 +01:00
tomangelo2
eff8e885d5
Fix assert fail after PR#1444
2022-01-30 20:40:04 +01:00
tomangelo
cbc07c04a5
Merge pull request #1444 from immibis/slotted-object
...
Slotted object interface
2022-01-29 17:20:36 +01:00
tomangelo2
0003494c9e
Merge PR #1444
2022-01-29 17:16:57 +01:00
Tomasz Kapuściński
741d5c75ba
Refactored shadow framebuffer creation and binding
2022-01-24 23:16:22 +01:00
Tomasz Kapuściński
2ff722eee6
Refactored or removed some of the unused CDevice features
2022-01-24 22:29:39 +01:00
Tomasz Kapuściński
39b6621463
Renamed transparency to ghost mode
2022-01-24 21:57:56 +01:00
Tomasz Kapuściński
9a07c1d858
Refactored background, cloud and planet rendering, fixed shadow settings
2022-01-24 21:50:45 +01:00
Rasmus Brönnegård
19ae57c9ad
Fix spelling of appearance
2022-01-24 19:56:47 +01:00
Rasmus Brönnegård
6e0207ca5e
Fix spelling in app and main
2022-01-24 19:47:07 +01:00
Rasmus Brönnegård
be8d37241a
Add workaround for numpad home/end keys etc
2022-01-23 13:16:13 +01:00
Tomasz Kapuściński
e76c00c7f4
Fixed the Z coordinate not working in particle renderer
2022-01-22 01:50:10 +01:00
Tomasz Kapuściński
cba70fc912
Added DrawPrimitive() to CObjectRenderer and used it for rendering water
2022-01-22 00:57:00 +01:00
Tomasz Kapuściński
048393f448
Added CParticleRenderer and reimplemented particle rendering code to use it
2022-01-20 21:38:58 +01:00
Tomasz Kapuściński
710f448477
Partially fixed rendering of models in front of the interface (e.g. profile screen)
2022-01-19 23:14:03 +01:00
Tomasz Kapuściński
367dab9c5a
Cleanup in vertex structures
2022-01-19 22:22:59 +01:00
Tomasz Kapuściński
c280924c0e
Removed Gfx::VertexTex2
2022-01-19 21:33:53 +01:00