|
|
C++ and Python custom codemyself
|
julia_fractal_2000_inverted_quadric_small
This unique object is a julia fractal based on quaternions. a very fine 3d grid is evaluated for each point with an ietrativ formula.
depending on the result, it defines a surface.
Usually these object are showing a fixed number of iterations, this one shows simulaneously the effec of different iterations.
low iteration count give a smooth surface while high number gives lot of detail.
Millions of triangles are generated from the grid, and must be simplfiied, I use some python libraries for that.
vec4 qsqr(vec4 &a) { // square a quaternion
return vec4(a.x * a.x - a.y * a.y - a.z * a.z - a.w * a.w, 2.0 * a.x * a.y,
2.0 * a.x * a.z, 2.0 * a.x * a.w);
}
inline float criticalLoop(vec4 in, vec4 c, int iter) {
vec4 z = in;
float bailout = 4.0;
float md2 = 0.0;
float mz2 = dot(z, z);
for (int i = 0; i < iter; ++i) {
md2 = 4.0 * mz2;
z = qsqr(z) + c;
mz2 = dot(z,
z);
if (mz2 > bailout)
break;
}
mz2 *= .38;
return 0.25 * sqrt(mz2 / md2) * log(mz2);
}
julia_fractal_2000_inverted_quadric_small
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Engineer
-
Programmable Mist Maker - XIAO / QT PY Extension
678 1 0 -
RadioHAT - Raspberry Pi radio development platform
523 0 1 -
-
-
-
-
ARPS-2 – Arduino-Compatible Robot Project Shield for Arduino UNO
3032 0 6 -
-
A Compact Charging Breakout Board For Waveshare ESP32-C3
3637 3 8 -
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
3910 2 2







