Maybe I'm trying to run before I can walk here, but I tried to use a Rendernet to create a background which would react to player movements. I was thinking that if I saved the player coordinates I could check if any vertex where close to the player and then change it's z value, so the background would "budge" under the player. I didn't get this to work though. I was thinking of putting something along these lines :
if (PlayerX > this.Vertex.X-1) {
if (PlayerX < this.Vertex.X+1) {
if (PlayerY > this.Vertex.Y-1) {
if (PlayerY < this.Vertex.Y+1) {
this.Vertex.Z=-1;
}
}
}
}
in the RenderVertexExpression, but this got very weird.
Any pointers on how to handle rendernets if I want to accomplish something like this?
Modified it a bit and made it work with my game. Looks absolutely awesome! So happy with this! Thanks a lot!
Will look into shaders for this type of thing eventually, but decided I needed to learn that from the ground up using tutorials or so, in order to know exactly what those opengl calls do.