Exporting a Blender model with textures to the 3ds format ?

All about models for Celestia. How-to, programs, work in progress...
Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Post #21by John Van Vliet » 13.08.2016, 23:41

John,

could you be more specific ? When I try to open the obj file with cmodview, it doesn't load (I get an error message).

https://github.com/nasa/NASA-3D-Resources/tree/master/3D Models/Curiosity (Dirty
download the blend AND textures

open the blend file ( in blender)
Image

remove the 4 hidden cubes under the rover

then export as a obj
then is cmodview
( FLIP!!! the images upside down top to bottom !!!)
and assign the images to the uv mapped mesh
Image

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #22by Cham » 14.08.2016, 00:40

Blender is so clumsy and ackward to use. I'm unable to select and remove the four pieces you're talking about.

cmodview refuses to load the .obj file.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

john71
Posts: 1009
Joined: 10.08.2016
With us: 8 years 3 months

Post #23by john71 » 14.08.2016, 06:12

Selden: All right, my bad, thanks for the links!
Last edited by john71 on 14.08.2016, 17:25, edited 1 time in total.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Post #24by John Van Vliet » 14.08.2016, 06:27

you might have to reimport the obj file then remove the cubes
then re export it

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 3 months
Location: Italy

Post #25by Goofy » 14.08.2016, 14:13

Following Selden's request, I tried to write a simple ssc for the Curiosity model uploaded here, in order to have it flat on Mars surface.
Here the result.
Please note that in first image 2 left wheels look like covered by sand: it's not a searched feature, I found and left it, remembering what happened to Spirit Rover on 2009.

Here we are 1.jpg
Look at the wheels partially covered by sand


Here we are-2.jpg
Nice, do you agree?


This is the ssc:

Code: Select all

"MSL_Curiosity" "Sol/Mars"
{
   Class         "spacecraft"
   Mesh "MSL_Clean.cmod"
   Radius      1
  LongLat       [137.44 -04.59 0.55]  # Curiosity landing place in galle crater
   Orientation      [100 1 0 0] 
   Albedo      0.50
}

Just now I'm working on textures too, hope to obtain some good results.
Here a very preliminary example:

:smile:
comparison-1.jpg


Click on images to see them in full resolution.
Bye soon
Goofy
Last edited by Goofy on 14.08.2016, 14:23, edited 1 time in total.
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #26by Cham » 14.08.2016, 14:22

This is the clean version. The dirty version is nicer.

About the SSC, I already have the one corresponding to the exact point of landing :

Code: Select all

SurfaceObject "Curiosity:Mars Science Laboratory" "Sol/Mars"
{
   Class "spacecraft"
   Mesh "Curiosity.cmod"
   Beginning "2012 08 06 5:17:57.3"
   Radius 0.0015 # about 3 meters long
   FixedPosition { Planetographic [ 137.4417 -4.5895 0.002] }
   FixedAttitude { }
   #Orientation [ 90 1 0 0 ]
   Albedo 0.1

   InfoURL "http://en.wikipedia.org/wiki/Curiosity_rover"
}
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 3 months
Location: Italy

Post #27by Goofy » 14.08.2016, 16:45

Thank you Cham, it's perfect.
So waiting for your cmod model....
Bye soon.
Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #28by Cham » 14.08.2016, 16:56

Take note that my actual dirty version has missing holes on its wheels. I'm currently unable to convert the right wheels.

The version without the holes is already pretty satisfying, but I'll try another way during the following days.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #29by Chuft-Captain » 15.08.2016, 08:15

I'm seeing depth-sorting issues with the "dirty" CMOD ... which suggests to me that maybe there is some transparency in the model. Anyone else seeing this?

dirty.jpg
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #30by selden » 15.08.2016, 10:27

Are you using the original PNG surface texture images? I think they have Alpha channels which confuse Celestia. Try converting them to jpeg images to eliminate the Alpha (transparency) channels. Celestia has always had problems depth sorting transparent surfaces that are part of the same object.
Selden

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 3 months
Location: Italy

Post #31by Goofy » 15.08.2016, 10:31

Yes, the same for me. :sad:
See images.
Bye
Goofy :smile:

not nice.JPG
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #32by selden » 15.08.2016, 11:40

Yup. It's the PNG images.
You need to convert them either to JPG images or to PNG images with no transparency.

With original PNG surface texture images:
dirty_1.jpg


With PNG surface texture images with no transparency:
dirty_2.jpg
Selden

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #33by Chuft-Captain » 15.08.2016, 11:52

Cheers Selden,

I hadn't noticed that the CMOD still refers to textures using the wildcard ( ".*") ... which means if you don't remove the original PNG's from the textures folder, it uses them in preference to the newly created .JPG's.
Easy fix is to just get rid of the PNG's which allows the CMOD to find the JPG's instead.
An alternative would be to hardcode the texture references in the CMOD to refer to the JPG's only.

CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #34by Cham » 15.08.2016, 14:52

Okay ! With the help of a specialist on another forum, I succesfully imported the whole model with all its textures in my favorite modeler.

Expect a final model in the following days ! :biggrin:

Added after 7 minutes 42 seconds:
I'm working on the model. There are lots of special pieces that aren't usefull for Celestia that need to be erased. This is why the model was so big (for what it is).
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 3 months
Location: Italy

Post #35by Goofy » 15.08.2016, 15:51

With all pngs converted to jpgs it's OK.

It's OK.JPG


But with a little glitch in all the 6 wheels, thet moreover show only normal, not dirty texture, I think.... :sad:

but with this glitch.JPG


Well done, anyway.
Thanks a lot.
Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #36by Cham » 15.08.2016, 16:48

Here's a preview of the work in progress. The model shown here isn't final, of course. Just a test. But I know that the final work will come later today or tomorrow ! :biggrin:

curio.jpg
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Goofy
Posts: 280
Joined: 30.08.2011
With us: 13 years 3 months
Location: Italy

Post #37by Goofy » 15.08.2016, 17:09

Wow, the holed wheels!
You won! :clap:
Cannot wait to try it:
Bye soon

Goofy :smile:
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #38by Cham » 16.08.2016, 00:38

I now have one version ready for release :
Curiosity_ready.jpg


Before releasing it, I want to do another try at using full PNG textures (without transparency), since JPGs degrade the quality of the textures (even with the lowest compression level). JPG sucks !
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"


Return to “Modelling”