Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: (almost) binary space partitioning example  (Read 1850 times)

0 Members and 1 Guest are viewing this topic.

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
(almost) binary space partitioning example
« on: September 23, 2019, 04:38:02 pm »
hello everybody
I created this small example of BSP... its not done yet, and still a little buggy. but I wanted to share and ask for opinions
i'm planning to use it in some kind of random city creator. you press spacebar and it starts partitioning:



and here goes the code:
(I know most people don't like globals, but its just for testing a prototype...)
(click to show/hide)


=====EDIT=====

changed the code a bit
still produces some weirdness, but its much better. now it have streets  ;D
its kind of messy, tough. not intended for real life usage like it is, i guess.



(click to show/hide)
« Last Edit: September 23, 2019, 08:49:09 pm by Stauricus »
Visit my game site (and hopefully help funding it? )
Website | IndieDB

 

anything