What is the future concept of terrains in hifi?


#1

I have found an interesting article to create a terrain with javascript.

http://www.playfuljs.com/realistic-terrain-in-130-lines/

Now my question is, which ways hifi will go, to deal with terrains?


#2

Hopefully vertex shaders and tesselation shaders.


#3

Ideally, there also needs to be a way to have caves and overhangs and such in the terrain system, too.


#4

We want infinite rolling terrain that is diggable. Have done a few earlier experiments, and feel like it is feasible. Older data type used a dual contour approach with voxels. Currently we have an integration of polyvox which can be used to make chunks of terrain with caves.


#5

@philip Sounds a lot like MineCraft…


#6

I never have done something with Polyvoxels. Now I sit here with my first Polyvoxel and until now I can’t imagine, how I could make a terrain from this. What I can do?


#7

You have to use the edit voxels script i think.


#8

Ok, so I have made my first voxels terrain.

No clue, how out of the voxels happens the terrain, but will look closer in this script voxels.js.


#9

so I have read some and gotten some ideas, how this finally could work:


#10

#11

What might be even better than HiFi adding terrains is HiFi adding plugin capability with plugins that can be added on the fly so developers can make their own terrain code.

*Edit: Looks like there’s already plugin capability. I wonder if that can be used for terrains :slight_smile: