30 Commits

Author SHA1 Message Date
b6dd925c60 Tweaked dirt and stone textures 2020-12-22 20:23:11 +03:00
WarDref
fc48928c66 Changed textures to 24x24 2020-12-20 18:46:31 +03:00
cd6e6d7d9c Texture coords are now precomputed in VBOs
Also optimized GLSL code and started using LOC in RenderPrograms
2020-12-18 00:30:22 +03:00
44de6a86f7 Dumped server ticking code into the Mariana Trench and rewritten it
No regrets.

- Pretty much everything related to ticking changed
- Ticking is now capable of running in parallel (other code - not so
much)
- Implemented world updates
- Broke some stuff
2020-11-27 00:56:56 +03:00
2fbb274c31 Fixed AL close action
Added a test for the Audio Engine
Refactored Audio Engine
2020-11-22 14:44:19 +03:00
104d64ff9a Merge branch 'master' into audio 2020-11-22 14:34:03 +03:00
ccda1eff74 Merge remote-tracking branch 'origin/master' into crashreports 2020-11-15 22:41:57 +03:00
f2e28161a8 Added human player model
- Extracted NPedModel out of QuadripedModel
  - Both are now configurable
- Added HumanoidModel
- Added human model
- Changed NPedModel animation logic
- Added a few skins including first sketch of Pyotr by WarDreg
- Decreased walking speed
2020-11-15 20:58:17 +03:00
384b2047ac Init crash reports 2020-11-02 16:30:14 +03:00
437566283c Merge remote-tracking branch 'origin/master' into audio
# Conflicts:
#	src/main/java/ru/windcorp/progressia/client/ProgressiaClientMain.java
2020-09-20 13:00:14 +03:00
aec9301b6b Structured OpenAl
- Now it is possible to:
 - read files as mono or stereo
 - create and play more than one sound
2020-09-20 11:31:15 +03:00
9dc3154874 Added entities
- Added EntityData, EntityRender and EntityLogic
  - Added QuadripedModel
- Added ComplexTexture to simplify syntax when working with complex
models
- Added the most adorable creature in the universe (as a test feature)
- Camera is now 3rd person (temporary)
  - Direction can now be switched with F5
2020-09-04 21:54:55 +03:00
dc74a419c9 Added logger 2020-09-03 23:40:28 +03:00
ab4888e592 working on audio 2020-08-31 19:59:06 +03:00
5fcccf05ca Added localization support 2020-08-28 21:54:53 +03:00
79c7aa91f8 Optimized tile render and added CRO tile support
- CROs now support tiles
  - CROCube refactored
- Test content:
  - Added sand and flower tiles
  - Removed grass blocks, added grass tiles
2020-08-27 20:58:27 +03:00
60fbfa9578 Added tiles. Not yet optimized. 2020-08-27 00:24:11 +03:00
a9896fa3e1 Refactored CROs and CROCube, Faces.createBlockFace and Camera
- Multiple ChunkRenderOptimizers can now optimize one block if desired
  - CROs require that an interface is implemented, not class extended
- ChunkRenderOptimizerCube has been refactored:
  - Blocks that a not opaque are now optimized
  - Blocks have per-face opacity
  - Blocks can render inner faces
    - Example: test glass
  - Code is now readable
- Faces was rewritten to support flipping
  - .createBlockFace is now readable
- Camera now manipulates coordinate systems in a more obvious way
  - Camera now uses world coordinate system
    - Z is up
    - Yaw 0 looks to the North (+X)
    - Positive pitch is up
  - Improved control code readability somewhat
  - Fixed test UI compass
2020-08-26 01:34:32 +03:00
e1ce8c2e09 Added GNU Unifont typeface, optimized TextureDataEditor greatly
- Added GNU Unifont support
- TextureDataEditor no longer uses AWT internally
  - Optimized Atlases slightly
- SpriteTypeface adds spacing between lines
- Removed TestTypeface
2020-08-17 22:22:13 +03:00
0e99685583 Added test text rendering
- Added Typeface
- Added Font (Typeface + style)
- Added Label to display text in GUI
- Added Panels to quickly group Components
- Added a test font
  - Ignores all parameters but text itself
  - Only ABCD are supported (no whitespace)
2020-08-16 08:31:06 +04:00
6d2adb0f31 Refactored texture loading system to allow runtime editing and atlases
- Removed TextureManager, use TextureLoader instead
  - Removed PngLoader, AWT image compat moved to TextureUtils
- Pixels renamed to TextureData
- Added TextureDataEditor for runtime editing of TextureData
- Added SimpleTextures to load random, one-off textures
- Added Atlases to load textures into runtime-compiled atlases
  - BlockRenders now contains a method to load a block texture properly
- Moved block textures into assets/textures/blocks/
2020-08-15 22:15:26 +04:00
45b0ad2888 Switched back to GLSL 1.20 because my laptop is a brick 2020-08-09 11:40:41 +03:00
7dee1eb95f Re-written flat render pipeline to support transforms
FlatRender now supports arbitrary transforms
GLSL 1.40 is now used in shaders
2020-08-03 21:44:36 +03:00
1ed8f93af4 Added GUI render and support for faces without textures
- Added FlatRenderProgram to render 2D graphics
  - Can be used as-is
  - Supports rectangular coordinate-aligned nested masks
- Added AssembledFlatLayer to cache 2D graphics
  - Use RenderTarget for add elements during reassembly
- ShapeRenderProgram now allows null textures (defaults to white BG)
- Sprite now deduces size based on primitive's content size
  - unless given size explicitly
- ShapeRenderHelper.*WorldTransform methods renamed to .*Transform
2020-08-01 16:23:31 +03:00
8aa0bb8aa0 Refactored ShapeRenderProgram into SRP and WorldRenderProgram
- ShapeRP now handles positions, textures and color multipliers only,
normals, view transforms and light calculations are now in WorldRP
- Renamed WorldRenderer to ShapeRenderHelper
- Moved normal computation to WorldRP code from Face
- No default ShapeRP exists, methods in Faces and Shapes now explicitly
require a program
- Removed unnecessary glBind from texture loader
- Refactored and renamed GLSL code
- Added a view bobbing test, enable with I_WANT_TO_THROW_UP in
LayerWorld
2020-08-01 00:24:38 +03:00
WarDref
3e0f17c959
Update textures grass_bottom 2020-07-29 16:44:41 +03:00
WarDref
9372ad5ce2
changed texture grass
changed block texture grass_side and block texture grass_side
2020-07-29 16:25:06 +03:00
WarDref
5040101edd
Update block texture grass_side 2020-07-29 15:57:34 +03:00
9d36b86d10 Fixed Shape.fragment.glsl 2020-07-29 15:12:34 +03:00
e96a30c275 Initial commit 2020-07-29 12:30:34 +03:00