Fedor Posted May 27, 2017 Share Posted May 27, 2017 I have a model that looks well in Blender and Meshlab, but somehow looses quality when I load it in Babylon. The first image is loaded in Babylon. I marked a few examples of the poor quality with red lines. The second image is from Meshlab. As you can see, the Meshlab model has a nice round nose, the nose of the Babylon guy is bumpy. The same goes for the chin, lips, eye holes and more places on the entire model. Please note: the original was an FBX, I converted it to STL for loading in Meshlab and .Babylon for Babylon - I am trying to get the STL loaded in Babylon, to see if it is a file format problem or an engine problem. My first guess it is the engine, since both formats use the same representation of the data (ascii) which should not give problems like rounding errors. (Loading the STL has its own problems. Babylon loaders are reluctant at times to do the work or give proper feedback) Quote Link to comment Share on other sites More sharing options...
Spankied Posted May 27, 2017 Share Posted May 27, 2017 Quote Link to comment Share on other sites More sharing options...
Fedor Posted May 27, 2017 Author Share Posted May 27, 2017 Hi, this post is not about STL export... Quote Link to comment Share on other sites More sharing options...
Fedor Posted May 27, 2017 Author Share Posted May 27, 2017 (edited) I fixed the loader problem. Here is a screenshot of the same model but loaded from an STL file - the same file as the Meshlab image shows. As you can see, this files is of much better quality. So I am afraid there is something with either the Babylon-format, or the Babylon export Blender plugin. Anyone? Edited May 27, 2017 by Fedor image wrong Quote Link to comment Share on other sites More sharing options...
Sebavan Posted May 28, 2017 Share Posted May 28, 2017 Really interested in what you changed in the loader ? this could help tracking down where the issue comes from. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 29, 2017 Share Posted May 29, 2017 Flat shading is not usually associated with quality per say. I am not 100 % sure this is all that you would need to do for a Blender workflow, but you really need to tell the exporter that you wish flat shading for each mesh or the whole export. If you still have the .blend, please try checking the box prior to export. Quote Link to comment Share on other sites More sharing options...
Fedor Posted June 10, 2017 Author Share Posted June 10, 2017 Finally got around testing it. The flat shading option seems to allmost double the number of vertices. As far as I can see it gives every face it's own vertices. For me that doesn't work well. I did manage to soften the jagged effect edges by increasing the number of faces. It is still not really gone but it doesn't look as bad as it did. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 10, 2017 Share Posted June 10, 2017 *nod* A quick note about flat shading. That's BJS-style flat-shading on the left. Normally, only ONE lighting normal is allowed per corner vertex (center picture). But flat shading (for a box) needs 3 lighting normals at each corner. It often needs 3 texture UVs at each corner, too (so we can put a different texture on each side). SO, verts are added... making a mesh about 3 times larger, byte-wise. BJS boxes are flat shaded by default... they have 24 verts instead of 8. But other mesh primitives are NOT flat-shaded by default. I just wanted to show you WHY flat-shaded things... need more verts. It is so that each face is lit individually. Otherwise, you would not see the flat-shaded effect. Be well. Quote Link to comment Share on other sites More sharing options...
inteja Posted June 10, 2017 Share Posted June 10, 2017 Looks like a precision issue to me rather than shading. The exported geometry vertices are in slightly different positions, so I'd be checking model scale and export precision. Quote Link to comment Share on other sites More sharing options...
Fedor Posted June 12, 2017 Author Share Posted June 12, 2017 Indeed, that is also my conclussion @inteja. Good explanation @Wingnut, thnx Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 12, 2017 Share Posted June 12, 2017 From a Blender POV, it exports up to 4 decimals, which gets generally good results @ a good file size price. If your geometry is all < than 1 in size, you might rescale & apply a 10x increase in scale. This is a matter of degree, If you want hard face-normal dimpling effect, you need to have unique normals at all the vertices for each face. That disables indexing optimization. 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.