Skip to content
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

Implement wonky walls like in DK2 #108

Open
ufdada opened this issue Nov 9, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@tonihele

This comment has been minimized.

Copy link
Owner

commented Nov 10, 2015

Terrain has wibble & lean values. Both vertical & horizontal which probably contribute on how much wonkyness is applied. Stone doesn't have much, but regular dirt is all over the place.

@belgianguy

This comment has been minimized.

Copy link
Contributor

commented Jan 9, 2017

I used to think that this article was referenced somewhere on this repository, but I can't find it, @(tonihele) also commented on it. As did Robin Green (Ex-Bullfrog). Knowing when to split or flip.

https://simonschreibt.de/gat/dungeon-keeper-2-walls/

Also interesting: http://www.cs.uu.nl/docs/vakken/gis/terrain.pdf, points 5.1 and 5.2 detail how one could model terrain using Delaunay and keep on injecting vertices and flipping of illegal edges until a set of error-margins are satisfied.

Here I thought maybe one could see the "top" of the undug ground as 1 in height and the "floor" where the creatures run on and where you build on as height 0.

frame_1_delay-0 5s

I would assume that assigning an "error" margin of 0.1 to the vertices that should be lowered (thus go from 1 (top) to 0(bottom)) and as long as the error margin is not satisfied, repeat the process with the worst offender and make sure the triangulation stays Delaunay.

I also think maybe by using a little random offset to these error-margins x and z values., the wibble and lean might be used to randomize the shapes.

Delaunay Triangulation Where To Start:
http://gamedev.stackexchange.com/questions/61424/delaunay-triangulation-where-to-start

Fast Delaunay in Java: https://www.duo.uio.no/bitstream/handle/10852/43535/delaunay_alg_performance.pdf?sequence=1

@tonihele

This comment has been minimized.

Copy link
Owner

commented May 4, 2019

Here is also a little something. Shader based wonkyness:
https://keeperklan.com/threads/7062-Warped-walls-recreation?p=55292#post55292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.