Welcome, Guest

Author Topic: An experiment with models and textures  (Read 76676 times)

Laura

  • *****
  • Posts: 123
An experiment with models and textures
« on: May 27, 2010, 02:13:09 PM »
Here are some results of me fiddling around with putting new textures and models in US2.
It was a proof of concept excercise, but I might as well show it off  ;)

http://www.youtube.com/watch?v=SA7Cl6Z4sY8&fmt=18

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: An experiment with models and textures
« Reply #1 on: May 27, 2010, 02:16:50 PM »
Here are some results of me fiddling around with putting new textures and models in US2.
It was a proof of concept excercise, but I might as well show it off  ;)

http://www.youtube.com/watch?v=SA7Cl6Z4sY8&fmt=18
How...did...you...do...that...*dies*
I can make Sanduleak's systems, but not put new models in it.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: An experiment with models and textures
« Reply #2 on: May 27, 2010, 02:23:40 PM »
Niiiiiiiiiiiiiiiice! That's cool!  ;D

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: An experiment with models and textures
« Reply #3 on: May 27, 2010, 02:32:18 PM »
Epicness.

Although I prefer this Earth texture:

But that's my opinion.
« Last Edit: May 27, 2010, 02:36:33 PM by Naru523 »

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: An experiment with models and textures
« Reply #4 on: May 27, 2010, 02:45:17 PM »
EDIT: You can have the system.

Which then looks like this:

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #5 on: May 27, 2010, 03:17:46 PM »
Epicness.

Although I prefer this Earth texture:

But that's my opinion.
It's a nice one, too, but it's missing some clouds. That's pretty easy to arrange, though.
In choosing the one I did, I picked the highest resolution that I could find which didn't have underwater topography showing and/or bad colors. It's 4000x2000. Too large to post here, unfortunately.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: An experiment with models and textures
« Reply #6 on: May 27, 2010, 03:30:39 PM »
That looks really great.

Did you have to modify any files in the installation folder to do this? Be careful that they may be overwritten when you update to a new version.

Nothing in My Documents will be overwritten or deleted when you update.

I need to add better support for adding your own models and textures. It's coming (but not in the next update).

It's 4000x2000. Too large to post here, unfortunately.

And I just upped the upload limit to the forum to 6MB, is that big enough?

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #7 on: May 28, 2010, 12:26:47 AM »
That looks really great.
Thanks :)
Did you have to modify any files in the installation folder to do this? Be careful that they may be overwritten when you update to a new version.
I created an entry for the ISS in Appearance.xml, and added the model file to the Media folder.
Code: [Select]

                <Object>
         <Name>ISS</Name>
         <TextureDiffuse>iss.dds</TextureDiffuse>
         <Type>Object</Type>
         <Model>iss.x</Model>
         <ColorReal>fffff</ColorReal>
         <ColorVivid>White</ColorVivid>
       </Object>
I was able to keep the texture file in the Media folder of My Documents/Universe Sandbox.
The Earth texture could be defined entirely using that folder and the .ubox file for the system.
Nothing in My Documents will be overwritten or deleted when you update.
Good to know :)
I need to add better support for adding your own models and textures. It's coming (but not in the next update).

It's 4000x2000. Too large to post here, unfortunately.
And I just upped the upload limit to the forum to 6MB, is that big enough?
Looking forward to more straightforward moddability :)
It would particularly excellent if all the required non-standard resources could reside in the .ubox file itself.
6 Mb should be enough, yes. Thanks :)
« Last Edit: May 28, 2010, 01:21:35 AM by Laura »

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #8 on: May 28, 2010, 12:28:16 AM »
Here's the cloudmap I used.
« Last Edit: May 28, 2010, 01:21:47 AM by Laura »

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #9 on: May 28, 2010, 01:22:38 AM »
And the texture.

EDIT: Is this working? For some reason, try as I might, it seems to always download a file of 0 bytes.
I tried reuploading it numerous times. Odd, since the cloudmap works fine.

Alternative location: http://flatplanet.sourceforge.net/maps/images/earthmap_hires.jpg
Note that this is 4000x2000 - for best results, resize to 4096x2048.
« Last Edit: May 28, 2010, 01:33:58 AM by Laura »

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: An experiment with models and textures
« Reply #10 on: May 28, 2010, 09:09:52 AM »
I created an entry for the ISS in Appearance.xml, and added the model file to the Media folder.
Code: [Select]

                <Object>
         <Name>ISS</Name>
         <TextureDiffuse>iss.dds</TextureDiffuse>
         <Type>Object</Type>
         <Model>iss.x</Model>
         <ColorReal>fffff</ColorReal>
         <ColorVivid>White</ColorVivid>
       </Object>
Now I understand. Thanks for the code Laura.

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #11 on: May 28, 2010, 11:01:12 AM »
I created an entry for the ISS in Appearance.xml, and added the model file to the Media folder.
Code: [Select]

                <Object>
         <Name>ISS</Name>
         <TextureDiffuse>iss.dds</TextureDiffuse>
         <Type>Object</Type>
         <Model>iss.x</Model>
         <ColorReal>fffff</ColorReal>
         <ColorVivid>White</ColorVivid>
       </Object>
Now I understand. Thanks for the code Laura.
You're welcome :)
You'll need some sort of modeling software, of course, and the capability of exporting .x files.
I use 3D Studio Max 9 myself, and for that there is a free DirectX exporter called Panda. There are several versions of it, most of which wouldn't work, but version 4.something worked.
I realize Max is a huge investment, so maybe there's something similar for Blender, or something along those lines.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: An experiment with models and textures
« Reply #12 on: May 28, 2010, 04:46:28 PM »
In addtion to .x files you can also use the .3ds file format.

I look forward to adding better model handling capabilities so no manual file manipulation is required.

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #13 on: May 28, 2010, 10:25:32 PM »
In addtion to .x files you can also use the .3ds file format.

I look forward to adding better model handling capabilities so no manual file manipulation is required.
I assume using .x and .dds provides the best possible performance?

APODman

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 225
    • Astronomic Picture of the Day - Brazil
Re: An experiment with models and textures
« Reply #14 on: May 29, 2010, 06:13:41 AM »
I did a simulation with three different maps to earth, one with the Earth 200 million years ago (Pangea), another with Earth was at 65 million years ago (Cretaceous) and another with the current map of the Earth.

Big changes !

The maps used are attached.

[ ]´s
« Last Edit: May 29, 2010, 06:18:24 AM by APODman »

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: An experiment with models and textures
« Reply #15 on: May 29, 2010, 07:43:25 AM »
Nice...

I have a global warming staged Earth as a simulation. Ill try to get it here when I get on the other computer.
« Last Edit: May 29, 2010, 07:51:17 AM by Naru523 »

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: An experiment with models and textures
« Reply #16 on: June 02, 2010, 04:34:08 PM »
Done.

Two possible future events: Global Warming - ice caps melts and lowlands flooded.
or
Snowball Earth - everything is covered in ice and snow except for high mountains.

(note: centered on North America)

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: An experiment with models and textures
« Reply #17 on: June 02, 2010, 04:52:18 PM »
Woudn't mountains be covered first?

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: An experiment with models and textures
« Reply #18 on: June 02, 2010, 05:28:22 PM »
Some nice textures. Love the space station!

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #19 on: June 02, 2010, 10:21:24 PM »
Some nice textures. Love the space station!
Ding! You triggered the bonus  :P

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: An experiment with models and textures
« Reply #20 on: June 02, 2010, 10:30:41 PM »
AWESOME HOW THE HECK???? I NEED THIS! (In tone of "Don't breathe this")

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #21 on: June 02, 2010, 10:39:50 PM »
AWESOME HOW THE HECK???? I NEED THIS! (In tone of "Don't breathe this")
Lifted the model from the Celestia collection of spacecraft (on their site). It came in a lot of individual objects, so I attached everything to the most central of them. Then I exported it as a .x file, though Dan says US2 will accept .3ds as well. I rendered to texture with automatic UV unwrapping and blurred the edges of the resulting collection of faces in photoshop to prevent any unseemly seams.

EDIT: No, that's what I did for the ISS... the cassini texture is just blotches of colors plastered over the relevant areas.

Then it was just a matter of dropping both those files in the Media dir of US2 and adding code similar to that shown earlier in this thread.
I'll attach the files, as I believe the model is public domain.
« Last Edit: June 02, 2010, 10:44:43 PM by Laura »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: An experiment with models and textures
« Reply #22 on: June 02, 2010, 10:44:13 PM »
So this is the first step towards uncircular meshes? For like asteroids?

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: An experiment with models and textures
« Reply #23 on: June 02, 2010, 10:45:28 PM »
So this is the first step towards uncircular meshes? For like asteroids?
It's the first and only step towards it.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: An experiment with models and textures
« Reply #24 on: June 02, 2010, 10:45:52 PM »
Only? You pessimist.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: An experiment with models and textures
« Reply #25 on: June 02, 2010, 10:46:37 PM »
Only? You pessimist.
No, it really is the only step! You just make models, and you put them in!

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: An experiment with models and textures
« Reply #26 on: June 02, 2010, 10:47:49 PM »
I need to learn 3d then... Can someone teach me? I would like to make an asteroid. Or something.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: An experiment with models and textures
« Reply #27 on: June 02, 2010, 10:48:13 PM »
I need to learn 3d then... Can someone teach me? I would like to make an asteroid. Or something.
Use Blender. *slaps your face* Just go into a certain mode that allows you to move the points on the sphere.

Laura

  • *****
  • Posts: 123
Re: An experiment with models and textures
« Reply #28 on: June 02, 2010, 10:48:47 PM »
Only? You pessimist.
No, it really is the only step! You just make models, and you put them in!
Quite true  :D
An asteroid was actually the first thing I did.

That is just a sphere with many faces with a displacement modifier using random perlin noise.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: An experiment with models and textures
« Reply #29 on: June 02, 2010, 10:49:18 PM »
Does that make dds? And how do you make stuff? I'm not skilled.