The issue of incomplete images when slicing with the squares() function

61 views
Skip to first unread message

GY Lynn

unread,
Mar 10, 2026, 5:00:43 AM (7 days ago) Mar 10
to basilisk-fr

I am trying to simulate a transverse-jet and aim to get a video of contour plots on the X-Y cross-section using the squares() function. As shown in the picture, I obtained normal results at maxlevel=9 (left), yet information loss occurred at maxlevel=10 (right). What could be the reason for this? 

f_gray_9.png         f_gray_10.png


Below is the code for the video generation part:

event movie (t += 0.00001)

{

  scalar pid[];

  foreach()

    pid[] = fmod(pid()*(npe() + 37), npe());


view (camera = "front",fov = 20, tx = -0.463, ty=-0.5,  width = 1920, height = 1920);

clear(); 

    squares ("f", map = gray, linear = true,  n = {0,0,1}, alpha = 0);

    save ("f_gray.png");   

    save ("f_gray.mp4");

}


Any insights or suggestions would be greatly appreciated ! 

Best regards,

Lynn

Stephane Popinet

unread,
Mar 10, 2026, 5:02:45 AM (7 days ago) Mar 10
to basil...@googlegroups.com
Hi,
> What could be the reason for this?

Try alpha = 1e-5

Stephane


GY Lynn

unread,
Mar 16, 2026, 6:21:35 AM (20 hours ago) Mar 16
to basilisk-fr
Thank you very much, this modification worked!
Reply all
Reply to author
Forward
0 new messages