Jump to content
  • Advertisement

Recommended Posts

Posted (edited)

I am working with OpenGL, I changed about 20-25 lines of code and it is no longer displaying the terrain (big white window.)  I know some people can whiz right through this and know what's wrong.  Where would the smartest place be to put the code: main.cpp, vertex shader, fragment shader and could I have it looked at please?

 Thanks,

Josheir

Edited by Josheir

Share this post


Link to post
Share on other sites
Advertisement

It would help greatly if you put some of the code before and after the change. Randomly guessing why the window went white is probably not the best course of action at this point.

Share this post


Link to post
Share on other sites
Posted (edited)

Maybe I should retry from the branch than, so I can make sure it is the suspected code.  Since it is not classes, just straight OpenGL commands, I thought there would be some users that could diagnose very quickly.

Josheir

Anyone willing to give it a try?  Or, should I make sure first.

 

 

 

Edited by Josheir

Share this post


Link to post
Share on other sites

If you want help, submit code and don't ask if you should try it yourself first 😛

If you use git, a git diff of both versions might help too.

 

Greetings

Share this post


Link to post
Share on other sites
Posted (edited)

Maybe "some people can whiz right through this and know what's wrong".

saruman_palantir.jpg?w=656

But they're not on the forum 😉

Code. Or it didn't happen.

Edited by Green_Baron

Share this post


Link to post
Share on other sites

I got it working from the branch. Thank you all for your responses.  I continue now to adore programming, may I learn quickly.

 

Josheir

Share this post


Link to post
Share on other sites
On ‎6‎/‎19‎/‎2019 at 3:05 AM, DerTroll said:

If you use git, a git diff of both versions might help too.

What exactly is the product of a git diff ?  How is it read?

Josheir

Share this post


Link to post
Share on other sites
Posted (edited)

https://git-scm.com/docs/git-diff

Git has a little learning curve.

If you use it for your version control, it can show you differences between two "snapshots" (commits) of your project. That's what the git -diff command does. If you don't use git, then this is not an option anyway.

I mean git, not github 😉

Edited by Green_Baron

Share this post


Link to post
Share on other sites
Posted (edited)

This remarkable, "unified diff" file is a plain text file and can be used with other tools to use syntax highlighting, otherwise it's not colored. 

Very cool,

Josheir
 

Thank you!

Edited by Josheir

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!