ModelMesh->setSource(QUrl::fromLocalFile("C:/Users/Chris/Model. ![]() Qt3DRender::QMesh * ModelMesh = new Qt3DRender::QMesh() Sorry I don't really have any experience with 3D modeling I am just trying to implement this viewer into another program as a quick tool for part of a larger purpose.Īnd here is what the code pretty much ended up being: //Model shape data Is there a setting I need to change with the camera? Is there some kind of interpretation setting that I need to change when loading the mesh? Is there more information contained within the Waveform file, other than just the mesh, that Windows 3D Builder sees but that I am not passing into the program with just the line: myMesh->setSource(QUrl::fromLocalFile("/my/file/mesh.obj")) obj file using the Windows 3D Builder application this is not the case, and the entire model can be viewed from any angle. When viewed from the one side in the viewer only the spikes are visible and not the curved surface. ![]() obj mesh I am using to test this is a smooth curved surface with some spike like portions coming off it. The only problem is that the mesh that appears in the window (I am using that basic shapes example I linked to as a base) is partially invisible when viewed from one side. The old example didn't look to complicated, but again the code for it is gone and I doubt it works on the current version of have modified and implemented the example code you provided and it mostly works (thanks again)!. I was hoping that someone would have an idea on how to easily accomplish this. I looked through some of the Qt3D classes documentation but couldn't find much and it seems like it is a huge thing to just look through blindly. I imagine I may be able to modify that example in someway to do what I want but I am not sure how to load in a model instead of creating a blank scene. It seems like a simple enough task that doesn't require anything too complicated, but all the other examples or information I can find seems way over complicated and not really what I am looking for. Which essentially does exactly what I want, except that instead of there being the random for shapes I want the view to be of a. The closest I could find was this example: There is an old example that seems to do exactly what I want, thought it probably wouldn't work anymore and regardless the files have been removed from the Qt git: GroupDocs. It appears that Qt3D underwent a major overhaul somewhat recently and therefore the examples of documentation for it now seem somewhat sparse (at least as far as I could see). Powered by a high-performance cloud-based GroupDocs server, it displays the OBJ files in the browser. obj viewer in a window that you can pan around using mouse input. I am currently trying to use Qt3D to have just a simple Wavefront.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |