This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Xelostar's profile picture

3D rendered randomly generated mountains

Started by Xelostar, 21 March 2018 - 03:59 PM
Xelostar #1
Posted 21 March 2018 - 04:59 PM
I was playing around with an update for my 3D rendering API which I was working on. I decided to test some 3D terrain generation with some noise and I made some screenshots of mountains. I thought I'd share them, because they might look nice as backgrounds =)



Bomb Bloke #2
Posted 22 March 2018 - 02:30 AM
Dare I ask what the frame rate on those are? I assume you're heading towards a flight simulator. :)/>
Xelostar #3
Posted 22 March 2018 - 09:10 AM
Dare I ask what the frame rate on those are? I assume you're heading towards a flight simulator. :)/>

It depends on the charge of my laptop and if it's being charged or not. On my laptop I get about 20 FPS. On my PC it's about twice as much normally, but my PC is currently broken so I can't test on there. :P/>

I was actually just playing around with randomly generated terrain, but turning it into small chunks and rendering only a 3x3 of chunks or something could definitely work for a flight simulator! I might give it a try if I've got enough time. :D/>

I'm going to finish the update + documentation first though. :P/>
Xelostar #4
Posted 22 March 2018 - 10:16 AM


Here's another one where the size is 4x bigger in each direction. This one lagged a whole lot so it was hard to get the camera in a good position :P/>
MisterMeister32 #5
Posted 22 March 2018 - 01:12 PM
Looks great even with the limitations of CC.
Do you use the pseudo-bitmap characters or a large monitor?
Xelostar #6
Posted 22 March 2018 - 06:54 PM
In case you're curious what the limit is before getting a "too long without yielding" error, it's 7 seconds to render 53760 polygons, which would be equivalent to 256 at 30 FPS:

Bomb Bloke #7
Posted 23 March 2018 - 10:44 AM
Do you use the pseudo-bitmap characters or a large monitor?

Those're most certainly the teletext characters - there's no way to achieve proper squares without them.
MisterMeister32 #8
Posted 23 March 2018 - 07:03 PM
A 3x2 block of characters is a square.
Xelostar #9
Posted 24 March 2018 - 01:15 AM
Looks great even with the limitations of CC.
Do you use the pseudo-bitmap characters or a large monitor?

Oops I missed this message. :wacko:/>
Thanks!
Well, I just took a screenshot of my program that uses my 3D rendering API, which in turn uses Bomb Bloke's BLittle API if you want to switch to the "higher resolution". :)/>
Xelostar #10
Posted 24 March 2018 - 11:29 AM
A 3x2 block of characters is a square.
I missed this reply too, though I was pretty sure I refreshed the page :huh:/>
Anyway, yet a 3x2 block of characters is a square, because the pixels have a ratio of 2:3, but now we have characters in the new charset which have all combinations of "subpixels" in a 2x3 which allows you to have more detail in a given size. However, since it's a character and only has a background color and a text color, there can only be two colors at max in each real pixel. The BLittle API helps you to "shrink" paint images down and draw them and estimate how each pixel can be calculated the best. :)/>
Bomb Bloke #11
Posted 25 March 2018 - 05:35 AM
I missed this reply too, though I was pretty sure I refreshed the page :huh:/>

The first few posts from new users are hidden until a moderator manually reviews and approves them (which, believe me, stops an awful lot of spam from appearing on the boards).
Xelostar #12
Posted 25 March 2018 - 10:57 AM
The first few posts from new users are hidden until a moderator manually reviews and approves them (which, believe me, stops an awful lot of spam from appearing on the boards).

Ah, okay! I didn't know that. That makes sense! :)/>