Jump to content

Black Window after player Z position > 2000


Go to solution Solved by Josh,

Recommended Posts

Posted

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:
1.PNG.a4019aedcad2ed0f77fc8455fcd29c31.PNG
then shadows disappear
2.PNG.d1ec73be5086ca7866df3753347e0182.PNG

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)

Posted

Floating point errors will occur as you get further from the origin. 2000 units seems a bit low though.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

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 ?

Posted

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...

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

If you have a C++ project, I suspect calling world->SetSize(5000) might fix this error but I am not sure yet...

My job is to make tools you love, with the features you want, and performance you can't live without.

  • Solution
Posted

Click on the root node in the scene hierarchy tree to display the Map properties.

Set the size to 4096.

Enjoy. :)

  • Thanks 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

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.

Posted
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?

 

 

Posted

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 

 

 

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...