1
Window / Re: iOS Sample Code
« on: March 10, 2019, 10:28:49 pm »
Thank you for your reply. Will try installing and checking.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Ok Thanks. Yes the suggestion worked and i am past that error. I am compiling on Linux (Ubutu 16.0 LTS) using code blocks. I still have to figure out the linking errors that I am getting for Open GL. The flag I set in the compiler options are not getting picked. I think because they are picked from the cmake file since I built the project using cmake. Not sure. I have to check that. Thanks for your other inputs as well. I will post once I am able to compile. I will give a try on mac as well.I was going through the code and found that the eye vector is 3X3.. but getting a vec4. It errors during compiling. I changed to Vec 4 but then it errors out at --- m_terrainManager.UpdateChunkLOD(eyePos, m_camera.GetViewDir());
glm::vec3 eyePos = invView * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
Interesting, I don't get this error, could we be using different versions of glm? I installed glm just last week so we could have different versions. If you change the eye position vector to a vec4 that should fail to compile because TerrainManager::UpdateChunkLOD() expects a const reference to a vec3 as the first parameter.
What if you made this change:
glm::vec3 eyePos = glm::vec3(invView * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f));
By the way, what compiler are you using? Right now I only have the cmake script configured for macOS so that's another problem you may run into. I mean the linker flags will not be set of you're on a different platform.
Also libnoise in the deps folder will need to be built too because my code will try to statically link with it after you succeed in compiling all the sources.
As a sidenote, if you start up the game and get a blank blue/white screen, just give it a second, it's loading but there's no screen to tell you that yet.
I just started the project so I haven't worked a lot of this stuff out yet, especially the build steps.
It's nice. I like the shadows that get generated.. 👍This looks quite neat!
Thanks!What will be the general goal of the game?
I'm not completely sure yet, but I think maybe an action game where where swarms of enemies appear and you survive as long as you can. One thing that I am sure of is that I want it to have a multiplayer mode. It's all very conceptual right now