Manim Example | How to Show Sphere in Manim (OpenGL Version)

  Рет қаралды 2,318

Matterhorn

Matterhorn

Күн бұрын

TABLE OF CONTENTS
00:00:00 Start
00:00:03 Example
00:00:19 Code Snippet
00:00:28 End
Note:
[1] Currently, because of the Manim (OpenGL Version) upgrade, the two parameters ("gloss" and "shadow") are disabled. So, we cannot get the whole Sphere. We will figure it out.

Пікірлер: 11
@clearmath2359
@clearmath2359 2 жыл бұрын
this channel has been super useful for my videos! thanks!
@tapabratadam8573
@tapabratadam8573 3 жыл бұрын
from manimlib import * #Manim Example | How to Show Sphere in Manim class ThreeDGraphics(Scene): def construct(self): axes = ThreeDAxes(x_range=np.array([-5, 5, 1]),y_range=np.array([-4, 4, 1]), z_range=np.array([-3, 3, 1]), width=5, height=4, depth=3, axis_config={"stroke_color":WHITE, "stroke_width":2, "include_tip":True, "include_ticks":True, "tick_size":0.05 }, axis_config={ "stroke_width":2, "include_ticks":False, }).scale(1.8) self.add(axes) self.camera.frame.set_euler_angles(theta=135*DEGREES, phi=60*DEGREES, gamma=0*DEGREES) sphere = Sphere(radius=1.8, resolution=(101,51), color=BLUE, opacity=0.8, gloss=0.3, shadow=0.4) self.play(ShowCreation(sphere), run_time=4) self.wait() self.play(self.camera.frame.animate.increment_theta(dtheta=TAU), run_time=8) self.wait()
@matterhorn2226
@matterhorn2226 3 жыл бұрын
Thank you for sharing the code snippet.
@alex_hiller
@alex_hiller 2 жыл бұрын
You're a legend.
@alex_hiller
@alex_hiller 2 жыл бұрын
You've got two axis_configs in the ThreeDAxes function though.
@visualgebra
@visualgebra 3 жыл бұрын
thank u
@matterhorn2226
@matterhorn2226 3 жыл бұрын
😃
@itsshahain5954
@itsshahain5954 2 жыл бұрын
Thanks! Btw in ManimGL my SVG is not rendering properly, it has jagged edges and all :/ Why is that?
@leobardovalera
@leobardovalera 2 жыл бұрын
How to create a sphere centered in another coordinate?
@tapabratadam8573
@tapabratadam8573 3 жыл бұрын
I have used the following code to create the scene in manimCE but I could not get the transparency effect from manim import * #Manim Example | How to Show Sphere in Manim class CCS(ThreeDScene): def construct(self): axes = ThreeDAxes( x_min=-5, x_max=5, y_min=-4, y_max=4, z_min=-3, z_max=3, axis_config={ "stroke_color": WHITE, "stroke_width": 4, "include_tip": True, "include_ticks": True, "tick_size": 0.1 }, x_axis_config={ "stroke_color": WHITE, "stroke_width": 4, "include_tip": True, "include_ticks": True, "tick_size": 0.1 }, y_axis_config={ "stroke_color": WHITE, "stroke_width": 4, "include_tip": True, "include_ticks": True, "tick_size": 0.1 }, z_axis_config={ "stroke_color": WHITE, "stroke_width": 4, "include_tip": True, "include_ticks": True, "tick_size": 0.1 }) self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES) self.add(axes) sphere = Sphere(radius=1.8, resolution=(101,51), color=BLUE, opacity=0.8, gloss=0.3, shadow=0.4) self.play(Create(sphere), run_time=4) self.begin_ambient_camera_rotation(rate=0.3) self.wait(4) self.stop_ambient_camera_rotation() self.wait()
@matterhorn2226
@matterhorn2226 3 жыл бұрын
That’s right. Please substitute the "fill_opacity" parameter for the "opacity" parameter.
Manim Example | How to Show Torus in Manim (OpenGL Version)
0:31
Make Videos Like 3Blue1Brown | Manim
9:32
Darwin Tech
Рет қаралды 147 М.
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 13 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 19 МЛН
2000000❤️⚽️#shorts #thankyou
00:20
あしざるFC
Рет қаралды 13 МЛН
ManimCE vs ManimGL vs ManimCairo (pros and cons of each)
7:14
Theorem of Beethoven
Рет қаралды 7 М.
Monte Carlo Simulation
10:06
MarbleScience
Рет қаралды 1,4 МЛН
Как работают лазеры? Простое и детальное объяснение
15:11
Физика с Юрием Ткачёвым
Рет қаралды 97 М.
Advice for using Manim | Grant Sanderson and Lex Fridman
4:30
Classic circle illusion #shorts #mathshorts #manim #math #illusion
1:00
Mathematical Visual Proofs
Рет қаралды 13 М.
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 13 МЛН