trueSpace COB import for Blender

free scripts, plugins, models, textures
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

trueSpace COB import for Blender

Post by clintonman »

Import tS object files to Blender updated to work with the new 2.80 beta version.
The Blender 2.74 conversion was done in 2015

http://clintons3d.com/plugins/carrara/index.html

Original for Blender 2.32: http://scorpius.github.io/blender-plugins.htm
Clinton Reese

http://clintons3d.com
User avatar
Finis
Captain
Posts: 5410
Joined: 21 May 2009, 18:26
Type the number ten into the box: 0
Location: America!

Re: trueSpace COB import for Blender

Post by Finis »

Excellent. Thanks! I have some old TS things I want to use but I don't want to install TS just to get them.
I prefer dangerous freedom over peaceful servitude. -- Thomas Jefferson/Jean Jacques Rousseau
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Added some more changes today:

imports curves
reads all transformations: translation, rotation and scale
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Todays changes:

Rotations are not converted correctly so they've been removed
Position and scale are still used
Added lights
Reads the scn file extension
Clinton Reese

http://clintons3d.com
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: trueSpace COB import for Blender

Post by Emmanuel »

Thank you Clinton for all your efforts. It's greatly appreciated.
A test made with the previous version didn't work for me. I mean, simple objects load well but entire scene generates errors. See below.

I will try the new one.
tS2blender01.jpg
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Todays update:

Rotations are working now. This was also affecting other items like scale in the first version released.

Only problem is lights are off by 180 degrees. trueSpace lights point in +Z direction and Blender lights point in -Z direction
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Final update, for a while:

imports trueSpace scene layers into Blender collections
import cameras

light and camera rotations are off by 180 degrees and I think the camera may need an additional twist on it's view axis for it's top to point upward
Clinton Reese

http://clintons3d.com
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: trueSpace COB import for Blender

Post by Emmanuel »

Thank you Clinton.
I can load entire scenes without errors now. Scn support is great :superbanana: .
tS2blender_02.jpg
Will you add animation and material support ?

The renders below come from trueSpace (VRay) ; I can't wait to see how it would render with Blender's Eevee real-time render engine !
mediatheque01.jpg
mediatheque02.jpg
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Emmanuel wrote: 07 Dec 2018, 18:29 ..

Will you add animation and material support ?
...
Thanks for the feedback, it's nice to know that it's helpful to someone.
Might add animation and materials in the future after solving the camera and light issues.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace COB import for Blender

Post by trueBlue »

Awesome Clinton!
Thank you!

Might mention to Save As with the .py file extension. For me it was saving in the .hml file extension
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

trueBlue wrote: 07 Dec 2018, 20:15 Awesome Clinton!
Thank you!

Might mention to Save As with the .py file extension. For me it was saving in the .hml file extension
Can you tell me what browser you're using? It might be smooth for me because python is installed on my system. I'll try to find a machine without python and try it.

Edit: OK found another pc and MS Edge showed the problem. I added a mime type to the website for python files. It should hopefully be ok now.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace COB import for Blender

Post by trueBlue »

Yup I am using Edge - Save Target As
It works as expected now.
Thanks again :D
User avatar
bitkar
Captain
Posts: 2089
Joined: 16 Mar 2010, 07:14
Type the number ten into the box: 0
Location: Czech Republic

Re: trueSpace COB import for Blender

Post by bitkar »

it is definatly useful... i will use it when it supports all lighting and material features. If you can model and setup in tS and render in blender, thats is like a dream.
Michal aka bitkar
tS freak since tS2 (1998) and forever (tS7.61 modeler)
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace COB import for Blender

Post by trueBlue »

bitkar wrote: 12 Dec 2018, 14:07 it is definatly useful... i will use it when it supports all lighting and material features. If you can model and setup in tS and render in blender, thats is like a dream.
Curious?
Why would you want tS lights, cameras, and materials imported?
Wouldn't it be easier and more accurate to use Blender's lights, cameras, and materials?
User avatar
bitkar
Captain
Posts: 2089
Joined: 16 Mar 2010, 07:14
Type the number ten into the box: 0
Location: Czech Republic

Re: trueSpace COB import for Blender

Post by bitkar »

maybe its because I master tS but can do pretty nothiing in Blender...? :) Its easier for tS user to have the most work in tS and render and tweak something minor in blender.
Michal aka bitkar
tS freak since tS2 (1998) and forever (tS7.61 modeler)
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: trueSpace COB import for Blender

Post by Emmanuel »

I understand Bitkar concerns.
trueSpace's workflow is soooo efficient, the less we do in Blender the more we save to spend time with our wife and children :)

Let's take texture painting task. In trueSpace if I want to apply a texture to my object, I just have to clic the Paint tool, select the texture color shader, choose the texture, clic the Paint icon and it's done ! 5 clics only.
Okay, for this time price you don't have all the features the new real-time materials may offer. But who cares ? If you are not designing a video game, and simply want to render an architectural visualization, trueSpace workflow is unbeatable.

Same with scene navigation. When you got used to trueSpace's view widgets and the must-have plugins (ZoomToFit, EyeZoom, FindCamera), moving your eye in a Blender scene is a million years backward.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Another update :)

Found out the rotations were completely wrong and fixed it. Rotations are weird because you can get to the same orientation using different values. So you think you got it then one more test and you see it's not really working.
Light and Camera rotations also working now.
So now animation should be possible in the future.

As of now the things that don't transfer over are:
animation
camera fov
materials
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Couldn't let it go. :)
Last version uploaded today now supports animation. Not thoroughly tested but looks ok to me.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Another update.

Added material color, color texture and bump texture import.
3 color procedural textures: cubes, wrapped checker and wrapped textured brick

Dont fully understand the Blender node material system so it's a bit rough around the edges.

TODO: camera fov and I think the materials probably need some kind of UV mapping node added for the textures.

Edit:
After midnight...
added uv mapping nodes and the textures are better now
camera is a no go for field of view - tS uses size to control the fov but the scale values(not size) saved to the file dont match up
Clinton Reese

http://clintons3d.com
User avatar
Emmanuel
Chief Warrant Officer
Posts: 670
Joined: 14 Jun 2009, 06:47

Re: trueSpace COB import for Blender

Post by Emmanuel »

Clinton, it's a dream come true :worship: :worship: :worship:

:bananaclaus: :bananaguitar: :bananacheers: :bananathumb: :bananalove: :superbanana: :bananamouse: There is no emoticon to express my feelings !

THANK YOU VERY MUCH

Some scenes or textures don't load well and it's not easy to figure what's wrong with it, especially with textures. Also, on big scenes, somes objects are ignored and I can't figure why.

But on a new project jointly built both with trueSpace and Blender it will be easy to identify the type of object that can pass through and the situations that lead to errors. I will report my findings on this topic.
Last edited by Emmanuel on 19 Dec 2018, 10:25, edited 1 time in total.
User avatar
bitkar
Captain
Posts: 2089
Joined: 16 Mar 2010, 07:14
Type the number ten into the box: 0
Location: Czech Republic

Re: trueSpace COB import for Blender

Post by bitkar »

clintonman is THE MAN! i see he is the man that cannot go to sleep when there is something in the back of his head not sorted out :)
Michal aka bitkar
tS freak since tS2 (1998) and forever (tS7.61 modeler)
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Emmanuel wrote: 18 Dec 2018, 19:01 Clinton, it's a dream come true :worship: :worship: :worship:

:bananaclaus: :bananaguitar: :bananacheers: :bananathumb: :bananalove: :superbanana: :bananamouse: There is no emoticon to express my feelings !

THANK YOU VERY MUCH

Some scenes or textures don't load well and it's not easy to figure what's wrong with it, especially with textures. Also, on big scenes, somes objects are ignored and I can't figure why.

But on a new project jointly built both with trueSpace and Blender it will be easy to identify the type of object that can pass through and the situations that lead to errors. I will report my findings on this topic.
Thanks, looking forward to your findings.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace COB import for Blender

Post by clintonman »

Jun 7 2020 Update:

fix material color error
added import of nurbs patches from trueSpace
Clinton Reese

http://clintons3d.com

Return to “Repositorium”