News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

OBJ files

Started by IanC, November 13, 2018, 10:55:57 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

IanC

I am experimenting with drone mapping (DroneDeploy). The 3D available to download is an OBJ file, which I've not used before, but understand is common with 3D printing etc.

I can view it in TC, albeit quite slowly due to around 240,000 facets (it views effortlessly on their web platform and Windows 10 3D viewer).

But what I'd like to know, is can I view the image (texture/material) on the surface object, as both of these other methods allow?

Attached is a screenshot of the files they've provided. I can upload them if necessary.
Currently installed v17.2 Pro (with VBA) and 2019 Pro Platinum on Windows 10.   I started with TC v2 !

Jeff_in_90620

From what I've read, recent versions of TurboCAD can integrate OBJ Materials (*.obj.mtl) with OBJ Objects (*.obj).

You might get faster viewing inside TurboCAD by opening the file(s) and saving them as TCW (TurboCAD native format).


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

IanC

Thanks Jeff.

Any idea how? I'm on v2017, and the online help doesn't seem very helpful!
Currently installed v17.2 Pro (with VBA) and 2019 Pro Platinum on Windows 10.   I started with TC v2 !

Andy H

I just downloaded a free small obj model with mtl (from Free3D).   In 2017 the materials did not come into TC, in 2018 the materials were applied in both Lightworks (the default in Tc 2018), and the RedSDK Plug-in.  The model looks better with the TC2018 RedSDK plug-in. than the native GDI/lightworks mode.  (but obviously it is extra cost).

Whether it will work with your files I don't know, but at around 80Mb, you won't be able to post the files on the forum.  You could download the 2018 trial (preferably on a spare computer) and see what you think of the quality of the obj/mtl in TC.

IanC

Thanks Andy. Files zipped here in case you happen to have a minute! -  ;)

https://we.tl/t-XHYRt5vlpw
Currently installed v17.2 Pro (with VBA) and 2019 Pro Platinum on Windows 10.   I started with TC v2 !

Andy H

No problem (in 2018).   I opened in 2018, saved as 2017, E-packed the file so the materials will be correct,  Zipped it so I can upload it.

Download and unzip the Landscape file zip, open TC 2017 and navigate to the tcw file, when opened it should automatically find the correct materials.  BUT. note I used RedSDK as I don't have Lightworks in 2017.

Landscale epack file 

IanC

#6
Thanks Andy, much to my surprise that works!

I don't really understand how 2017 can display it properly, but only after it's first been opened in 2018? So do I definitely need 2018 in order to do this myself?

Was it just a matter of opening it and 'Save As', or was there more to do?
Currently installed v17.2 Pro (with VBA) and 2019 Pro Platinum on Windows 10.   I started with TC v2 !

Andy H

#7
I just opened and used saved-as to save it as a tcw file. ## EDIT ## forgot to mention, I then used the e-pack function in v2017to ensure the materials were located correctly so they will open on someone else's computer.  ## END EDIT ##. Looking at the other thread, it looks like they were going to try and get mtl materials into 2017, but I guess they run out of time, and just implemented it in 2018 instead.

An alternative to 2018 would be to find a program that can open the ogj with mtl, and re-save as a suitable format,  the file opens ok in meshlab, but the file formats I tried exporting from MeshLab didn't work with materials,  I did use Carerra to open the obj, and export as 3DS, this opened ok with materials in 2017.  Sketchup apparently has a 3rd party plug-in which can open obj files, and TC2017 can open sketchup files with materials,  but I have not tried the Sketchup plug-in.

Maybe Murray will see this thread, as he knows more than myself about mesh objects


Jeff_in_90620

#8
I opened the file in 2018 and saved it in 2017 format, but opening it in TC 2017 resulted in a very poor rendering in Lightworks.  The only way I could make it look good was to switch to RedSDK and remove most of the Lightworks lights (keeping only Ambient and Headlight).

I've attached what I saw in TC 2018's Lightworks render, but I'd be surprised if you saw the same thing opening this in 2017.  I also noticed that saving from TC 2018 as a TC 2017 file was 3 MB larger than opening that file in TC 2017 and saving it as a different TC 2017 file, so a lot of... something... either got tossed or incorrectly optimized.

Perhaps saving it from TC 2018 as an older DWG file, then opening that with TC 2017 will do a better job.


Jeff

*** EDIT ***
I have added what was probably the image I could see when using the OBJ & MTL files.  I could not attach the original ZIP file from the OP because it is 68 MB (too large for the current settings), but I could add the TCW file that I was working with when I generated the imageYou cannot view this attachment. .
*** EDIT OFF ***

Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

murray dickinson

Quote from: Andy H on November 14, 2018, 11:18:59 AM
Maybe Murray will see this thread, as he knows more than myself about mesh objects

I'm a geometry guy, Andy.  I know zero about materials. 

IanC

Thanks Jeff. To be honest the quality of the model's photography wasn't good anyway, as I hadn't correctly set up focus etc on the drone, it was my first attempt.

What you've come up with is pretty much like I've got. Think I'll have to upgrade to v2018.
Currently installed v17.2 Pro (with VBA) and 2019 Pro Platinum on Windows 10.   I started with TC v2 !

Steven D. Thompson

Can someone point me to how this e-pack thing works?  I can get the point cloud to open in 2018, but I'd like to have the materials applied, so I can differentiate between different parts of the drawing (trees, soil, rocks, etc.) . I'm trying to bring up the DroneDeploy OBJ files I got from my Drone photos of a lot we own in the Sierras so I can design the drive and site for a future home, in TurboCAD Pro 2018
Steven D. Thompson

Torfinn

Just save your drawing, then go to File/ e-Pack, the menu will let you untick what you dont want to pack in the file, save to a folder or zip, the zip will be stored in the same folder like the actual drawing if you dont change to elsewhere, or send it by e-mail, never tested the e-mail option.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Steven D. Thompson

I thank you very much.  I'll give it a shot.
Steven D. Thompson

NeverStop

Anyone know more about the .mtl ?

Is it added to the latest version ?

Best regards

Jeff_in_90620

It has been added for the last several versions.  I have modified an earlier post to replace the attachments that were lost in the crash.

The TCW file should be version 2018.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop

Quote from: Jeff_in_90620 on January 25, 2023, 10:18:10 AMIt has been added for the last several versions.

Jeff

I think as far I can see 2020 ?

Jeff_in_90620

Quote from: NeverStop on January 25, 2023, 11:51:37 AM
Quote from: Jeff_in_90620 on January 25, 2023, 10:18:10 AMIt has been added for the last several versions.

I think as far I can see 2020 ?

I was mildly confused if you meant it only opens in 2020 or later or that .MTL is not used either before or after 2020.

So, I opened and verified it in 2017 & 2022, but it only works with RedSDK, not LightWorks.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop



Quote from: NeverStop on January 25, 2023, 11:51:37 AMI was mildly confused if you meant it only opens in 2020 or later or that .MTL is not used either before or after 2020.

So, I opened and verified it in 2017 & 2022, but it only works with RedSDK, not LightWorks.


Jeff



Yes I ment only possible from 2020, this is what I read here on forums.

Are you able open .obj and add .mtl in 2017 ?

Jeff_in_90620

Quote from: NeverStop on January 26, 2023, 09:36:24 AMAre you able open .obj and add .mtl in 2017 ?

I did not manually add a MTL file; I just opened an OBJ file that came with a MTL file and its material definition was loaded automatically.  This is seen in the image I attached to my post on 2018-11-14, 22:45:02 (I edited my original post to add the image on 2023-01-25).  I created the image with TC 2017.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop

Quote from: Jeff_in_90620 on January 26, 2023, 10:51:10 AMI did not manually add a MTL file; I just opened an OBJ file that came with a MTL file and its material definition was loaded automatically.  This is seen in the image I attached to my post on 2018-11-14, 22:45:02 (I edited my original post to add the image on 2023-01-25).  I created the image with TC 2017.


Jeff


Got you! But If the .obj has and .mtl how do you add ?


Jeff_in_90620

Quote from: NeverStop on January 26, 2023, 11:53:17 AMIf the .obj has and .mtl how do you add ?

You don't.  If the OBJ and MTL files have the exact same name, then the MTL file is incorporated automatically when you load the OBJ file.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop

#22
Quote from: Jeff_in_90620 on January 26, 2023, 02:38:19 PMYou don't.  If the OBJ and MTL files have the exact same name, then the MTL file is incorporated automatically when you load the OBJ file.


Jeff

So, TC actually looking for a file in same folder and grab it ?



Jeff_in_90620

Quote from: NeverStop on January 26, 2023, 02:41:01 PMTC actually looking for a file in same folder and grab it ?

Yes.

However, a bit of research reveals there are two variations in the file name structure:
1) Filename: scene_mesh.obj has another file named scene_mesh.mtl
2) Filename: scene_mesh.obj has another file named scene_mesh.obj.mtl

Don't ask me why; that's just what I am seeing.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop

Quote from: Jeff_in_90620 on January 26, 2023, 02:49:58 PMYes.

However, a bit of research reveals there are two variations in the file name structure:
1) Filename: scene_mesh.obj has another file named scene_mesh.mtl
2) Filename: scene_mesh.obj has another file named scene_mesh.obj.mtl

Don't ask me why; that's just what I am seeing.


Jeff


I am actually not able to load the file with .mtl file. in my 2017.
Maybe you wanna try the files I am trying with ?




Jeff_in_90620

Quote from: NeverStop on January 27, 2023, 04:40:34 AMI am actually not able to load the file with .mtl file. in my 2017.
Maybe you wanna try the files I am trying with ?

With the OBJ and MTL files in the same folder, look for the OBJ file.  The MTL file will be loaded automatically (if it matches the file name protocol I described in an earlier message).

But I am happy to look at your files.  Just ZIP them and upload here.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop

Quote from: NeverStop on January 27, 2023, 04:40:34 AMWith the OBJ and MTL files in the same folder, look for the OBJ file.  The MTL file will be loaded automatically (if it matches the file name protocol I described in an earlier message).

But I am happy to look at your files.  Just ZIP them and upload here.


Jeff


I did but not working! I will need mail you since I am not sure about they are public.

Jeff_in_90620

Quote from: NeverStop on January 27, 2023, 01:35:54 PMI will need mail you since I am not sure about they are public.

What is the size of the ZIP file, because there are limits.

Perhaps it would be better to create a Dropbox account and send me a link.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop


Jeff_in_90620

I had no problem with your files in 2022, but 2017 didn't accept the color definitions in the MTL file.  2018 is the first version to read the MTL file correctly.

The MTL file (simple text) did not call out any images, so it just specifies the colors for the labelled materials.  What I have attached are Quality renders using 2017, 2018 (LightWorks each) & 2022 (TurboLux).  RedSDK had identical color response, so the problem lies in the OBJ/MTL import plugin.


Jeff

Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

NeverStop

#30
Thanks Jeff for investigation and sharing.

I am surprised the TurboLux came out so bad.. May it be adjusted ?

Here is the renders from the file Andy back saved to 2017 for me.

Best renders I got was Lightworks / full and actually red in draft(first shown).