Disabling of the voxel Grid, Help me!!

Jul 14, 2012 at 5:33 AM

hello everyone, first wanted to talk, I'm brazilian and sorry for any mistake in writing. :).My doubts would be as follows, as I can disable the grid in the game, I took a print to explain better.
 

link: http://imageshack.us/photo/my-images/20/gridx.png/

It is possible to also reduce the size of the blocks? if possible what should I do?

I really liked their work in xna!!

Coordinator
Aug 2, 2012 at 10:17 PM

Hi,

I have to admit i really don't know what is causing the grid in the image you posted - it looks like it may be a precision issue with your graphics card. The only thing i can suggest is perhaps playing around with the graphics settings a bit - change the resolution or disable antialiasing etc to see if any of them have any effect.

You can effectively reduce the size of the blocks simply by moving the camera further away. ie - at present the blocks are 1m x 1m so the camera eye level is 1.7m above the ground to simulate the height of an average person. If you place the camera 8.5m above the ground then the blocks will appear to have an effective size of around 0.2m x 0.2m. 

eg. http://www.youtube.com/watch?v=n_M9JI8htJ4 this is a very similar engine to techcraft but with the camera placed much further away even though the cubes are still 1unit x 1unit they appear to be much smaller.

Aug 13, 2012 at 7:02 PM

Thanks bamyazi, your help very, solved the problem was the video card. Sorry for not having responded :D

Aug 13, 2012 at 9:04 PM

you give-me example of code of the camera?

 

Coordinator
Aug 15, 2012 at 1:33 AM

I'm afraid with engine as it stands it's not that simple - the position of the camera is set in the playercontroller (i think i don't have the code to hand) and you can just add a Y offset to the camera position to move it - BUT the rest of the engine is designed in such a way that it expects the camera to be where it is so if you do this that the camera will move through the terrain or you'll jump and your head will move into blocks etc so there is a LOT of work to do and there are various places in the code i've done evil things like using hard coded values for positions which means that you'll basically have to plough through the code and hunt for them.