123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|165|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> It's gorgeous

Sat, 23 Sep 2023, 09:53
Afr0

It's gorgeous


After God knows how many hours of faffing about, I finally have a working city renderer!
I suspect the texture mapping's off, and there's no real camera to speak of yet, but it works! And Lord allmighty does it look good.



What needs to be done next is create a proper texture atlas class, render quads instead of triangles, add a proper camera class, make sure you can click on the quads in order to create a lot etc.

Here's the code in case anyone wants to help me out:





You'll also need the data for one of the many TSO cities:





As you can see, Maxis (surprise, surprise) as per usual made things unneccessarily complicated by rotating the bitmaps by 45 degrees, which was probably a half-assed compression technique. Right now I'm "cheating" by parsing the heightmap nornally and then selectively adding vertices based on the presence of the color black in the terrain type bitmap. If anyone wants to come up with a proper way to parse the heightmap, I'd appreciate the help! Also, please feel free to fix texture mapping etc.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Sat, 23 Sep 2023, 10:12
Jayenkai
Cool!
Congrats.
Sat, 23 Sep 2023, 10:39
Afr0
Thanks!
Sun, 24 Sep 2023, 16:21
Afr0
Does someone smarter than me have any idea how to place the camera correctly?
This is the best I've been able to do so far:



Ideally we want something like this:





If you want the latest texture mapping you'll also need this:





-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Fri, 29 Sep 2023, 14:52
Pakz
Is it the camera mode? Blitz had those ortho or ?? Camera modes.

I do not do 3d a lot.
Tue, 03 Oct 2023, 17:53
Afr0
Yeah, I dont either
I’ve gone back to rejigging the UI for now, and it’s going allright!
Should be possible to log in and create a Sim quite soon.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 23 Oct 2023, 05:15
Afr0


ALMOST THERE

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 23 Oct 2023, 06:37
Jayenkai
\o/yeay\o/
Looking good.
Just needs some epic animated water, now

-=-=-
''Load, Next List!''
Mon, 23 Oct 2023, 07:27
Afr0
Thanks 😁
Mon, 23 Oct 2023, 20:34
PHS
Very cool project. Looking good.
Wed, 25 Oct 2023, 10:09
Afr0
Thanks
Wed, 25 Oct 2023, 11:19
Kuron
Looks good!
Thu, 26 Oct 2023, 03:43
Afr0
Thanks!