Welcome, Guest

Author Topic: Requests for New Save & XML Features  (Read 16038 times)

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Requests for New Save & XML Features
« on: June 08, 2010, 07:22:56 PM »
In the next week I plan to add and release a new update with improved save and manual xml creation features.
A number of improvements have been mentioned in other forum threads, but I'd like to have a definitive list here. Feel free to add links to other threads here.

What would you like to see and/or what should they be called and/or what should the formatting be?

Here are two already on the list:

<Temperature>5000 K</Temperature>
<Luminosity>1 sun</Luminosity>

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Requests for New Save & XML Features
« Reply #1 on: June 08, 2010, 07:38:39 PM »
<RotationPeriod>n</RotationPeriod> actually works now :) n = hours
But do add the ability to make an object with star properties without it being a known and cataloged star - that is to say Luminosity and Temperature.
Also, the ability to add custom ring systems and multiple asteroid belts in .xml
And a gentler falloff value for the new lighting system would be great, too, or perhaps an exposure setting that can amplify the light :)
Even a simplified version of it would work; no falloff at all, and only the nearest star is a light source.

Any additional thoughts on how you'd like all or any of this to work?

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Requests for New Save & XML Features
« Reply #2 on: June 08, 2010, 10:30:56 PM »
It will be awesome with temperature and luminosity!
An idea could be a list of available xml commands that will work in the program, like a button you can click and check for reference. Or is the manual xml creation outside the program?

Laura

  • *****
  • Posts: 123
Re: Requests for New Save & XML Features
« Reply #3 on: June 09, 2010, 12:46:40 AM »
This list turned out to contain items not directly related to .xml support, but most of the entries are :)

1) As for the multiple rings/belts, allow more than one such entry per body in xml.

2) Also, it would be fantastic if the belts could have a full set of orbital parameters to set, or at a minimum just inclination :)

3) For the rings, it would be nice if we could specify a custom gradient to use as well as a way to set the size.

4) External model support in the form of allowing model files to be in the user media folder, and a way to specify a model without having to edit appearance.xml - much cleaner that way.

5) Re-enable the normal mapping option if possible :) If you do, make it specifiable directly from the system.xml

6) About the lighting, I think the easiest thing would be to set a generous radius (maybe half a light year or so) inside which there is no falloff whatsoever. It may not be realistic, but a bunch of dark outer planets aren't much to look at either :) We can just think of it as exposure compensation. The basic amount of light emitted should of course be directly related to <Luminosity>.

7) If possible, fix the density problems that arise when exploding objects.

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: Requests for New Save & XML Features
« Reply #4 on: June 09, 2010, 07:53:45 AM »
It would be nice if there was an axial tilt xml. (which I think there is :P)

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Requests for New Save & XML Features
« Reply #5 on: June 09, 2010, 10:33:25 AM »
Time to debunk the XML's! (Appearance and... the other ones that all the data comes from!)

Laura

  • *****
  • Posts: 123
Re: Requests for New Save & XML Features
« Reply #6 on: June 09, 2010, 02:18:52 PM »
It would be nice if there was an axial tilt xml. (which I think there is :P)
There is <Action>rotate=n</Action>

Sanduleak

  • *****
  • Posts: 97
  • sanduleak.org
    • The Cinderdar Observatory
Re: Requests for New Save & XML Features
« Reply #7 on: June 10, 2010, 12:19:02 PM »
Hey Dan

I'm thrilled to know you're going to add save capabilities :)

As you know I'm a great fan of the rotX, rotY, rotZ and color tags.

Also, if the saves could remember the status of the various settings like Background, projected path and trails it would be perfect. But for this I think we should also have a 'safe mode': just in case the settings are too demanding and cannot load up on a given CPU.

Chuck14

  • ***
  • Posts: 23
Re: Requests for New Save & XML Features
« Reply #8 on: June 10, 2010, 03:26:03 PM »
I have big questions on customizing the xml files!! ??? ??? ???

Laura

  • *****
  • Posts: 123
Re: Requests for New Save & XML Features
« Reply #9 on: June 10, 2010, 05:15:03 PM »
I have big questions on customizing the xml files!! ??? ??? ???
Start here: http://universesandbox.com/support/newsystems.htm
That should answer all but a few questions :)

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Requests for New Save & XML Features
« Reply #10 on: June 10, 2010, 06:34:53 PM »
Dan, I think you need to update that to have the other XML codes like the Color tags and some other "hidden" XML tags.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Requests for New Save & XML Features
« Reply #11 on: June 10, 2010, 06:36:43 PM »
... and some other "hidden" XML tags.

What do you mean by hidden?

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Requests for New Save & XML Features
« Reply #12 on: June 10, 2010, 06:53:37 PM »
Tags not in the page above.

Like the new discovered (you definetly knew about it) from Laura <Action>rotate=n</Action>, that's not in the section about the action tag.

Laura

  • *****
  • Posts: 123
Re: Requests for New Save & XML Features
« Reply #13 on: June 10, 2010, 10:22:02 PM »
I believe that one actually is there, but yes, that page could use an update so that all options are covered, now that you're adding new ones :)

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Requests for New Save & XML Features
« Reply #14 on: July 07, 2010, 04:03:49 PM »
I've finally begun work on updating the save and open code (for the 2.0.9 release).

One feature that I've implemented is that the XML markup is now case insensitive. This should save some headaches for some of you in the future.

Let me know if there are any other feature or improvements you'd like to see (in addition to those shared above).

APODman

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 225
    • Astronomic Picture of the Day - Brazil
Re: Requests for New Save & XML Features
« Reply #15 on: July 07, 2010, 08:08:52 PM »
I think it would be interesting a function that making objects invisible.

I'm testing the function of resonance and thought it would be a useful function does not display a particular object in the simulation despite their visual absence it affects gravitationally the simulation.

For example, in my simulation of the resonance Cruithne I had to modify the color of all other objects to black so they did not interfere with visualization of the simulation. But this was not entirely successful because as we see in orbit Cruithne sometimes it is intersected by "black failures", that are the crossings of the orbit of Venus due to rotate frame:



After turn the color of Venus to black I have this:



I think that a button that you could "go away" with the image of the planet and its orbit but maintaining in the simulation its presence in gravitational terms, would be very interesting !

Other improvements that would be interesting it's an "autopilot" like the one found in the Gravity Simulator.

These options would be very useful especially a function to stops the simulation automatically after a time determined by the user, this would save us to stay in front of the computer when running long simulations, at slow timesteps, waiting for the right moment to observe certain event or made some interaction with the simulation.

I really think that all functions of the autopilot option of Gravity Simulator could be included in Universe Sandbox.

[ ]´s

frankdepinte

  • **
  • Posts: 17
Re: Requests for New Save & XML Features
« Reply #16 on: July 08, 2010, 02:19:13 PM »
Nice work !
tried diameter Venus =1 m?

infringement153

  • ****
  • Posts: 48
Re: Requests for New Save & XML Features
« Reply #17 on: July 08, 2010, 02:22:28 PM »
You can make bodies "go away" by un-checking the "bodies" box on the right side menu.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Requests for New Save & XML Features
« Reply #18 on: July 08, 2010, 02:27:30 PM »
You can make bodies "go away" by un-checking the "bodies" box on the right side menu.
No, that would make all bodies go away, not just one. He only wants one to go away.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Requests for New Save & XML Features
« Reply #19 on: July 08, 2010, 03:14:27 PM »
After turn the color of Venus to black I have this:

So you want to be able to toggle individual trails on and off ?

tried diameter Venus =1 m?

And then hit Q to set bodies to draw at their true size. I need to add that command to the on screen interface.

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: Requests for New Save & XML Features
« Reply #20 on: July 09, 2010, 09:37:15 AM »
After turn the color of Venus to black I have this:

So you want to be able to toggle individual trails on and off ?



I believe he wants the ability to turn the planet off.  As if you made the it invisible but all the physical properties are still there and trails.

Also turning certain trails off would help him too.

moozoo

  • *
  • Posts: 8
Re: Requests for New Save & XML Features
« Reply #21 on: July 26, 2010, 11:25:56 PM »
I'd like a full XML export option that exports all of the simulation data.
This so , after setup up and testing a simulation in universe sandbox, I can export and then import it into a faster more detailed simulator (QYMSYM or mercury6)

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Requests for New Save & XML Features
« Reply #22 on: July 27, 2010, 10:32:17 AM »
I'd like a full XML export option that exports all of the simulation data.
This so , after setup up and testing a simulation in universe sandbox, I can export and then import it into a faster more detailed simulator (QYMSYM or mercury6)

What format or units would this need to be in?

What simulation data are you most interested in?

Save is still incomplete, and while it's not obvious, I did make some changes to the save system in a recent update that laid the foundation for a 2nd round of improvements in the near future.

moozoo

  • *
  • Posts: 8
Re: Requests for New Save & XML Features
« Reply #23 on: August 05, 2010, 01:39:44 AM »
What format or units would this need to be in?
What simulation data are you most interested in?
Save is still incomplete, and while it's not obvious, I did make some changes to the save system in a recent update that laid the foundation for a 2nd round of improvements in the near future.

Well if I set up a simulation and save it, its in ubox format. This appears to be a binary format.
I couldn't find any way to save out in xml.

The same format as http://universesandbox.com/support/newsystems.htm would be great.

Anything I can read in and spit out in a different format would be great.

Laura

  • *****
  • Posts: 123
Re: Requests for New Save & XML Features
« Reply #24 on: August 05, 2010, 03:59:13 AM »
.ubox is really just .zip
Rename it accordingly, and you can unpack it :)

moozoo

  • *
  • Posts: 8
Re: Requests for New Save & XML Features
« Reply #25 on: August 06, 2010, 05:45:08 AM »
.ubox is really just .zip
Rename it accordingly, and you can unpack it :)

opps... thanks Laura I didn't know that.
Yes the system.xml file inside appears to have what I wanted  :)

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Requests for New Save & XML Features
« Reply #26 on: August 06, 2010, 11:13:12 AM »
Eventually the ubox format will be able to contain custom models, textures, dust info, and trail data. It's on the list to do.

I also need to develop some tools for more easily opening and editing ubox files. Still figuring out how to make this easy and intuitive.

Maccara

  • **
  • Posts: 17
Re: Requests for New Save & XML Features
« Reply #27 on: August 14, 2010, 08:01:26 AM »
One thing that would be great for XML would be some form of XPath support. That would make it possible to do something like: /System/Object[contains(Name,'Centauri')] to add all the stars having the phrase "Centauri" in the name in a single Body statement without having to enter them one-by-one by hand.

(first, even a basic xpath support would be neat, but in the future proper xslts etc to get something like [Mass>1 Sun] working would be eeexcellent)

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Requests for New Save & XML Features
« Reply #28 on: August 30, 2010, 06:23:45 PM »
Hello, Dan! I think that a Copy of Included Systems with all the simulations would be great rather than the ones coming with 1.0.something

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: Requests for New Save & XML Features
« Reply #29 on: September 23, 2010, 10:11:22 AM »
I've made some progress on saving and loading dust, however it won't be in the next update, but likely the one after that.

The save feature is embarrassingly under developed; I'm working on it.

---

The next version should have a built in tool to make creating and extract ubox files much easier.

Just drag an xml file or folder with xml files onto the target to instantly create a ubox file.
Or drag a ubox file onto the target to create a folder with its contents extracted.

This should ease the complexity of editing and creating ubox files in the future.
« Last Edit: September 23, 2010, 05:17:42 PM by Dan Dixon »