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

Building on Linux #7

Open
brentnd opened this issue Apr 1, 2019 · 12 comments
Open

Building on Linux #7

brentnd opened this issue Apr 1, 2019 · 12 comments

Comments

@brentnd
Copy link

brentnd commented Apr 1, 2019

When building and running, this is what I see:

image

The sky moves around with mouse movement but the window cannot be expanded.

Commands:

sudo make install
make linux
./RepGame

Environment:

  • Branch: master
  • Ubuntu 18.04
  • gcc 7.3.0
  • freeglut 2.8.1-3
  • glew 2.0.0-5
  • glm 0.9.9~a2-2
  • nvidia-cuda-toolkit 9.1.85-3ubuntu1
  • rsync 3.1.2-2.1ubuntu1

Any ideas?

@Repkap11
Copy link
Owner

Repkap11 commented Apr 1, 2019 via email

@brentnd
Copy link
Author

brentnd commented Apr 1, 2019

Cool, "i" helped me get to what looks like a broken inventory and maximize the window.

image

No notable logs or errors in the console output during that. Seems like I'm maybe missing resources or sprites.

@brentnd
Copy link
Author

brentnd commented Apr 1, 2019

Could it be something with this?

https://github.com/Repkap11/RepGame/blob/master/src/common/abstract/textures.cpp#L65

Do I need to symlink the bitmaps to /system/bin or something?

@brentnd
Copy link
Author

brentnd commented Apr 1, 2019

Nevermind, I guess that's just for caching the textures.

@Repkap11
Copy link
Owner

Repkap11 commented Apr 1, 2019

That path is for Android, which has strange paths. The image should be this one.
https://github.com/Repkap11/RepGame/blob/master/bitmaps/textures.bmp
Its looked for relative to the executable as bitmaps/textures.bmp

@brentnd
Copy link
Author

brentnd commented Apr 1, 2019

Yeah, I did some debugging and texture_init_blocks and texture_init_sky are both resolving the correct path for the bitmaps.

@Repkap11
Copy link
Owner

Repkap11 commented Apr 1, 2019

Could be your GPU doesn't support the texture mode I'm using. Do you get black ground if you comment out the "discard" in chunk_fragment.glsl?

@brentnd
Copy link
Author

brentnd commented Apr 2, 2019

I commented out each "discard" individually and all of them together and didn't see any difference in the ground color.

@Repkap11
Copy link
Owner

Repkap11 commented Apr 2, 2019

Ahh, comment out the #include cuda.mk inside linux.mk
I didn't realize the install instructions will let you install the nvcc compiler even if the host doesn't support cuda acceleration.

@brentnd
Copy link
Author

brentnd commented Apr 2, 2019

Okay, with cuda commented out and rebuilt, it starts like it did before then the screen goes back around 5 seconds. Inventory is still a bunch of black boxes.

Something I just thought of is that I am running this on a vagrant VM with virtualbox. Could that be problematic?

@Repkap11
Copy link
Owner

Repkap11 commented Apr 2, 2019

Try "make map" to delete your "World1" directory.
I still can't explain the blackness.
It looks like your VM has OpenGL 3.3 core, which is what it needs.

@brentnd
Copy link
Author

brentnd commented Apr 2, 2019

Okay, seems a bit better now. I can move around and see black blocks where the world has actually generated ground (instead of just the while abyss from before). Still no textures on inventory either so seems like that's what remains. Could be lack of graphic resources on my VM.

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