[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-708003-105":59,"doc-detail-708003-en":130,"doc-similar-708003":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","fundamentals-of-terrain-generation-terrain-generation-algorithms","Fundamentals of Terrain Generation - Terrain Generation Algorithms","","Fundamentals of Terrain Generation explains why procedural terrain matters for games and applications that need natural, continuous landscapes while remaining random. It reviews representative case studies, including side-view infinite worlds, cave-like grid systems, map-editing world builders, and 3D biome-based terrain. The document then surveys core algorithms for heightmaps, caves, biomes, and smooth noise—covering 1D hill methods, midpoint displacement, cellular automata, Voronoi/Worley, diamond square, and Perlin/Simplex, with an example cave rule set.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/fundamentals-of-terrain-generation-terrain-generation-algorithms/708003/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/fundamentals-of-terrain-generation-terrain-generation-algorithms/708003.png","ImageObject",300,407,{"name":92,"@type":93},"Aria Callaghan","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-21","2026-11-15",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why is terrain generation useful for games and applications?","Question",{"text":112,"@type":113},"It creates natural-looking terrain—such as caves, hills, rivers, and biomes—with smooth, continuous feel while still being random. This works for side-view games, cave-based games, biome variety, map editing, and 2.5D/3D worlds.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does a procedural-generation approach differ from generating the entire world at load time?",{"text":117,"@type":113},"Procedural-generation algorithms create terrain as the player moves along it instead of generating everything immediately. This supports generating new parts of the world on demand and ensures continuity at boundaries.",{"name":119,"@type":110,"acceptedAnswer":120},"What is an example method for generating cave structures using cellular automata?",{"text":121,"@type":113},"Start with a random grid where cells are walls or passages, then repeatedly apply rules based on neighbor counts. In the provided example, passages with enough passage neighbors stay passages, and walls with enough passage neighbors become passages, repeated several times to form organic caves.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},708003,1794707337,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},962084926284,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Fundamentals of Terrain Generation  \n1. Why use terrain generation?  \nTerrain generation is useful for games/applications where you want natural looking terrain (caves, hills, rivers, biomes, etc.) that has a smooth/continuous feel, but is also random.  \n• Side-view games with linear terrain (Line Rider, Hermit)  \n• Games with caves (Stardew Valley, Terraria)  \n• Games with different types of terrain in “biomes”  \n• Map creating/editing applications  \n• 2.5D or 3D graphics games (Minecraft)  \n2. Case Study: Hermit  \nHermit is a 15-112 Term Project from a few years back that had an infinite procedurally-generated world. The world is a side-view, and the terrain is generated forever in a single direction. For this type of terrain, various algorithms can generate height values for each x-coordinate. Procedural-generation algorithms are ones that generate the terrain as the player moves along it, rather than generating the entire terrain the moment the game loads.  \n3. Case Study: Terraria  \nTerraria is one of many games that has cave-like terrain structures from a side view or birds-eye view. In these kinds of games, a grid can be generated indicating whether each cell is stone or air. The goal of such algorithms is to make the grid randomly shaped, yet still feel continuous and curved like a natural cave structure.  \n4. Case Study: WorldAnvil  \nWorldAnvil is a world building application that includes a map creating/editing mode. Its possible to create a term project that also centers on a map building/editing application. Parts of it could be centered on the user drawing the terrain themselves, but parts of it could involve tools to randomly generate parts of the map. This could involve algorithms to generate biomes, features of the terrain, and the shape of the continent.  \n5. Case Study: Minecraft  \nMinecraft is a 3D graphics game that has many kinds of terrain generation. There are different biomes which are laid out in random configurations (jungles, deserts, mesas, oceans, plains, mushroom forests, mountains, etc.), underground caves/ravines, and above ground hills/rivers/plains. Each of those can be handled with a different algorithm (i.e. one for biomes, one for underground caves, one for above ground terrain-height) .  \n6. Algorithms: (or at least, a subset of them)  \n1D Hill Generation:  \nA simple algorithm is to generate a bunch of random sinusodal functions in order to control the elevation of a hill. Another algorithm that is great for generating this kind of terrain is called midpoint displacement. It works by starting with random values at two points, calculating their average at their midpoint, adding some random noise, then repeating recursively for the midpoints between the starting points and the midpoint.  \nCellular Automata Cave Generation:  \nThe cellular automata approach is based on the idea of starting with a random grid of 0s (walls) and 1s (passages) then repeatedly applying a simple set of rules to each cell to obtain a new grid, repeating the process several times. These rules are often something like “If the cell is currently a passage, and if at least 6 of its neighbors are walls, then the cell will become a wall”.  \nVoronoi Noise Biome Generation:  \nVoronoi Noise (aka Worley Noise) is based on randomly placing a bunch of “seeds” in the grid, each of which has a randomly chosen biome. Then, the biome of each cell in the grid is based on the closest seed.  \nDiamond Square Algorithm:  \nThe Diamond Square algorithm generates terrain (i.e. hills) with a fractal approach. It starts with some random values that are spaced appart, then calculates the noise values in between by taking averages and adding some noise. The process is repeated many times until every cell has a noise value.  \nPerlin Noise Terrain Generation: (VERY HARD)  \nPerlin Noise is a complex algorithm for generating random terrain that is still smooth / continuous. Its quite difficult to get working, but the results are stunning. The best p","cbCaijZiUNgYWpcx","https://ap.wps.com/l/cbCaijZiUNgYWpcx","pdf",7065650,"English","# Why use terrain generation?\n# Case Study: Hermit\n# Case Study: Terraria\n# Case Study: WorldAnvil\n# Case Study: Minecraft\n# Algorithms\n## 1D Hill Generation\n## Cellular Automata Cave Generation\n## Voronoi Noise Biome Generation\n## Diamond Square Algorithm\n## Perlin Noise Terrain Generation\n## Simplex Noise Terrain Generation\n# Example: Cellular Automata Cave Generation\n## Rule example\n## Post-processing ideas","[{\"question\":\"Why is terrain generation useful for games and applications?\",\"answer\":\"It creates natural-looking terrain—such as caves, hills, rivers, and biomes—with smooth, continuous feel while still being random. This works for side-view games, cave-based games, biome variety, map editing, and 2.5D/3D worlds.\"},{\"question\":\"How does a procedural-generation approach differ from generating the entire world at load time?\",\"answer\":\"Procedural-generation algorithms create terrain as the player moves along it instead of generating everything immediately. This supports generating new parts of the world on demand and ensures continuity at boundaries.\"},{\"question\":\"What is an example method for generating cave structures using cellular automata?\",\"answer\":\"Start with a random grid where cells are walls or passages, then repeatedly apply rules based on neighbor counts. In the provided example, passages with enough passage neighbors stay passages, and walls with enough passage neighbors become passages, repeated several times to form organic caves.\"}]","Fundamentals of Terrain Generation - Terrain Generation Algorithms | PDF",18,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/975081525f345a8ff286752f8a7af53b.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/7119c4934f08319856256cef7c3c316f.webp",982,1388,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/7cf6957f51446c5104d8dd247499daed.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/61733d938daf34bced17aefa751e89aa.webp",980,1385,{"list":162,"token":66},[163,170,177,184,191,198,205,212,219,225],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":30,"create_tm":169},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=mTQm1sZLmvZEyGwNMGfO2%2F73Mag%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",947,1785472614,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":30,"create_tm":176},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=nJNvaEfgbtSTUp4nwBW7h9OjmUQ%3D","xnx-universal-transmitter-installation-manual",865,1776135954,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":30,"create_tm":183},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=MaO3Z27SwAexf9Fv1a%2BpanP%2FN74%3D","the-candlestick-trading-bible-trading-guide",819,1789767270,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":30,"create_tm":190},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=ijlBXllVRyJTq8NU9Wua2aoEKDQ%3D","free-fire-proxy-server",570,1776135932,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":30,"create_tm":197},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=zA2mJ5R3kNouJiOJ%2BQXuRNUyDM0%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",500,1786012506,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":30,"create_tm":204},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=SJ8X3Ug0b4npNR3GPkBdTBGKXdc%3D","tiktok-content-tricks-from-0-to-fyp",496,1776338393,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"create_tm":211},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=wxmwN695%2FtPmc7wZllyBfgQcfek%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",462,1790287169,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":30,"create_tm":218},238737,"Spectrum Channel List 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229894154298/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=H4GB%2B1zBA51Gh83d3QGmxt%2FtmG0%3D","spectrum-channel-list-2026",452,1789139284,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":217,"category_name":30,"create_tm":224},14249,"EW 101: A First Course in Electronic Warfare","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229699258216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=r0934j3F7pJ6EMead0244%2FB2U7g%3D","ew-101-a-first-course-in-electronic-warfare",1776558348,{"doc_id":8,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":30,"create_tm":230},"WPS Office PDF Quick Start Guide: AI-Powered","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229689306536/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796217959&Signature=NK4mw5BUpLaILbG4K%2FsyJq%2Bs9vQ%3D","wps-office-pdf-quick-start-guide-ai-powered",372,1775804569]