X3D / VRML import plugin - Printable Version +- Wings 3D Development Forum (https://www.wings3d.com/forum) +-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1) +--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6) +--- Thread: X3D / VRML import plugin (/showthread.php?tid=3084) Pages:
1
2
|
X3D / VRML import plugin - edb - 12-01-2022 I'm making an import plugin to complement the VRML export plugin already in Wings3D. It can import from X3D, VRML 2.0, a bit of VRML 1.0 and possibly SGI Inventor files as they are very similar to VRML 1.0 files. Example X3D file: Code: <?xml version="1.0" encoding="UTF-8"?> RE: X3D / VRML import plugin [WIP] - micheus - 12-01-2022 Quote:I'm making an import plugin to complement the VRML export plugin already in Wings3D.In this case, I suggest you work over the current code and create a PR at Wings3D's GitHub repository in order to get it approved by dgud. RE: X3D / VRML import plugin [WIP] - edb - 12-02-2022 I can make a PR for this one pretty soon, I just have the textures part to do I think. Thank you. RE: X3D / VRML import plugin [WIP] - edb - 03-08-2023 I've made a branch eb/x3d-import with my changes so far but there is still a little bit to complete. There are also changes to wpc_wrl.erl that adds X3D export support. RE: X3D / VRML import plugin [WIP] - edb - 03-09-2023 It took a bit of time but I think this importer is now generally usable. Apart from IndexedFaceSet, it also implements many of the other geometry nodes, making it useful not only to import meshes from other programs, but also to create geometries from VRML code to import directly into wings. Basic geometries like Box, Cylinder, Cone, Sphere are available, as well as the Extrusion and ElevationGrid node. Transforms (translate, rotation, scale) that the shapes are in, are also applied to the shapes. beam file available: wpc_wrl.tar This installs over the stock wpc_wrl plugin to provide X3D export support. Example ElevationGrid: Code: #VRML V2.0 utf8 RE: X3D / VRML import plugin [WIP] - edb - 04-10-2023 Updated with improvements for multi byte identifiers and texture file paths: wpc_wrl.tar RE: X3D / VRML import plugin [WIP] - tkbd - 05-22-2023 Hello edb! I installed your VRML/X3D importer and exporter,and done some tests. And tried to readVRML data of DEM(Digital Elevation Model) Wings3D could displayed two Materials and one Texture loaded,The material referenced the texture correctly but UVdata missing. The file can dowoload in a following site. https://maps.gsi.go.jp/index_3d.html?z=10&lat=45.166547157856016&lon=141.25671386718753&w=256&h=256&ls=std%7Cmodis&blend=0#&cpx=-18.388&cpy=-149.605&cpz=27.241&cux=-0.094&cuy=-0.563&cuz=0.821&ctx=0.000&cty=0.000&ctz=0.000&a=3.3&b=0&dd=0 You can also download two file,dem.wrl and texture.png Unfortunately English interface is not supported..and .the wrl file size is 13.8MB (Therefore, I posted the image with English annotations.) Note: This site is Geospatial Information Authority of Japan (GSI) https://www.gsi.go.jp/ENGLISH/index.html I examine the file by a text editor. The wrl file has texCoord TextureCoordinate field, but texCoordIndex field missing. MeshLab and Blender can see UVdata correctly and textured terrain. Would it be possible Wings could as well the data display correctly in the cases texCoordIndex missing too? Best regard! ------------------ tkbd RE: X3D / VRML import plugin [WIP] - edb - 05-23-2023 Hello tkbd, I'll be looking at it soon to see what needs to be changed for the absent texCoordIndex. Thanks for letting me know. RE: X3D / VRML import plugin [WIP] - edb - 05-28-2023 I've made the fix for when texCoordIndex isn't specified. Thanks tbkd for finding the bug. Newest build: wpc_wrl.tar RE: X3D / VRML import plugin - tkbd - 05-28-2023 Thank you for update!. I checked it working good!! I'm glad because this specification will possibly many people will benefit from it. |