Web
Analytics
Log In  

3

Cart [#58624#] | Copy | Code | 2018-11-01 | Link
3

Code adapted from: a 3d fractal kleinian sphere

tweetcart
P#58625 2018-11-01 13:43 ( Edited 2018-11-03 18:13)

::

Pretty cool.
Now rotate it in 60fps. :)

P#58641 2018-11-01 21:42 ( Edited 2018-11-01 21:42)

:: Now rotating @60fps

Point cloud, 2-axis rotation, ortho projection, circular queue, 100 new points every frame, 2500 points total, 60fps

Cart [#58680#] | Copy | Code | 2018-11-02 | Link
2

P#58681 2018-11-02 14:59 ( Edited 2018-11-02 14:59)

::

Well now that's just a thing of beauty ! Got to give you a star for this ...

P#58685 2018-11-02 17:16

::

What's interesting is you can't tell which direction it's rotating. Is it rotating clockwise ? Or ... look again !

Is it rotating counter-clockwise ? :)

P#58723 2018-11-03 16:11

::

Ha, ha. That's because it's using orthographic projection and there's no occlusion or hidden surface removal. I've added the extra step to account for proper perspective projection and now the 3d illusion is better. But this comes with a penalty: reduced point count from 2500 to 2000 to keep 60fps :P

Cart [#58733#] | Copy | Code | 2018-11-03 | Link
0

P#58734 2018-11-03 17:20

::

Ah ! You're right, I can't make it go counter-clockwise anymore because of the 3D shift. Good job !

I noticed if you go UP or DOWN though, it will stop and not continue to rotate.

P#58735 2018-11-03 17:24 ( Edited 2018-11-03 17:25)

::

Yeah, using arrows gives you manual control over 2-axis rotation, while buttons allow zooming in/out. Both disable auto-rotation. But it's enabled again after a minute or so without any user input.

P#58741 2018-11-03 18:13

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-11-13 17:51 | 0.315s | 1572k | Q:40