News:

Please remember to do a search before you ask a question!

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.

Export STL files for web developer

Started by exdraftee, December 23, 2018, 01:09:09 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

exdraftee

Hi,

I have completed couple of contracts recently with creating 3D files from 2D autocad dwgs, I the export these in STL format to the web developer to embed in the clients web site to view in 3D.

This has developed further that the client has now requested STL files with different colours and rendering  (balustrades - see attached example).

My first question is - Is the render colour driven by external lighting?

e.g If I render as chrome and export in STL format will that render be usable when they embed in there website or will they have too add lighting as in TC?

My second question is - What is the best way to inject variations on the balustrade?

The client wants the user to be able to select different variations in the fence top rail e.g square shape or oval, round etc! My thought was to draw fence (balustrade) and then draw top rail on a seperate layer, with each shaped rail on consecutive layers so that one can jus activate a certain layer - this would then be exported in the STL format?

I have to have more discussions after xmas break but I would assume web developers use photo shop or similar to touch up final products.

Any help would be appreciated.

Thanks
Exdraftee
FerrariDrafting (Find me on Facebook)
Australia
V16 Deluxe
V17 Plat
V20 Plat
V21 Plat
TC2016 Plat
TC2020 Plat
TC2025 Plat

murray dickinson

Colour and rendering information is not part of .stl file format.  .stl is purely triangle geometry, normals, shared vertices and edges.  Whatever colour you successfully interchange via .stl is completely accidental.   

Jeff_in_90620

I'd suggest exporting as OBJ, which supports color, but TurboCAD is not including color information in the test file I just exported (unless the problem is in the import function, but I am not seeing any 'newmtl' definitions in the output file, so I'm thinking the fault is with the export function).

ASAT and DGN will export (and import back) color (SAT as curves, DGN as polygons), but I don't know how easily a website could use those.

Have you considered the 3D PDF format (U3D)?  The appearance depends on the type of lighting used (you may optionally use the lighting setup in TurboCAD when the file was saved, the 'optimized' lighting as the PDF viewer determines it) or other options.


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)

Dean

Turbocad can  "save as" a Color Binary Stl file.
Cad programs that support that will render pen color.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

exdraftee

Thanks,  i originally tried OBJ in the past project , but as stated the mtl file did not attach or was generated. With the STL file dean is that option as stated selectable somewhere?

After having a look through TC manual ill try the U3D as well.

Thanks
Brett
FerrariDrafting (Find me on Facebook)
Australia
V16 Deluxe
V17 Plat
V20 Plat
V21 Plat
TC2016 Plat
TC2020 Plat
TC2025 Plat

Jeff_in_90620

Meshlab confirms that TurboCAD can save Color STL files.


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)

exdraftee

Thanks Jeffin,

Ill do some experiments. Im not near TC atvthe moment but i believe you get options to save e.g asic 11 and bimary or something like that...

It's surprising  how many business still draw in 2D.....

Cheers
Brett
FerrariDrafting (Find me on Facebook)
Australia
V16 Deluxe
V17 Plat
V20 Plat
V21 Plat
TC2016 Plat
TC2020 Plat
TC2025 Plat

exdraftee

Thanks Jeffin,

I'll do some experiments  (from memory stl can save in 3 formats- eg binary or asic 11 or something like that (sorry away from computer). Have had problems in past where 3d printer has bucked up against certain flavours of STL.


Cheers
Brett
FerrariDrafting (Find me on Facebook)
Australia
V16 Deluxe
V17 Plat
V20 Plat
V21 Plat
TC2016 Plat
TC2020 Plat
TC2025 Plat