Right now we have to create SUMeshHelperCreate and call SUMeshHelperGetNormals in order to do that. Is there a way to get normal per vertex from SUFaceRef without using SUMeshHelperCreate ? I mean not just a normal to face, but per vertex that allow to make soft edges. Like this attached model car.skp looks wrong after conversion.Īnd the last question about SUFaceRef and SUMeshHelperCreate. Even if it’s converted in SketchUp app, faces get wrong materials. But, anyways, after files are converted to fbx, they also often look different from what they look like in SketchUp app. Not clear why ConvertFromSkp from SketchUpModelExporterInterface is made with std string arguments that cause VS version limitations instead of just parsing const char * that can be UTF8. Then we found that we have to use certain version of Visual Studio and compiler flags, because std::string objects don’t parse correctly. First, we couldn’t access the SketchUpModelExporterInterface that easily from skp2fbx.dll internal SketchUp exporter plugin. fbx before opening it, because we handle. So I created a layer for the basics of the house. SketchUp Free proved to be a super intuitive, easy to understand 3D modeling software, tho. I first build the house and now attaching the different things I want to build on the outside. Second question is, when user select “color by layer” and saves the file, when we read it in our app, how can we know that this mode is on?Īlso, we tried some tricks - convert. c0rtez May 1, 2020, 1:20pm 1 Hey guys, after buying a house I’m back into Sketchup to plan some things I want to change on the outside. So, even if the parent objects (groups, instances) have correct layer, we have to ignore them and use the wrong one, returned by each face, since it’s not zero or invalid). It returns Layer0, not even Invalid or 0 value. SUDrawingElementGetLayer(drawingEl, &layer) SUDrawingElementRef drawingEl = SUFaceToDrawingElement(face) What do we do wrong? Even if we just call So we get wrong visibility and layer color in our app. But if you open the scene in SketchUp app it’s clear that they don’t belong to that layer (hiding/showing Layer0 does not affect building walls, for example). When we read this file using similar approach demonstrated in skp2xml project example, calling inheritance_manager_.GetCurrentLayer() on the lowest level for each face, for most of them we get Layer0. There are several layers, they have colors and different visibilities. So, what happens is that we can’t handle object visibility and layer colors correctly. Some people complain that they see the scene very different from what it looks like in SketchUp app. skp, then we show 3D scene in OpenGL window, allow to rotate it, change materials’ colors save as 2D image. In our app user can import different 3D formats, including. We use SketchUp SDK in our cross-platform app for a couple of years already.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |