Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sprite draw is suddenly broken for me #1

Open
shnifer opened this issue Mar 1, 2018 · 7 comments
Open

sprite draw is suddenly broken for me #1

shnifer opened this issue Mar 1, 2018 · 7 comments

Comments

@shnifer
Copy link

shnifer commented Mar 1, 2018

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!

@faiface
Copy link
Owner

faiface commented Mar 1, 2018

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

@shnifer
Copy link
Author

shnifer commented Mar 2, 2018

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

@faiface
Copy link
Owner

faiface commented Mar 2, 2018

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.

@shnifer
Copy link
Author

shnifer commented Mar 5, 2018

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

@faiface
Copy link
Owner

faiface commented Mar 5, 2018

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

@shnifer
Copy link
Author

shnifer commented Mar 7, 2018

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

@faiface
Copy link
Owner

faiface commented Mar 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants