Cannot import VRML file

DELFTship forum Hull modeling Cannot import VRML file

Viewing 18 reply threads
  • Author
    Posts
    • #33912
      AvatarWild
      Participant

      I am trying to import VRML 1.0 file (extension .wrl) to DelfShip 3.20 File -> Import -> VRML

      It gives me error “No meshdata could be imported”.

      All my others 3D programs are able to open this file.

      I tried open other VRML files, but no luck ether. It gives me something like “It is not valid VRML 1.0 file” OR the error above, etc.

      What can I do about it? Is there any “test” files to try VRML import function?

      Attachments:
    • #33914
      AvatarWild
      Participant

      Never mind… It was the file, which is not really compatible with original VRML 1.0 standard. It works after editing.

      Now I am trying to figure out how to change it in DelfShip. Model has symmetrical shape. Do I need to cut half of it for DS to show it correctly? [file name=9_4_VRML_1_corrected.zip size=1086]http://www.delftship.net/delftship/media/kunena/attachments/legacy/files/9_4_VRML_1_corrected.zip[/file]

    • #33916
      AvatarWild
      Participant

      This is what I could come up with so far in converting VRML 1.0 .wrl file to DelfShip’s(DS) .fbm format manually after importing it. See attached file.

      DS allows me to delete edges, but will not allow to create it. I cannot calculate design hydrostatics too. It gives me error “You have to set mainparticulars first”. How can I do it? As I understand, all lines should be completed by control’s lines. But how to replace all lines by controle ones? [file name=9_4_VRML_1_v2.zip size=18558]http://www.delftship.net/delftship/media/kunena/attachments/legacy/files/9_4_VRML_1_v2.zip[/file]

      Attachments:
    • #33918
      Avatarotaku
      Participant

      I got that error, too. At some point i gave up, having had more fish to fry (bigger, more pressing tasks…)

      I think i was trying to import a naval hull so i could compare its hydros to mine as a sanity check. There was some other reason, too, which i’ll not remember unless i go through the motions to recreate the memory stream.

      Vaguely i think i was trying to reimport to DELFTship a model i worked on in ViaCAD & ViaCAD Pro, which before that was my original DS-originated model. Seemed to me that letting an external app touch the lines broke something and D/S couldn’t or wouldn’t retake my work.

      I think was i was after was to reimport to DS my “adjusted” VCP model.

      Next i tried to check the VRML output in PolyCAD, and i think it, too, balked at the non-presence of some curves or mesh or the presence of something or other. I probably won’t revisit it unless someone gives positive, happy feedback that it’s a doable thing.

    • #33919
      AvatarMarven
      Keymaster

      Wildexplorer wrote:

      DS allows me to delete edges, but will not allow to create it.

      You can not create edges manually. Instead you should extrude existing edges, or manually add a new face to some selected points. The edges will be created by the program.

      “You have to set mainparticulars first”. How can I do it?

      Go to the project settings tab page and fill in the length, beam and draft of your boat. The program will need this information to calculate the hydrostatics.

    • #33920
      AvatarWild
      Participant

      I got that error, too. At some point i gave up, having had more fish to fry (bigger, more pressing tasks…)

      I think DS use original VRML 1.0 format. Most programs use modified VRML 1.0 or VRML 2.0 I had to manually correct exported by 3D program VRML file which suppose to be VRML 1.0 It turend out it was modified VRML 1.0

      I will take DS’s tutorial file – export it, convert it and import it back to DS and see if it works. I will report my progress/problems.

    • #33921
      AvatarWild
      Participant

      System just swallowed my message ;( Writing it again.

      I took “Trace demo” file used as DS tutorial (how to transfer lines to DS) and exported it as DXF 3D mesh when DS was showing both sides of the hull.

      Then, I imported it in SU, exported it as COLLADA file. Converted COLLADA file to VRML 1.0 and imported it back to DS.

      VRML file was about 2 Meg and it took DS ~10 min to import ot on Core2Duo 1.4 MGz processor. Hull looks OK in 3D, but not all lines the same as original. Hydrostatics are off too. When choosing “show both hull’s sides” option, it shows double hull. I attached image of DS in “half of the hull” option too.

      I will try to export only half of the hull from DS as DXF 3D mesh. Will see what happens.

    • #33923
      AvatarWild
      Participant

      Trying again

      Ok. System does not allow upload file more than 800×800 regardless of size ;(

    • #33925
      AvatarWild
      Participant

      Half hull mode

      Attachments:
    • #33926
      AvatarMarven
      Keymaster

      You should move the hull so the centerline goes through the origin (y=0.0);

      Then use the command “Remove negative” from the tools menu. It will remove all the faces on starboard side so only half your hull remains

    • #33930
      AvatarWild
      Participant

      That will be very hard to do because imported model has 22784 faces, 34304 edges, 11521 points, 0 curves

      My computer just freezes trying to render the screen. Anyway, I need to move ALL these points. And put hull EXACTLY at center line. I do not see how I can accomplish this. “Move to baseline” tool does not work – it already aligned hull the best way it could.

      Attachments:
    • #33931
      AvatarWild
      Participant

      So, if I import half of the hull DS will work correctly. But how can I import asymmetrical hull or the hull with asymmetrical super-structure in DS? I cannot just cut half of it….

    • #33932
      Avatarotaku
      Participant

      I hate it when on-line sites swallow my hard-crafted writings… whether in the computer or on the hand phone.

      It happens just enough that i copy (Ctrl+C) as i type, or copy and paste periodically to notepad and then sometimes completely draft in notepad (minding the word-wrap) and then paste it and hit send. You might want to try that… i can help reduce or eliminate anxiety and stress… 🙂

    • #33933
      Avatarotaku
      Participant

      Wildexplorer,

      You can move them all by using the menu’s “select; all” feature. Then, use the menu’s “transform; move” (to translate) all the selected lines.

      You may want to also select the option to move all related/associated surfaces/faces/objects (i forget the exact terminology) along with those points.

      Select the appropriate x/y/z axis distance you need.

      Figuring this out enabled me to take a naval hull model and get the hydrostatics/resistance sheet to stop erroring out. Someone who saved the 5415 hull shoved the sonar/baseline away some 6′ and ONLY after i corrected to distance would DS read the file’s information. At first i though the file’s author did it intentionally, and it was frustrating to wrack my brain wonderin who and why such a thing would be done, but DS enabled me to relieve that stress.

      SUP at $495 would be painful for me if i needed any of SUP’s features. SU and SUP have very nice features, but for now i am contented with DS Free! and ViaCAD Pro, hopefully being able to buy DS Professional in a few months.

    • #33934
      AvatarWild
      Participant

      You can move them all by using the menu’s “select; all” feature. Then, use the menu’s “transform; move” (to translate) all the selected lines.

      Thanks! Transform -> Move works. I just need to figure out how to reduce numbers of points in imported file – too many of them to work with. Another problem – size. It is off big time. Length is 81m instead of ~7m, etc after importing, but it is NOT DS problem. More likely converter problem.

      Well, it looks like DS is limited to symmetrical hulls. It is OK, just need to remember about it.

    • #33938
      Avatarotaku
      Participant

      Have you checked your project settings? It seems some are having issues if they import DXF (IIRC; see the Sketchup threads) when the project and the source app are one in metric and the other in imperial.

      As for symmetric hulls, DS Free! won’t handle/give (correct?) hydros. You might figure out how to mirror hulls (i did) but i am not sure the hydros will be accurate. Pro, instead, is what you’ll need if you need twin/multi-hulls and hydros info.

      Various threads exist here about them.

    • #33943
      AvatarWild
      Participant

      Have you checked your project settings? It seems some are having issues if they import DXF (IIRC; see the Sketchup threads) when the project and the source app are one in metric and the other in imperial.

      Yeah. It is me who experimenting with all this export/import things between different 3D/2D software ;))

      It could be just SU 7.1 problem exporting into COLLADA file. Even if SU shows smaller (exported) model(Metric/Imperial), it still exports over-sized result.

      I converted DXF (exported from DS) to VRML and imported it back to DS – no problem. It disables some functions in DS, but workable.

      I would like to have DS Pro one day, but for now, DS Free is good enough for me to work with symmetrical models. I just need to make them from paper, that why I play with all this export/import staff.

    • #33955
      AvatarWild
      Participant

      Here are files of 10x5x3 feet half box exported from DS as DXF, converted to VRML, exported back to DS. Final half box size is 10x5x3 METERS. Model need rescaling to proper foot length and minor corrections (make some points “corner” points). Other than that no big problems.

      More problems created going trough more conversions. [file name=Box_10x5x3_DS_2_DFX_2_VRML_2_DS.zip size=26655]http://www.delftship.net/delftship/media/kunena/attachments/legacy/files/Box_10x5x3_DS_2_DFX_2_VRML_2_DS.zip[/file]

    • #33956
      AvatarWild
      Participant

      I forgot to put original DS file in zip archive. DS half box 10x5x3 feet – goes separately (used for DXF export). [file name=DS_Box_10x5x3_by_Marven_rescaled_2_feet.fbm size=404]http://www.delftship.net/delftship/media/kunena/attachments/legacy/files/DS_Box_10x5x3_by_Marven_rescaled_2_feet.fbm[/file]

Viewing 18 reply threads
  • You must be logged in to reply to this topic.