IIerpos Posted August 17, 2017 Share Posted August 17, 2017 At least in the case of an ArcRotateCamera, the scene objects are not visible if the initial position of the camera is Vector3(0, 10, 0), or directly above. If its Z position is set even a fraction off of zero, there is no problem. http://www.babylonjs-playground.com/#JLPAE#138 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 17, 2017 Share Posted August 17, 2017 Why do you think it is a bug? The camera is right on the same plane as the target (z=0) so the minZ clip plane will clip the rendering Quote Link to comment Share on other sites More sharing options...
adam Posted August 17, 2017 Share Posted August 17, 2017 It's not just the ortho camera: https://www.babylonjs-playground.com/#JLPAE#139 Quote Link to comment Share on other sites More sharing options...
adam Posted August 17, 2017 Share Posted August 17, 2017 15 minutes ago, Deltakosh said: Why do you think it is a bug? The camera is right on the same plane as the target (z=0) so the minZ clip plane will clip the rendering Isn't minZ used in camera space? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 17, 2017 Share Posted August 17, 2017 Yes but in this specific case both the camera and the models are on z = 0 plane Quote Link to comment Share on other sites More sharing options...
adam Posted August 17, 2017 Share Posted August 17, 2017 I don't think this has anything to do with the model. I'm thinking there is a divide by zero error somewhere. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 17, 2017 Share Posted August 17, 2017 Hum interesting...I see no error on the console. Do you think it could come from the projection computation? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 17, 2017 Share Posted August 17, 2017 Actually you are right but this is just because we cannot have a radius = 0 for an arcrotatecamera. as target = position, the radius === 0 so it won't work I'll add a check Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 17, 2017 Share Posted August 17, 2017 Should be fixed now adam 1 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.