Log In  

Cart #58624 | 2018-11-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4


Code adapted from: a 3d fractal kleinian sphere

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

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

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

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


P#58681 2018-11-02 14:59 ( Edited 2018-11-02 18: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 ( Edited 2018-11-02 21: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 ( Edited 2018-11-03 20:11)
1

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


P#58734 2018-11-03 17:20 ( Edited 2018-11-03 21: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 21: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 ( Edited 2018-11-03 22:13)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-16 05:54:07 | 0.014s | Q:27