Log In  

Cart [#58624#] | Code | 2018-11-01 | License: CC4-BY-NC-SA | Embed
3

Code adapted from: a 3d fractal kleinian sphere

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

:: dw817

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

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

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

Cart [#58680#] | Code | 2018-11-02 | License: CC4-BY-NC-SA | Embed
2

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

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)
:: dw817

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)

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#] | Code | 2018-11-03 | License: CC4-BY-NC-SA | Embed

P#58734 2018-11-03 17:20 ( Edited 2018-11-03 21:20)
:: dw817

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]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-08-19 19:47 | 0.021s | 2097k | Q:48