glhf icon indicating copy to clipboard operation
glhf copied to clipboard

sprite draw is suddenly broken for me

Open shnifer opened this issue 6 years ago • 7 comments

Everything was fine 3 days ago, but now both my exercises with pixel engine and glhf demo show the same problem: no errors, windows is created and even filled with Clear color, but no sprites is drawed. Window updates and closes just fine, draw method is called, but no evidence off sprite

what i'm doing wrong?

win7 x64, Nvidia last drivers. Sry for mb stupid question!

shnifer avatar Mar 01 '18 14:03 shnifer

I'm sorry, you need to provide more information. Source code, picture, screenshots would all help.

faiface avatar Mar 01 '18 18:03 faiface

code: I run github.com/faiface/glhf/examples/demo/main.go and got this: https://ibb.co/bRjOAx same with any pixel/examples/...

if i use something like

for !win.Closed() {
	win.Clear(color.RGBA{byte(rand.Intn(255)),byte(rand.Intn(255)),byte(rand.Intn(255)),255})
	sprite.Draw(win, pixel.IM)
	sprite.Draw(win, pixel.IM.Moved(win.Bounds().Center()))
	win.Update()
}

Clear works fine and update background color each frame, but no sprite in angle, nor in center.

on other computers everything is fine, so the lib is ok. Same demo.exe works fine on other comp and don't work here, so it's not about local repo and compiling options. On this comp all was good 4 days ago, so my video card is ok and drivers supported OpenGL well. So i can't undestand the reason of this weird bug and what is brocken

shnifer avatar Mar 02 '18 07:03 shnifer

Alright, I acknowledge your problem, but as I can't reproduce it and have no idea what causes it, I can't directly help you. You'll have to investigate the issue yourself. When you find a solution, I'll be very happy to fix the problem.

faiface avatar Mar 02 '18 11:03 faiface

Hello again, just reporting in: Windows recovery doesn't help. But! this is a real heisenbug, on this screenshot you see five instances of smoke.exe runned: https://ibb.co/inR8hn 2 work well, 3 are blind window. this is not work-blind-work-blind-... or any predictable pattern. I continue to investigate

P.S. same problem not only on my comp. I encourage everybody to compile pixel/samples/smoke and check, mb we can reproduce situation. If you do, please report both positive and negative results

shnifer avatar Mar 05 '18 08:03 shnifer

That's really weird. Thanks a lot for the investigation! Hope you'll be successful!

faiface avatar Mar 05 '18 12:03 faiface

Sad, it seems my understanding of GL and ways to test it are not enough to solve this. The problem occurs on GForce 8400gs Win 7x64 PC and on Gforce 8400M GS Win 7x64 notebook. Drivers ver. 342.01.

Hope someone else could solve this! Good Luck Have Fun!

P.S. if you have any ideas but can't reproduce the error, i will be happy to run you test code or something

shnifer avatar Mar 07 '18 13:03 shnifer

I'm sorry to hear that, I also hope someone can solve this. Unfortunately, I have zero ideas.

faiface avatar Mar 07 '18 17:03 faiface