-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invisible chunks #2
Comments
I was having the same problem, found that it was a problem with the air block, you might need to set its renderfaces to true. |
Got the same problem! i dont really understand what you mean with the 'air' block...would you mind explaining how you fixed this?...if you did that is
|
you need a air block in id 0 marked as transparent and not solid, i mean the array of blocks need a value of air in this case was to be 0 |
Air blocks don't exist as of episode 4 but yours works just fine. Just like iggy12345 up at the top, I cloned the files but the chunks are still invisible. I went through every single line of code but it still is buggy. Any ideas? Also, I tried putting an air block in slot 0 with solidity off and it still didn't work. |
If anyone is still having this problem, you need to change this bit of code to fix it:
|
I have the same problem even using this solution. bool CheckVoxel(Vector3 pos) {
...
if (!IsVoxelInChunk(x, y, z))
// return world.blocktypes[world.GetVoxel(pos + position)].isSolid;
return false;
...
} |
Love your tutorial, but I'm struggling to get my voxels to appear, I'm on part 4 right now, my textures seemed to work okay for part 3, but now nothing shows up, I cloned the repository, and it appears this is a bug with the source scripts and I don't know how to fix it. If all of the blocks are the same type it runs fine, but when I fill the materials list with the 12 blocks on the texture sheet, everything disappears, but no errors are thrown.
I have the textures set up as follows
Size: 12
Everything is solid
Stone:
0,0,0,0,0,0
Dirt:
1,1,1,1,1,1
Grass:
2,2,7,1,2,2
Coal:
3,3,3,3,3,3
Planks:
4,4,4,4,4,4
Log:
5,5,6,6,5,5
Cobble:
8,8,8,8,8,8
Bedrock:
9,9,9,9,9,9
Sand:
10,10,10,10,10,10
Brick:
11,11,11,11,11,11
Furnace:
13,12,15,15,13,13
Lit Furnace:
13,14,15,15,13,13
I'm using the source scripts straight from part 4, I went back and swapped my code out for the original and the problem persists.
This is what it looks like when I hit play:
The text was updated successfully, but these errors were encountered: