vishnu Posted March 21, 2018 Share Posted March 21, 2018 Hey all, i have try to creating shooting game. i need camera with gun. i have try this code. but https://www.babylonjs-playground.com/#1pyfub#18 it's not working. camera child object does not showing in scene. how it's working... Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 24, 2018 Share Posted March 24, 2018 Hi V. I fixed the indenting... https://www.babylonjs-playground.com/#1pyfub#19 Now easier for others to read/help. Can you give us URL's for web pics/video... similar-to your goal? We prefer video clip of similar game/gun/targeting. Thx! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 24, 2018 Share Posted March 24, 2018 https://www.babylonjs-playground.com/indexstable#1pyfub#20 Hmm... gun.parent = camera (line 56) works for 'stable' version of BJS, but not 'latest'. Possible framework bug/change. Perhaps @Deltakosh and/or other 'big dogs' need to see this. Stay tuned. Cool gfx, V. Looks like a fun game! On a different subject: Z-fighting (flashing gfx while cam moves)... sucks, eh? It is caused by two or more flat surfaces... sharing "surface" position (maybe same y-position). We need to separate floor/street "layers" by a tiny amount. Perhaps... .001 to .005 space/gap between 'layers'. Air gap. Good for insulating. You probably know about z-fighting already. Easiest fixed in modeling software. Kbyeee. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2018 Share Posted March 26, 2018 Bug found and fixed Wingnut 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.