somnath281 Posted August 19, 2015 Share Posted August 19, 2015 Hi,Basically I am a programmer. I am not sure whether this question is valid for this forum or not. 1. I downloaded a free fbx house model.2. Import it into Clara.io and attached textures, lights and camera.3. Export it into .babylon. After render it into babylon it showing some black gradient marks. Can anybody tell me why this is coming and what should I do to resolve this problem. I have attached an image for reference. Also please let me know, necessary steps all modelers should take care. ThanksSomnath Quote Link to comment Share on other sites More sharing options...
gryff Posted August 19, 2015 Share Posted August 19, 2015 Hi somnath A couple of thoughts 1. Recalculate the normals on the model2. The house is made up of boxes but you have "smoothing" applied so that the cubes try to look like cylinders. Try using flat shading for the mesh(es) where the marks are. cheers, gryff Quote Link to comment Share on other sites More sharing options...
bhouston Posted August 21, 2015 Share Posted August 21, 2015 Hi, I'm Ben of Clara.io. I've had a look at the scene and it seems to be okay with in Clara.io, and it also seems to be okay in Blender (try exporting to a *.blend). We use Blender to export both to *.babylon, and *.obj. I had a look at the normals in an *.obj file and it seems okay -- even in the corners. It is weird that it is correct in OBJ and not in BabylonJS. We will have to investigate the issue in further detail as it appears to be a tricky one. Best regards,Ben Houston Quote Link to comment Share on other sites More sharing options...
gryff Posted August 21, 2015 Share Posted August 21, 2015 Hi Ben, welcome to BJS. Is there a blend file I can download from somewhere to have a look at the model(s)? cheers, gryff Quote Link to comment Share on other sites More sharing options...
gryff Posted August 21, 2015 Share Posted August 21, 2015 somnath and Ben, I've created in Blender a simple test to duplicate the arches at the front of the house. The test has 2 sets of arches - the one on the left the shading is set to flat, the one on the right the shading is set to smooth - then exported to BJS. Notice the one on the right pretty much duplicates what we see in the picture you posted somnath. Arches Test cheers, gryff Wingnut 1 Quote Link to comment Share on other sites More sharing options...
bhouston Posted August 24, 2015 Share Posted August 24, 2015 Hi Ben, welcome to BJS. Is there a blend file I can download from somewhere to have a look at the model(s)? cheers, gryff Hi Gryff, Any scene in Clara.io can be exported to *.blend or *.babylon from our view pages, just click the "Download" button and select ".blend" as the desired format. This particular scene of somnath128 is not public, but otherwise it would be accessible here: https://clara.io/view/0afe03f4-6d11-4f0e-8564-86a4a95cd2e1 BTW we have confirmed that this normals issue is not present when exporting to OBJ/MTL, Blend and ThreeJS, it is only present when exporting to Babylon.JS - thus we believe there is an issue in handling normals in the Babylon.JS exporter from Blender. Best regards,Ben Houston Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 24, 2015 Share Posted August 24, 2015 Hey, when in Blender, just check "use Flat shading" for these objects. It will force the exporter to not optimize the mesh and keep the original normals Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 24, 2015 Share Posted August 24, 2015 I'll update the optimizer to take this case in account Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 24, 2015 Share Posted August 24, 2015 OK i've just pushed v3.0.4 of the blender exporter. Now you just need to check the no vertex sharing option to get the same result: Quote Link to comment Share on other sites More sharing options...
bhouston Posted August 25, 2015 Share Posted August 25, 2015 Hi all, We have updated Clara.io's Babylon.js export with the required fix. It now exports correctly normals to Babylon.js. Best regards,Ben Houston GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
somnath281 Posted September 24, 2015 Author Share Posted September 24, 2015 Thanks deltakosh and Ben, now there is now gradient shades.Another problem I found, from clara.io when i export the file as .babylon i found a .babylon, some textures are expoted in zip file.When I import those files in babylon engine some textures are not attached. See the image below. Thanks,Somnath 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.