Slastraf Posted May 13, 2021 Share Posted May 13, 2021 When I move the player a long distance from the world origin, firstly the shadows disappear and after Z > 2000 the screen is totally black First it is all normal: then shadows disappear and then (z> 2000) only things from postrender get drawn on the screen. Position x:7.6799964904785 y:1.4799995422363 z:1264.5567626953 -- round about here shadows disappear (+-50) Position x:7.6799974441528 y:1.4799995422363 z:2033.2707519531 -- here black screen (+-50) Quote Link to comment Share on other sites More sharing options...
Josh Posted May 13, 2021 Share Posted May 13, 2021 Floating point errors will occur as you get further from the origin. 2000 units seems a bit low though. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Slastraf Posted May 13, 2021 Author Share Posted May 13, 2021 Just now, Josh said: Floating point errors will occur as you get further from the origin. 2000 units seems a bit low though. That's what I thought, too Quote Link to comment Share on other sites More sharing options...
Slastraf Posted May 13, 2021 Author Share Posted May 13, 2021 I have not come closer to the issue, but it might be that I am setting the camera position by SetPosition and the player does not "move", I also place him with SetPosition. Maybe some kind of vector doesnt update the position ? Quote Link to comment Share on other sites More sharing options...
Slastraf Posted May 14, 2021 Author Share Posted May 14, 2021 Update, in the video even an empty project with the fps player and high movement speed, I can get to the "edge". In this case it seems to be at z + ~1503 and 1513 How come this happens ? 1020164982_2021-05-1413-46-07.mp4 Quote Link to comment Share on other sites More sharing options...
Slastraf Posted May 14, 2021 Author Share Posted May 14, 2021 2 minutes ago, Slastraf said: Update, in the video even an empty project with the fps player and high movement speed, I can get to the "edge". In this case it seems to be at z + ~1503 and 1513 How come this happens ? 1020164982_2021-05-1413-46-07.mp4 I have newest gfx drivers .. And some more files: FPSPlayer.lua start.map Quote Link to comment Share on other sites More sharing options...
Slastraf Posted May 15, 2021 Author Share Posted May 15, 2021 Please Quote Link to comment Share on other sites More sharing options...
Josh Posted May 17, 2021 Share Posted May 17, 2021 You can even see this in the editor. It's not how far the shadow-casting object is from the origin, it's how far the camera is... shadow range.map Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted May 17, 2021 Share Posted May 17, 2021 And it looks like the camera position has to be at around 65,000 on one axis before the shadow disappears. Since the editor is using centimeters, that means 650 meters or so... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted May 17, 2021 Share Posted May 17, 2021 see here... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted May 17, 2021 Share Posted May 17, 2021 If you have a C++ project, I suspect calling world->SetSize(5000) might fix this error but I am not sure yet... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Solution Josh Posted May 18, 2021 Solution Share Posted May 18, 2021 Click on the root node in the scene hierarchy tree to display the Map properties. Set the size to 4096. Enjoy. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Slastraf Posted May 22, 2021 Author Share Posted May 22, 2021 It seems to be very small at 4000 aswell. In this scene I put the size to 4000 in the editor and did the same thing from before but the player still disappeared. This is a major issue to the game I want to develop, and even still this should not be the limit to this engine. 2021-05-22 19-06-11.mp4 Quote Link to comment Share on other sites More sharing options...
Marcousik Posted May 27, 2021 Share Posted May 27, 2021 On 5/22/2021 at 7:11 PM, Slastraf said: It seems to be very small at 4000 aswell. In this scene I put the size to 4000 in the editor and did the same thing from before but the player still disappeared. This is a major issue to the game I want to develop, and even still this should not be the limit to this engine. What now? Is this solved or not? I played a lot with 4096x4096 maps with a lot of models and never got an issue, so this is strange... Maybe I don't understand this. So you say the player + shadow disappear at the edges of the map? Is that correct? Quote Link to comment Share on other sites More sharing options...
Marcousik Posted May 28, 2021 Share Posted May 28, 2021 I think to build a infinite world you should leave the player in the center of the world, and move the world around him, or somethin g like that .... Or re-center the world on the origin after the player moves > 500 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.