The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Procedural Generation (Voxels)
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#1
Procedural Generation (Voxels)

Hi all, I've been exploring and tinkering with HPL3's capabilities as far as things getting procedurally generated at runtime, and I think I've just about cracked how it works. So to demonstrate this, what better way than to build a miniature voxel engine?

[Image: rdxnJt0.jpg]

[Image: 3zxW806.jpg]

[Image: Ta00fgF.jpg]

In the above images, those aren't entities that have been pre-placed in the level editor and rearranged. The only things that exist in the level editor are the plane for the player to stand on (you can see it on the left there) and a technical entity used when creating the voxels. Everything else has been instantiated and added to the map purely from script.

So far, this is just generating the voxels for showing. It has to do it semi-intelligently, only generating the faces that are visible (touch the air) so as to not generate literally hundreds to possibly thousands more entities than is necessary. The voxels themselves can't be interacted with, but the hard part was generating them in the first place, so adding interaction would be as simple as adding relevant callbacks to the generated entities.

Now of course, while making a fully-fledged voxel engine would most definitely be possible within HPL3, but the main purpose of this exercise was to demonstrate that procedural generation is possible. Using this knowledge, it would be then possible to make maps that are procedurally generated, similar to games like Vanish or Dreadhalls.

And wouldn't that be cool?
04-16-2016, 09:12 AM
Find


Messages In This Thread
Procedural Generation (Voxels) - by Abion47 - 04-16-2016, 09:12 AM
RE: Procedural Generation (Voxels) - by Radiance - 04-16-2016, 11:45 AM
RE: Procedural Generation (Voxels) - by Abion47 - 04-16-2016, 11:55 AM
RE: Procedural Generation (Voxels) - by Radiance - 04-16-2016, 11:35 PM
RE: Procedural Generation (Voxels) - by Abion47 - 04-17-2016, 08:36 AM
RE: Procedural Generation (Voxels) - by pachi - 04-17-2016, 07:28 PM



Users browsing this thread: 1 Guest(s)