Comments (7)
I'm not sure how to replicate the flashlight and sky light updates, since I've never done blueprint replication. That should be relatively easy, though.
Replicating the bricks is more complicated:
- You'd likely want to compress the data before replication, as it's currently quite large. Simple run-length-encoding would get you a lot, as well as only sending as many bits as are needed for the number of materials. Using Morton order for the bricks would probably give the RLE more leverage, though it might be more complexity than it's worth.
- You'd need to have some logic similar to how the BrickGridComponent shows BrickRenderComponents within some radius, but instead of showing BrickRenderComponents, it would be replicating nearby regions to clients.
- You'd also want to distinguish between replicating a whole region when a client first sees it, and replicating a smaller chunk when it's modified by some other player.
- Finally, you need a way to simulate brick changes locally, so that when a player places/destroys bricks it doesn't have to wait for a round trip to the server before displaying the result.
from brickgame.
I already did flashlight and sun, but the brick stuff is too complicated for me I think, as it uses C++ (at least I think so) and I'm not really familiar with this topic. I thought so:
Every client has its own brick grid, and if somebody places a block, that will be replicated to all clients and there will be a block placed aswell, but I don't know how this will work.. If that's much C++ stuff, could you help me a bit with those compressing / decompressing?
from brickgame.
For networking, you may wanna use Raknet(just a suggestion xD).
from brickgame.
I had a look in RakNet and it's a nice library, but in which points is this better than the standard Unreal networking features it alrwady has?
from brickgame.
I prefer 3rd-party libraries because they are more customizable. xD
from brickgame.
I see they have replication of actors.. Is it hard to make it compatible to UE4? They have a link in their Readme.md about Unreal, but I can't access UDN..
from brickgame.
@iUltimateLP Since UE is using C++ so technically you can integrate anything into it. xD
from brickgame.
Related Issues (20)
- UnrealEngine 4.10.3 HOT 18
- Water Simulation? HOT 115
- Scheidecker's pull request with Epic HOT 4
- Support for navigation mesh HOT 3
- Graphic card gets really loud on latest commit?
- Emissive glow bock doesn't light up shadows? HOT 5
- Support for complexe shape HOT 70
- Faster compile time HOT 3
- About adding a water material HOT 1
- How to add AO when using different vertex struct
- Linux support? HOT 1
- About recompiling the plugin
- Random buffer overruns HOT 1
- Current Unreal branch?
- Crash on UE_4.15 OSX HOT 7
- About using less vertices
- Using with NavMesh volumes for IA.
- Issue Cannot Build Game HOT 19
- "GetStaticBatchElementShadowVisibility()" removed at engine 4.17 update
- Build Instructions 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 brickgame.