taichi: [Bug][opengl] mpm99.py rendering failed
Describe the bug Hi, The mpm99.py can show FPS and background, but failed to completely render jelly, liquid and snow. My computer using an Intel HD 4400 chip(integrated graphics). CPU is i3-4160 and OpenGL version is 4.3.
Log/Screenshots
debug.log
To Reproduce
python examples\mpm99.py
If you have local commits (e.g. compile fixes before you reproduce the bug), please make sure you first make a PR to fix the build errors and then report the bug.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (10 by maintainers)
Great! This is more than useful! Could you change
ti.f32toti.f64, and I guess the result will be:If so, I think I have know what’s going on there!
All the prints are 0.0 with your exact code. But I assume you intended to run
func()right? If I addfunc()before the print, the result for openGL end is below. It seems that the problem is related to pointers/movement operation, since the +1 is applied every 4 indices?Using cpu backend will give you normal result 1 to 512.
@archibate Well, I didn’t have time to touch the test machine this weekend. I will reply you on Monday of next week. Please wait.
A brief summary to 3 different results of each datatype.
ahere) shifts every 4 indices,xprints normallyashifts every 2 indices,xprints normallyfunc_c4_00I found more problems if you change
ti.f32toti.i32/i64/u32/u64, some errors related to compiler and opengl back-end datatype compatibility will show up (more than one type of error). I will collect those info tomorrow morning 😉 good night guys~Congrats that you may find the pattern, while a bit different from what you predicted. Now it +1 every 2 indices (instead of 8 as predicted). Nonetheless, that is the problem.
Hi YuBin,
I also own a windows PC with AMD card and encountered the same problem on it this evening. If you make a fix later I would love to cope with you for further testing.
Best,
I confirmed that fractal.py shows strange border. It seems to be the same problem as I’m having. Thank you for checking.
Screenshot
Debug log