Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Development Developers post news, updates, & discussions here about your projects in development.

Reply
 
Thread Tools
Old 01-31-2019, 04:07 PM   #16
Donamy
Beta Tester


Default

The MBS has to translate. With movable attachment points, or just have that a separate module.
Donamy is offline   Reply With Quote
Thanked by:
Old 01-31-2019, 04:21 PM   #17
fred18
Addon Developer

Default

It seems a robotic arm to me from my usage, am I wrong? so the list of arms are:
- SSRMSD
- JEMRMS
- MBS
- DEXTRE

any other?
fred18 is offline   Reply With Quote
Thanked by:
Old 01-31-2019, 04:46 PM   #18
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Should be all. The European Robotics Arm went the way of the Dodo.

EDIT: OK, not that dead yet. It might launch this year. But it still feels dead. Strange.

Last edited by Urwumpe; 01-31-2019 at 04:49 PM.
Urwumpe is online now   Reply With Quote
Thanked by:
Old 01-31-2019, 05:15 PM   #19
Donamy
Beta Tester


Default

I wouldn't consider the Strelas robotic arms per say, but they will need attachmnets.
Donamy is offline   Reply With Quote
Old 01-31-2019, 05:18 PM   #20
fred18
Addon Developer

Default

Quote:
Originally Posted by Donamy View Post
 I wouldn't consider the Strelas robotic arms per say, but they will need attachmnets.
Attachments and docks will rigorously get to the unique vessel in the same place they are in the scenario configuration. They will be anyway customizable via configuration file
fred18 is offline   Reply With Quote
Old 01-31-2019, 05:53 PM   #21
Donamy
Beta Tester


Default

Where will the 0,0,0 coordinate be ? Unless it doesn't matter.
Donamy is offline   Reply With Quote
Old 01-31-2019, 06:08 PM   #22
fred18
Addon Developer

Default

Quote:
Originally Posted by Donamy View Post
 Where will the 0,0,0 coordinate be ? Unless it doesn't matter.
my idea is to make it where the CMG is, so the station will rotate around it. I could also calculate it, but it will make things much more complicated.
fred18 is offline   Reply With Quote
Thanked by:
Old 01-31-2019, 07:10 PM   #23
Zandy12
Add-on Developer
 
Zandy12's Avatar
Default

Can you also include the MBS as is along with the other robotics?? That was one of the other ones. Also where you able to get the night lighting to work?
Zandy12 is offline   Reply With Quote
Old 01-31-2019, 07:36 PM   #24
Donamy
Beta Tester


Default

Please change one thing. there are no lights on the Zvezda solar arrays.
Donamy is offline   Reply With Quote
Old 01-31-2019, 07:54 PM   #25
fred18
Addon Developer

Default

Quote:
Originally Posted by Zandy12 View Post
 Can you also include the MBS as is along with the other robotics?? That was one of the other ones. Also where you able to get the night lighting to work?
I lost you for a second. At the current moment the vehicles will be:
- ISS
- 4 robotic arms: SSRMSD,JEMRMS, MBS, DEXTRE: these will be attached to the main vessel as it is now.
- Cupola

I haven't worked on the final vessel yet, so about lighting I haven't started. But in many other addons I made the light was working so I don't see why I should not make ti work.


Quote:
Originally Posted by Donamy View Post
 Please change one thing. there are no lights on the Zvezda solar arrays.
Sure, and anyway as said my intention is to let the lights be customizable through the configuration file
fred18 is offline   Reply With Quote
Old 02-01-2019, 08:37 PM   #26
fred18
Addon Developer

Default

So phase 1 is finally over:
I now have the entire set of meshes already animated saved and all their rotations and offsets saved and correct. In fact, I designed my plugin that works on the scenario so it directly writes the code of the final addon, I already tested it and it works perfectly.

I'd like to spend a couple of words on this phase, since it can seem simple but it was some kind of madness:
In order to get everything I needed, with so many vessels and such a complexity, I only had the option of proceeding through coding and not by hand. So I designed a plugin that allowed me to do the following.
Starting from a pivot vessel I had to find the way to get all the meshnames of the linked vessels, all their rotations and all their offsets, starting with nothing else than the scenario and the dockings/attachments between them.
So I chose the CMG which is a good starting point for this and I designed the plugin so connection by connection it is capable of identifying the rotation matrixes of the connections and store a global rotation matrix and global offset. So after this step I had a series of vessels definitions that I knew where they were and how they were rotated.
Then I had to get the meshes from them.

Even though this might look simple it was not so simple: for some vessels I could use the orbiter functions directly, for SC3 vessels I had to go and make the plugin directly parse the ini file of the various SC3 vessels to find all the meshes (vessels and payloads!) and store them correctly. But still there were some 30 vessels which I couldn't find the meshname, mostly the ISSR part, so I had to make the plugin recreate the first line of each mesh (knowing groups information from orbiter) and go and check for each file inside the mesh folder and subfolders if there was a matching mesh. Amazingly it checks the first 5 lines of more than 1230 files and also dumps out all the information for reference on a text file (huge one because in order to check the process I needed a lot of debug info) in just 2/3 seconds... modern technology still has the ability to surprise me...

So now I had all filenames, where they had to be put and how they need to be rotated.

BUT it was not over at all: for many vessels (almost all of them) I needed to have the animated mesh, not the base one, so for each group of each mesh of each vessel I needed to find out the vertexes position at the animation state that was currently in the sim. Jarmonik helped me with his special funciton in D3D9, but i was already well ahead in the process of developing the code for this so I used his function as a check. I basically had to recreate completely the orbiter animation structure to get correctly how each group was manipulated by each animation. Once this was done (after some time awake while the babies where sleeping ) I then could let my plugin rewrite all the mesh files (of course in a separate dedicated folder!!!) with the animated vertexes and have stored the rotation of each mesh and the offset of each mesh.

I also had to use some tricks... for example I found out that SC3 sets the animation state at every step so it was messing all my work. So I made the plugin set the simulation to pause as soon as all the animations were reset so SC3 could not set again all those.

So then I plugged in the new unique vessel the code I made my plugin write and ...







That is a unique vessel with 229 meshes on...

The solar panels are not animated yet of course so you see them just in their base position. All the experts: please don't jump at me already if you see any imperfection because this is just the first step... please notice if anything is out of place of course but remember that now the fun part begins: preparing the vessel so it can work from a configuration file and can be highly customizable. for now anyway, I'm pretty happy because the phase 1 could seriously have been a show stopper due to its complexity!


Last edited by fred18; 02-01-2019 at 09:08 PM.
fred18 is offline   Reply With Quote
Old 02-01-2019, 09:00 PM   #27
Zandy12
Add-on Developer
 
Zandy12's Avatar
Default

fred18, you are the man! I can't wait until this comes out.
Zandy12 is offline   Reply With Quote
Thanked by:
Old 02-01-2019, 09:28 PM   #28
Donamy
Beta Tester


Default

Will it be able to be customized ? Like changing a mesh if it is updated. Overtime, some things get improved, made more realistic or sometimes need new attachment points.

Great job !!!
Donamy is offline   Reply With Quote
Old 02-01-2019, 09:43 PM   #29
fred18
Addon Developer

Default

Quote:
Originally Posted by Donamy View Post
 Will it be able to be customized ? Like changing a mesh if it is updated. Overtime, some things get improved, made more realistic or sometimes need new attachment points.

Great job !!!
100%!!!
think of it like a sort of Space Station version of SC3.

In fact I am thinking of doing something I will regret but it really does the job here: a simple dialog so users can setup their configuration file for the station directly within the simulation... I hate dialog programming but in this case it can still be simple enough so it won't be a big headache.
fred18 is offline   Reply With Quote
Thanked by:
Old 02-01-2019, 09:49 PM   #30
Donamy
Beta Tester


Default

So that way, you could set up any stage of assembly ???
Donamy is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Addons > Addon Development


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 09:29 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.