Hi Petr,
Looks wonderfully serene. I am sure there are nebulae, galaxies and planetary systems forming in the background - perhaps they are made of dark matter.
Charles
Here is very basic example on star flight.
It is hardly revolutionary, but can show you how entity system can be used for this common task.
Interesting to watch how much the twinkle improved the feeling of depth and masked reincarnating stars in the background.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Hi Petr,
Looks wonderfully serene. I am sure there are nebulae, galaxies and planetary systems forming in the background - perhaps they are made of dark matter.
Charles
Hi Charles,
thanks
That %eBox was problem on my side, that line should not be there
I updated the download.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
It reminds me of something you'd probably see in Star Trek.
Operating System: Windows 10 Home 64-bit
CPU: Intel Celeron N4000 CPU @ 1.10GHz
Memory: 4.00GB RAM
Graphics: Intel UHD Graphics 600
This colors the stars using pseudo random numbers derived from the star iterator e.
[code=thinbasic]
' -- Color change to simulate twinkle
c = sin(gettickcount*0.01+e)*.25+1.75
'
'pseudorandom tints
fr=(e*123) and msk
fg=(e*571) and msk
fb=(e*579) and msk
'
TBGL_EntitySetColor(%sScene, e, fr*c, fg*c, fb*c)
[/code]
Charles
What a colourful Space :]
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
A few purple stars hurtling past could be attributed to the Doppler effect when travelling near the speed of light. - unlike our red-shifted view from planet Earth.
Charles
That is nice interpretation
At one point I was thinking whether to restrict maximum speed of tbgl entities to 299 792 458 m/s, then I realised I should take a rest
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
When coding, my head spins so fast, time slows down relative to everybody elses.
Ch a r l e s
Bookmarks