Hopson97 / MineCraft-One-Week-Challenge

I challenged myself to see if I could create a voxel game (Minecraft-like) in just one week using C++ and OpenGL, and here is the result
https://www.youtube.com/watch?v=Xq3isov6mZ8
MIT License
2.65k stars 379 forks source link

World doesn't render (Visual Studio 2017) #68

Closed ghost closed 6 years ago

ghost commented 7 years ago

I have tried using both cmake and manually creating projects trying to get this to work, but each time the world just appears black. I don't think it is an issue with the world as I can move and interact with it based on the info in the corner, but nothing else is drawn.

Hopson97 commented 7 years ago

https://github.com/Hopson97/MineCraft-One-Week-Challenge/issues/30 ?

ghost commented 7 years ago

It seems different, as he could see the sky and the world for a short time, but I never see anything besides the debug menu drawn.

IridescentRose commented 7 years ago

What computer specs do you have, and what GPU/drivers?

ghost commented 7 years ago

i5-4460, 8GB ram, GTX 1070 and windows 10. All drivers are updated and I have tried rebuilding SFML and it didn't change anything.

IridescentRose commented 7 years ago

what fork are you using? Just default?

ghost commented 7 years ago

Just default, and I haven't changed any of the code yet. Edit: Just tried it with another version of SFML, but same result.

IridescentRose commented 7 years ago

interesting...

ghost commented 7 years ago

I just built it with mingw and the error was still there, so it must be something with my computer, thanks for the help though.

IridescentRose commented 7 years ago

Yeah, cuz it works with my mingw...

kennyrkun commented 7 years ago

I have the same issue. Built using Visual Studio, SFML 2.4.2.

Nothing but black, except for the text and crosshair. However, I am running on a Radeon R9 270. My issue could be somewhat related to #8, though it does not crash on startup.

skypartan commented 6 years ago

The same is happening to me. I'm compiling with SFML 2.5.0 (older versions are crashing on startup). Just the text and crosshair are rendered. image

peitaosu commented 6 years ago

@skypartan same to me, but I am using SFML 2.4.2. Only text and crosshair are rendered. OS: Windows 10 Compiler: VS2015 GPU: NVIDIA GTX760

Hopson97 commented 6 years ago

I have reverted the code base to an older version, it could be possible it works now :)

kennyrkun commented 6 years ago

rebuilt from master, the problem persists. however in addition, text and the crosshair no longer display. just pure black.

Hopson97 commented 6 years ago

You need to press F3 to see the Crosshair/text

Weird the problem persists. :/

kennyrkun commented 6 years ago

it runs at about 2 fps, and uses 30% cpu. for some reason, the grounded flag is constantly changing between true and false, and my Y value constantly goes up, all without me touching the keyboard.

Hopson97 commented 6 years ago

Yeah that's really strange. Wish I knew how I could help you :(

Hopson97 commented 6 years ago

Ok I think we may have found the issue, probably narrows down to the post processing. We will try fix this and I'll get back to you :)

Hopson97 commented 6 years ago

Ok, it should be working now hopefully 😄

kennyrkun commented 6 years ago

image

It almost works!

I don't really know anything about OpenGL, so I have no idea what would be causing this. Perhaps a faulty renderer?

Hopson97 commented 6 years ago

Yoo what the heck :D no idea what is going on there lol

kennyrkun commented 6 years ago

add a wontfix tag if you're gonna close this issue :b

Hopson97 commented 6 years ago

Lol

EKashpersky commented 6 years ago

@kennyrkun, @skypartan hey folks, I did a fix yesterday, can you check this out? So the issue could be closed, and you could play a bit :p

skypartan commented 6 years ago

It works now, Thanks!

Hopson97 commented 6 years ago

Awesome!