Comments (7)
—Files removed—
The 'Score' shows the current camera y position, just walk forward and you will notice what I mean :)
All required library's are in the 'libs' folder
Here are two photos showing the gap between the blocks that is probably responsible for this behavior (You need to set the TP height to '< 0' in GameManager to see this:
from blocks.
Found some settings that make it work way better, thanks man :)
from blocks.
Glad you got it working!
from blocks.
Can you create a test case or supply me with something more tangible to reproduce this behaviour?
from blocks.
I can send you my code If you want, as the physics and all that are important
from blocks.
Hi, I took a look at your code.
The gap you are describing between the blocks, is not really a gap. It are the different grass textures (normal mapping, steep parallax mapping) that make it look like it's a gap:
Notice the subtle line between the top texture and the side texture.
I'll create a better grass texture in the next release of Blocks. To fix this for now, you can pick a different texture and use this as the grass texture.
Concerning the head bobbing you encounter, this is actually an issue with the physics engine (bullet). The mesh that Blocks generate is smooth. You could try to change and tune some settings of bullet to counter this behaviour.
You can find documentation here and you can always check out the forum for help.
Try to enable the debug mode of bullet so you can see what's happening in the physics simulation.
I did notice that you are adding 100x100 blocks to the chunk, but the default chunk size is actual 32x32x32. That's why you are getting a lot of warnings like this when running the application:
WARNING: Block location (99, 0, 99) is outside of the chunk boundaries!
.
You should change the chunk size to 100x1x100: BlocksConfig.getInstance().setChunkSize(new Vec3i(100, 1, 100));
from blocks.
Hi, thanks for your support, Im new to JME so I don't know a lot about JBullet. I am nor really able to see how I can tweak some settings to make my game run smoother, even after having a look at the docs. I don't expect you to help me with any unrelated questions, so please feel free to close this :) But are there any alternatives to bullet then?
PS: I didn't know setting the chunk size would increase performance such a lot, thanks man!
from blocks.
Related Issues (20)
- Update AppSettings on examples
- Create a FluidFilterDebug state
- Chunk should have a public constructor so that it supports inheritance HOT 3
- Chunk.createNode() crashes with an internal error HOT 3
- What's the best way to store block states? HOT 2
- prioritize chunkmanager queue's
- BlocksConfig.setShapeRegistry() doesn't update the chunk mesh generator. [version 1.5.1] HOT 2
- All the blocks in a Chunk become the placed block HOT 2
- Add GSON support HOT 1
- Toon foam effect HOT 1
- Issue in class file, which is not present in github code. HOT 6
- Disable default blocks, shapes and types registeration HOT 5
- Both package services have shut down HOT 3
- Add debug grid
- Update wiki and jmonkey store
- Add cylinder block HOT 1
- Use Sio2 com.simsilica.thread.* classes for handling job work HOT 3
- Create liquid implementation
- Sub-blocks / Micro-blocks HOT 3
- getChunk method HOT 2
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 blocks.