blazcar Posted November 25, 2016 Share Posted November 25, 2016 Hi! I've come to a problem i can't solve. In my game i have 2 cameras, 1st person an orthographic camera for minimap. The problem is that when I load my mesh into scene and make instances of it, they are all visible in my 1st person camera but not in the orthographic camera. Can you help me what could be the problem? Quote Link to comment Share on other sites More sharing options...
jellix Posted November 26, 2016 Share Posted November 26, 2016 Hi blazcar, are the meshes in front and in the range of the camera? Did you ever get good results with orthographic cameraViews? Sometimes it might be a little tricky to set them properly working in the scene. Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 26, 2016 Share Posted November 26, 2016 Am assuming you are working with two viewports. Instances do not work with a 2nd camera. Try cloning instead. Quote Link to comment Share on other sites More sharing options...
blazcar Posted November 26, 2016 Author Share Posted November 26, 2016 Hi!. The funniest thing is, that when I rotate my 1st person camera to left or right, sometimes those meshes show and i can clearly see them on minimap. Weird things are happening... Quote Link to comment Share on other sites More sharing options...
blazcar Posted November 26, 2016 Author Share Posted November 26, 2016 5 hours ago, jellix said: Hi blazcar, are the meshes in front and in the range of the camera? Did you ever get good results with orthographic cameraViews? Sometimes it might be a little tricky to set them properly working in the scene. Yes they are. The problem is when i rotate my 1st person camera around, those meshes appear on the minimap, but when i look at them with 1st person camera, they are gone on minimap. Quote Link to comment Share on other sites More sharing options...
adam Posted November 26, 2016 Share Posted November 26, 2016 http://doc.babylonjs.com/playground?q=minimap http://www.babylonjs-playground.com/#10VU59#1 Quote Link to comment Share on other sites More sharing options...
adam Posted November 26, 2016 Share Posted November 26, 2016 53 minutes ago, JohnK said: Instances do not work with a 2nd camera. Instances are working here. http://www.babylonjs-playground.com/#10VU59#4 Quote Link to comment Share on other sites More sharing options...
blazcar Posted November 26, 2016 Author Share Posted November 26, 2016 The difference is visible in those two images. In the first one 1st person camera is rotated to the scene and crates are not visible in minimap. On the second image 1st person camera is rotated away from main scene and the crates are visible on the minimap. Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 26, 2016 Share Posted November 26, 2016 @adam sorry had missed this update Quote Link to comment Share on other sites More sharing options...
blazcar Posted November 26, 2016 Author Share Posted November 26, 2016 1 hour ago, JohnK said: Am assuming you are working with two viewports. Instances do not work with a 2nd camera. Try cloning instead. Thank you all for help! 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.