Chapter 26: Procedural Asset Test
Chapter 26 - 26: Procedural Asset TestRichard sat hunched over his keyboard, eyes locked on his screen, his hands moving as if possessed. For hours, he wrestled with shaders, trying to get them to compile without errors.
Red text flooded his console.
"Vertex attributes, uniform variables, texture samplers... every single declaration has to be precise." He gritted his teeth. "One mistake, and the whole rendering pipeline collapses."
Every bug he fixed led to another. Missing semicolons, incorrect variable types, precision mismatches between vertex and fragment shaders—it was a delicate balancing act.
Finally, after what felt like an eternity, the shaders compiled without a single error.
Richard leaned back, exhaling. One hurdle down.
Now came textures.
He opened a new file and started defining the CreateTexture() method.
"Loading images, creating texture objects, setting texture parameters... it's about getting pixels from the disk to the GPU."
But OpenGL was unforgiving.
3 Days later.
Artifacts appeared—textures stretching in weird ways, colors mismatched, weird shimmering effects.
"Texture filtering, mipmapping, texture wrapping... OpenGL gives you a million ways to sample textures, and every choice affects performance."
Some settings made textures crisp, others blurred them into mush. Some choices caused flickering, others ate up memory.
Richard tested, tweaked, recompiled—over and over.
Then, on the third night, it finally clicked.
The game world now had flawless textures, detailed and sharp, without a single artifact.
Richard barely had time to celebrate before moving onto the next challenge: the render loop.
"Clearing the screen, setting up the viewport, binding buffers, binding shaders, binding textures, drawing primitives... it's a complex sequence of operations."
He defined the Render() method, carefully organizing every step. Each function had to work together seamlessly.
But the performance was rough. Too many draw calls, too many state changes.
Richard clenched his fists. "I need to optimize this."
Another day passed—this time, focusing on minimizing overhead.
Instanced rendering—to draw multiple objects efficiently.
Indirect rendering—to reduce CPU-GPU interaction.
Multi-draw indirect—for handling large numbers of objects in a single call.
Each method came with its own quirks and complications. But Richard adapted.
By the end of five days, the rendering pipeline was stable, efficient, and ready for more complex features.
He leaned back in his chair, rubbing his temples. His gaze drifted to the ByteBull Studios signage on the wall.
The office was complete now—RGB lighting strips softly pulsing, speakers lining the walls, the dim glow of the monitors reflecting off polished desks.
It finally felt real.
But Richard knew this was only the beginning.
He exhaled, cracking his knuckles.
"Next up—the boss of the entire engine."
A grin spread across his face.
"The Manus. The father of the abyss. The hardest phase. Get through it, and everything else is smooth sailing."
This was where the AI of the VectorCore Engine would be born.
"The phoenix resting inside the egg."
Richard's fingers hovered over the keyboard.
Richard cracked his knuckles, his fingers hovering over the keyboard.
"Procedural generation next."
He opened a new file, labeling it ProceduralGenerator—the core of VectorCore's world-generation system.
"The heart of the engine. Terrain, textures, models... everything starts here."
This section would consume weeks of work.
He started with noise functions—the foundation of terrain generation.
Perlin noise. Simplex noise.
"These are the building blocks. I need them to be fast, efficient, and versatile."
He wrote the NoiseFunction class, creating different algorithms for generating randomness that looked organic.
Days blurred together.
Richard kept tweaking, running tests. Some noise patterns looked too repetitive, others were too chaotic. He optimized until the generation felt natural, unpredictable, yet controlled.
Then, he moved on to fractal algorithms.
Fractal Brownian motion (fBm)—for layering noise and creating realistic landscapes.
Multi-fractal noise—for adding intricate variations in terrain.
"These will add depth and complexity... but they're computationally expensive. I need to optimize."
More days passed.
Every tweak led to a new problem. Some terrains looked like alien planets, others were too flat. Balancing detail and performance was a constant battle.
Richard sighed, rubbing his eyes.
"Style presets."
He needed a way to apply predefined artistic styles to the generated environments.
A data-driven system. Configurations, parameters, post-processing effects.
"If I do this right, artists won't have to touch the code. They'll just tweak sliders and get the look they want."
Richard built a modular framework, allowing terrain generation, texture generation, and model generation to be handled separately but cohesively.
Every part needed its own rules and parameters.
Every part took days to refine.
Then, he took a deep breath.
The physics engine.
He opened a new file.
"Procedural physics... the real challenge. How do I make a system that generates realistic interactions on the fly?"
This would be one of the longest, most brutal phases.
He created the PhysicsEngine class, the beating heart of VectorCore's simulation system.
Collision detection.
Rigid body dynamics.
Fluid simulations.
"Each part is its own beast. Each part requires weeks of work."
He started with collision detection.
Sphere-sphere collisions—for things like rolling grenades or bouncing projectiles.
Sphere-plane collisions—for detecting when a character or object hit the ground.
AABB (Axis-Aligned Bounding Box) collisions—for detecting when objects overlapped in the world.
"The basics... but essential. After this, I'll have to tackle more complex shapes—convex hulls, mesh collisions. That will take even longer."
The more he wrote, the more the sheer scope of the project weighed on him.
But he kept going.
He moved onto rigid body dynamics, simulating forces, torques, and rotations.
Newton's Laws.
Angular momentum.
Friction models.
"It's all about applying the right equations... and making them stable."
One miscalculation and objects would spin out of control.One tiny mistake and characters would jitter, hover, or clip through the world.
But Richard thrived in this chaos.
His brain worked like a machine, piecing together physics, math, and logic into something functional, powerful, and groundbreaking.
As the hours stretched into days, the foundation of VectorCore solidified.
But the true boss battle still awaited.
"Manus... the father of the abyss... The AI system."
Richard grinned.
"Once I crack that, everything else will be smooth sailing."
He leaned forward. Fingers poised. Ready to code.
"Here we go."
Richard leaned forward, cracking his fingers.
"The AI system..."
This wasn't just any AI. This was the soul of VectorCore—a procedural asset and script generator.
Not just for one game.Not just for one genre.
This was a universal AI framework, capable of generating entire game worlds, scripting behaviors, and adjusting itself dynamically based on developer-defined parameters.
It wasn't just an AI for a single title—it was an AI for an entire engine.
A system that would create levels, design NPC behaviors, balance gameplay, and even modify itself in response to changes.
A living, breathing template that could be molded into any kind of game.
"This is where everything comes together."
Richard created a new file.
AI_Core.cpp
This was Manus. The Phoenix inside the Egg.
The Foundation of Intelligence
First, the modular structure.
Procedural Generation AI → World-building, asset placement, terrain adaptation.
Behavior AI → NPC logic, enemy movements, squad tactics, and dynamic adaptation.
Scripting AI → Auto-generates game scripts based on input parameters.
The first goal:"Manus must understand and process templates."
He coded a template system, a universal blueprint that allowed developers to define game rules, world parameters, and AI behavior without touching the core code.
The AI would read these templates and generate assets, game logic, and world elements on the fly.
The Procedural AI had to do more than just create random terrain.
"It must generate entire maps based on logic, not just randomness."
Richard built a layered approach to world generation:
Base Layer: Terrain topology—hills, rivers, roads, cities.
Structure Layer: Buildings, bunkers, trenches, foliage.
Interaction Layer: Spawn points, objectives, AI waypoints.
Detail Layer: Props, debris, lighting, weather effects.
Each layer interacted dynamically. If a road cut through a forest, the AI would clear trees logically instead of overlapping objects randomly.
"A true procedural system shouldn't just generate. It should adapt based on context."
The Birth of Dynamic AI Behavior
Richard created a decision-making system based on Finite State Machines (FSM) and Utility AI.
FSM for predictable behaviors. (Patrol, Attack, Flee)
Utility AI for dynamic decision-making.
"If an enemy is losing a battle, should it retreat? Request reinforcements? Try to flank? The AI should decide based on situation, not pre-written scripts."
Enemies would evaluate their situation dynamically:
Health & ammo levels → Should they push or fall back?
Cover availability → Should they hold position or move?
Squad coordination → Should they attack together or spread out?
This AI wouldn't just react—it would predict.
If a player was sniping from a hill, the AI would learn from previous encounters and deploy counter-snipers or use smokescreens.
The goal?
"No predictable NPC behavior. Every match, every fight should feel different."
The final step was the Scripting AI.
"No game developer wants to write thousands of lines of boilerplate code."
Manus would automatically generate scripts based on developer-defined parameters.
Want a stealth-based AI? Manus would write patrol patterns, sight detection, and guard behaviors.
Need a city generator? Manus would script procedural building placements, traffic, and population behaviors.
Designing a multiplayer shooter? Manus would handle spawn logic, respawn mechanics, and objective tracking.
Richard created an AI-driven code generator that could output Lua, C++, and Python scripts depending on developer preference.
Developers could edit the generated scripts if needed, but the goal was simple:
"Let the AI do 80% of the work. Let humans focus on creativity."
Manus was an idea.
Now it needed to become reality.
Richard spent days writing its core logic.
Errors piled up.Memory leaks, segmentation faults, infinite loops.
Every AI decision tree had to be debugged, every generated script had to be tested.
There were nights when the AI would freeze mid-generation—Richard had to tear it down and rebuild it.
Manus wasn't just complex. It was unpredictable.
But step by step, line by line, it started working.
Richard wiped his forehead and ran the first simulation.
He entered a map template:
"Generate a ruined battlefield, mid-1944, European front."
Manus processed the request.
Lines of code flew across the screen.
In under three minutes, the AI generated:
✅ A full war-torn city map.
✅ Destroyed buildings, trenches, barricades.
✅ Dynamic AI paths, spawn zones, and cover points.
✅ Realistic lighting, weather, and destructible terrain.
Richard watched as AI-controlled NPCs deployed into the city, taking cover behind rubble, moving tactically, adapting to the environment.
He sat back in his chair. Sёarch* The Nôvelƒire.net website on Google to access chapters of novels early and in the highest quality.
"Holy shit."
Jack walked in, rubbing his eyes.
"Bro... I heard you talking to yourself. You good?"
Richard pointed at the screen, grinning.
Jack squinted.
"Wait. You... you didn't build that map by hand, did you?"
Richard smirked.
"Nope. The AI did."
Jack's eyes widened.
"You mean... the AI generated everything?"
Richard nodded.
Jack stared at the screen for a long moment, watching the AI-controlled soldiers navigate the battlefield.
Then he burst into laughter.
"Holy fuck, bro. You made Skynet."
Richard chuckled.
"Nah. Skynet just kills people. This... this is gonna build entire worlds."
Jack shook his head, still in disbelief.
"We're not making a game anymore, are we? We're making something way bigger."
Richard leaned back in his chair, staring at the glowing lines of code on his screen.
"Yeah."
"We are."
Chapters
×
Chapter 1
- A Cup of Coffee
Chapter 2
- Fading Doubts
Chapter 3
- Jack
Chapter 4
- Bros Before Hoes
Chapter 5
- Game Testing
Chapter 6
- Revelation
Chapter 7
- Securing the Win
Chapter 8
- Claiming the Prize
Chapter 9
- New Frontier
Chapter 10
- Transition
Chapter 11
- Reunion
Chapter 12
- New Home
Chapter 13
- Module Interface
Chapter 14
- Daily Quest
Chapter 15
- Sorry Gaijn
Chapter 16
- Finding PC
Chapter 17
- Shopping
Chapter 18
- Old Connections
Chapter 19
- Vector Core
Chapter 20
- Features
Chapter 21
- Finishing Touches
Chapter 22
- Painting
Chapter 23
- Icon
Chapter 24
- Nostalgia
Chapter 25
- Realism
Chapter 26
- Procedural Asset Test
Chapter 27
- Disaster or Miracle
Chapter 28
- Vector Core Completed
Chapter 29
- Creating
Chapter 30
- Campaign
Chapter 31
- Reckless Evolution
Chapter 32
- Classified
Chapter 33
- Roasted
Chapter 34
- Zoo for the Most Dangerous Beast
Chapter 35
- Marketing
Chapter 36
- Trailer
Chapter 37
- The Day That Started It All
Chapter 38
- Offers
Chapter 39
- Attracting Foreign Powers
Chapter 40
- News
Chapter 41
- Fabrication
Chapter 42
- AMFS
Chapter 43
- Revelation and Trust
Chapter 44
- Mystery
Chapter 45
- Family
Chapter 46
- Trap
Chapter 47
- Behind the Curtains
Chapter 48
- Operation Paper Clip
Chapter 49
- Incursion
Chapter 50
- Aftermath
Chapter 51
- Bag em and Tag em
Chapter 52
- Relocation
Chapter 53
- Damage Control
Chapter 54
- Persistent World
Chapter 55
- Reaching For The Stars
Chapter 56
- Testing
Chapter 57
- Testing II
Chapter 58
- Final Modifications
Chapter 59
- World Frenzy
Chapter 60
- Sharks and Stars
Chapter 61
- Drive
Chapter 62
- Wheres the Oil
Chapter 63
- Initiation
Chapter 64
- Struggles
Chapter 65
- Mystiques
Chapter 66
- History
Chapter 67
- Inheritance
Chapter 68
- Planning For The Future
Chapter 69
- Window Shopping
Chapter 70
- Setting It All Up Again
Chapter 71
- Your Big Brothers Back
Chapter 72
- Preparation
Chapter 73
- Shifting the Tides
Chapter 74
- Migration
Chapter 75
- Leashing the Phoenix
Chapter 76
- Future AI Girlfriend
Chapter 77
- Future Alliances
Chapter 78
- Bytecon
Chapter 79
- Reactions
Chapter 80
- Frog Out Of The Well
Chapter 81
- Players POV
Chapter 82
- Easy Company
Chapter 83
- Evolution
Chapter 84
- Manila City
Chapter 85
- Proposals
Chapter 86
- The Deep State
Chapter 87
- Doomsday Clock
Chapter 88
- Ronnie
Chapter 89
- Psionic Mastery
Chapter 90
- Psionic Path Becoming the God-Emperor
Chapter 91
- Research
Chapter 92
- Linas Brain
Chapter 93
- DEUS EX MACHINA
Chapter 94
- Tour
Chapter 95
- Resolve and Racism probably
Chapter 96
- DEUS EX MACHINA DESCENDS
Chapter 97
- Test Failure
Chapter 98
- Introductions
Chapter 99
- Moving Out
Chapter 100
- Jumpscaring the Internet
Chapter 101
- Prometheus Mark 6
Chapter 102
- Prometheus Mark 6 Testing
Chapter 103
- Scorched Earth
Chapter 104
- Doppelgangers
Chapter 105
- Ignition Sequence
Chapter 106
- Catching the Big Mouse
Chapter 107
- No Loose Ends
Chapter 108
- Consequences
Chapter 109
- Dragons Ascent
Chapter 110
- Even Aliens Are Junkies
Chapter 111
- The Real Predator
Chapter 112
- Forced Awakening
Chapter 113
- Meeting the Famed Ancient
Chapter 114
- - 115 Progress
Chapter 115
- - 114 The Force Awakens
Chapter 116
- Progress 2
Chapter 117
- Rise and Fall
Chapter 118
- Nuts and Crackers
Chapter 119
- Half-Assed Reunion
Chapter 120
- Lifting the Scales
Chapter 121
- Spark of Human Supremacy
Chapter 122
- - 123 First Encounter
Chapter 123
- - 122 First Ride
Chapter 124
- What an Irony
Chapter 125
- Evaluation
Chapter 126
- Strengths and Weaknesses
Chapter 127
- History
Chapter 128
- Plans
Chapter 129
- Beggar Shopper
Chapter 130
- IF YOU CANT BUY A REAL GUCCI BUY A FAKE ONE
Chapter 131
- Plans for the Future
Chapter 132
- Fury
Chapter 133
- Hangar Bay
Chapter 134
- Oreo-Philosophy Design
Chapter 135
- Competitions
Chapter 136
- Preparation Brazil
Chapter 137
- Preparation for Descent
Chapter 138
- Praetoriani Siderum
Chapter 139
- Nicolau
Chapter 140
- Battle Royale
Chapter 141
- Amazon Ciano
Chapter 142
- Dear Casanova
Chapter 143
- Byte OS 1
Chapter 144
- ByteOS 2
Chapter 145
- Masters of Disruption
Chapter 146
- Unearthing Corpses
Chapter 147
- Dark Harvest
Chapter 148
- Project Harvest
Chapter 149
- Meeting Old Bloodlines
Chapter 150
- Journey To The Past
Chapter 151
- Heaps
Chapter 152
- History Recall
Chapter 153
- Introducing Nicolau
Chapter 154
- The Man Of Absolute Faith
Chapter 155
- Renewed Faith New Alliance
Chapter 156
- Recruits
Chapter 157
- Praetoriani Suit of Armors
Chapter 158
- Praetoriani Rising
Chapter 159
- Forging Flesh and Steel
Chapter 160
- True Praetoriani
Chapter 161
- Phase 2 Incoming
Chapter 162
- Launch
Chapter 163
- Frenzy
Chapter 164
- All In One
Chapter 165
- There Is Only One Race The Human Race
Chapter 166
- Training Begins
Chapter 167
- Art Of Waaaghh
Chapter 168
- In the Table1
Chapter 169
- WAAAAGGHH
Chapter 170
- In the Table 2
Chapter 171
- Eerily Easy
Chapter 172
- Whos Laughing Now
Chapter 173
- Transfer
Chapter 174
- I HAVE THE WHEEL
Chapter 175
- Friend or Foe
Chapter 176
- Simulation Training
Chapter 177
- Self-Investment
Chapter 178
- Dark God Descending
Chapter 179
- Manifested Energy
Chapter 180
- Escalation
Chapter 181
- Invasion
Chapter 182
- We Are Not Cattle We Are The Storm
Chapter 183
- Chaos
Chapter 184
- Every Hands On Deck
Chapter 185
- First Strike
Chapter 186
- Response
Chapter 187
- Introductions
Chapter 188
- Dont Leave Without Paying
Chapter 189
- FAFO
Chapter 190
- Victory
Chapter 191
- Divided By Belief United By Threat
Chapter 192
- Round 2
Chapter 193
- The Beast Awakens
Chapter 194
- Tourists
Chapter 195
- First Mission
Chapter 196
- The Bloodwolfs Duel
Chapter 197
- A Very Bad Nightmare
Chapter 198
- A New Kind Of D-Day
Chapter 199
- End of The World
Chapter 200
- - 201 Dog Eat Dog
Chapter 201
- - 200 Clash of Titans
Chapter 202
- - 204 Humanitys First Win
Chapter 203
- - 202 No Mercy
Chapter 204
- - 203 Formation
Chapter 205
- Depart
Chapter 206
- - 207 New Hope
Chapter 207
- - 206 Golden Age
Chapter 208
- - 208 We did not conquer the stars We arrived hands open
Chapter 209
- - 209 Moby Dick
Chapter 210
- - 210 Hope and A Looming Threat
Chapter 211
- - 211 Purge
Chapter 212
- - 212 God Engine
Chapter 213
- - 213 Upgrading Humanity
Chapter 214
- - 214 Emperors Gambit
Chapter 215
- - 215 Final Preparations
Chapter 216
- - 216 The Dragons Deception
Chapter 217
- - 217 The Shield of Sol
Chapter 218
- - 218 The Dragons Fury
Chapter 219
- - 219 The Hunter Becomes the Hunted
Chapter 220
- - 220 The Vanguard
Chapter 221
- - 221 The Challenger
Chapter 222
- - 222 The Dance of Titans
Chapter 223
- - 223 The Reapers Kiss
Chapter 224
- - 224 The Suns Embrace
Chapter 225
- - 225 The Smugglers Dream and Everyones Demise
Chapter 226
- - 226 A Fathers Desperation
Chapter 227
- - 227 The Seed of Betrayal
Chapter 228
- - 228 Desperation Of A Father
Chapter 229
- - 229 The Gambit
Chapter 230
- - 230 The Last Human
Chapter 231
- - 231 Sacrifice
Chapter 232
- - 232 The Beginning of An End
Chapter 233
- - 233 Dawn Of A New Age
Chapter 234
- - 234 Bitter End
Chapter 235
- - 235 A Better End