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 02-09-2015, 08:46 PM   #136
orbitingpluto
Orbiteer
Default

Quote:
Originally Posted by Zach121k View Post
 Oh, I know this, I'm just surprised that there hasn't been one created yet. I'm not too keen on using the scenario editor, it could be added in after the major stuff is done using the existing Delta IV addon?
I'm guessing your not familiar with the kind of scenario editing I'm talking about: what I'm on about is opening up the .scn files with notepad editing them directly. The Scenario Editor is a bit different and also somewhat limited compared to what can be done with a directly.

Anyway, I would guess there isn't much left to do regarding a EFT-1 addon: francisdrake's Orion is available along with an back tile texture; there's two Delta 4 addons to choose from(
Velcro
or
virii2k's
), and if one is using the Velcro Delta 4 and wanted a launch facility, there's
Kev's LC 37
. There might be some mesh work needed, to have the fairings and other hardware connecting the Orion to the Delta 4, but that's just visual stuff.

So long as your specific on which Delta 4 Heavy addon you wish to use, I could put together the scenario for you. Just ask.
orbitingpluto is offline   Reply With Quote
Old 02-09-2015, 10:02 PM   #137
Zach121k
Orbinaut
Default

Quote:
Originally Posted by orbitingpluto View Post
 I'm guessing your not familiar with the kind of scenario editing I'm talking about: what I'm on about is opening up the .scn files with notepad editing them directly. The Scenario Editor is a bit different and also somewhat limited compared to what can be done with a directly.

Anyway, I would guess there isn't much left to do regarding a EFT-1 addon: francisdrake's Orion is available along with an back tile texture; there's two Delta 4 addons to choose from(Velcro or virii2k's), and if one is using the Velcro Delta 4 and wanted a launch facility, there's Kev's LC 37. There might be some mesh work needed, to have the fairings and other hardware connecting the Orion to the Delta 4, but that's just visual stuff.

So long as your specific on which Delta 4 Heavy addon you wish to use, I could put together the scenario for you. Just ask.
That would be amazing, actually I am familiar with that sort, I'm just not used to it. I'm just now getting back into Orbiter after a year or so. Let me check my setup. I'll also need the right Orion file.

I use Delta IV 3.0 by Virii2k.
Zach121k is offline   Reply With Quote
Old 02-09-2015, 11:21 PM   #138
orbitingpluto
Orbiteer
Default

Since I knew an older version had EFT-1 scenarios, I poked around my hard drive before trying to make a new one. The scenario below is from the 03 version, but it works with the latest(07). All credit to francisdrake, as all I did was keep the old version and copy it out of there. There's the Velcro version posted below the viiri2k's Delta, which I also copied.

Code:
BEGIN_DESC
Orion-MPCV on Delta IV Launch Vehicles 3.0 by Tom Harrington

 A = Autopilot

 J = Jettison stages

 F = Jets fairing

 K = work satilite's solar panels 

 M = Mobile Service Tower / Config menu


*****  CUSTOM PAYLOAD  *****

 
 PAYLOAD      sets payloads CFG file location

 MESH         sets payload mesh 

 Z_OFFSET     sets the offset for the payload

 PLDWEIGHT    weight of payload

 Fairing_attached  1 = true / 0 = false (used to launch the dg)

 Disable_Base_Animation  Set to 1 if not using SLC6 or LC37.
  
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 55940.5418242556
END_ENVIRONMENT

BEGIN_FOCUS
  Ship Delta4
END_FOCUS

BEGIN_CAMERA
  TARGET Delta4
  MODE Extern
  POS 26.71 0.08 -95.82
  TRACKMODE TargetRelative
  FOV 45.08
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Orbit
  PROJ Ship
  FRAME Ecliptic
  REF Earth
END_MFD

BEGIN_MFD Right
  TYPE Surface
  SPDMODE 1
END_MFD

BEGIN_SHIPS
ISS:ProjectAlpha_ISS
  STATUS Orbiting Earth
  RPOS -5789696.57 -2862840.65 1930010.38
  RVEL -3676.254 6648.831 -1164.163
  AROT 30.00 0.00 50.00
  AFCMODE 7
  IDS 0:588 100 1:586 100 2:584 100 3:582 100 4:580 100
  NAVFREQ 0 0
  XPDR 466
END
Delta4:delta4/Delta4
  STATUS Landed Earth
  POS -80.5646000 28.5314000
  HEADING 30.00
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  PAYLOAD Orion-MPCV/Orion-MPCV
  MESH Orion-MPCV/orion-lasfair
  Z_OFFSET 1.79
  CONFIG 0.000
  PLDWEIGHT 24500
  Fairing_attached 0
  missiontime 0.000000
END
LC37:delta4/lpad
  STATUS Landed Earth
  POS -80.5646000 28.5314000
  HEADING 210.00
  AFCMODE 7
  PRPLEVEL 0:1.000000
  THLEVEL 1:1.000000
END
END_SHIPS
Code:
BEGIN_DESC
Orion MPCV on the Delta IV Heavy Velcro EELV.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 59602.629167
END_ENVIRONMENT

BEGIN_FOCUS
  Ship DeltaCBC
END_FOCUS

BEGIN_CAMERA
  TARGET DeltaCBC
  MODE Extern
  POS 9.73 -0.51 -123.30
  TRACKMODE TargetRelative
  FOV 50.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Surface
END_MFD

BEGIN_MFD Right
  TYPE Orbit
  PROJ Ship
  REF Earth
END_MFD

BEGIN_SHIPS
Orion:Orion-MPCV\Orion-MPCV
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 10.00
  PRPLEVEL 0:1.000
  MODE 10
END
DeltaStg2:Velcro/D4Stg2_5m
  STATUS Landed Earth
  BASE Cape Canaveral:6
  HEADING 270.00
  TGT_HEADING 095.0
  FUEL 1.000
  CONFIGURATION 0
  SCREENHEIGHT 250.0
;  PITCHMULTIPLE 0.25
  CAMERA 0 0 20.0
  SERIESBURN 0 Orion 0.0 0.0 -2.5  0.0 1.0 0.0
END
DeltaCBC:Velcro/CBC
  STATUS Landed Earth
  BASE Cape Canaveral:6
  HEADING 270.00
  TGT_HEADING 095.0
  FUEL 1.000
  CONFIGURATION 0
  MaxMainThrust = 1888270.35            ; Throttle setting at 57% throughout
  SCREENHEIGHT 225.0
  MINPITCH 10.0
  CAMERA 0 0 50.0
  SERIESBURN 0 DeltaStg2 0.0 0.0 1.2  0.0 1.0 0.0
  PAYLOAD Int Velcro/Parts/Int_CBC_5m Velcro/Parts/Int_CBC_5m 0 0 0 0.1 0 0.0 1.0
END
Dummy1:Velcro/DeltaIVDummyBoost            ; Simulates the high-throttle portion from ignition to t+60
  STATUS Landed Earth
  BASE Cape Canaveral:6
  HEADING 0.00
  TGT_HEADING 095.0
  FUEL 1.000
  CONFIGURATION 0
  PRIMEBOOSTER 0
  CENTERTHRUST 1
  BOOSTERBURN 1 DeltaCBC 0.75 0.0 0.0 0.0 0.0 -1.0 0.0 
END
Dummy2:Velcro/DeltaIVDummyBoost            ; Simulates the throttle-up at T+251 sec.
  STATUS Landed Earth
  BASE Cape Canaveral:6
  HEADING 0.00
  TGT_HEADING 095.0
  FUEL 1.000
  CONFIGURATION 0
  PRIMEBOOSTER 0
  CENTERTHRUST 1
  DELAYSTART 251.0
  BOOSTERBURN 1 DeltaCBC 0.01 0.0 0.0 0.0 0.0 -1.0 0.0 
END
LRB1:Velcro/CBC_LRB_L
  STATUS Landed Earth
  BASE Cape Canaveral:6
  HEADING 0.00
  TGT_HEADING 095.0
  FUEL 1.000
  CONFIGURATION 0
  PRIMEBOOSTER 0
  CENTERTHRUST 1
  PARALLELBURN 1 DeltaCBC 1.5 0.0 1.0  1.0 0.0 0.0 
END
LRB2:Velcro/CBC_LRB_R
  STATUS Landed Earth
  BASE Cape Canaveral:6
  HEADING 0.00
  TGT_HEADING 095.0
  FUEL 1.000
  CONFIGURATION 0
  PRIMEBOOSTER 0
  CENTERTHRUST 1
  PARALLELBURN 1 DeltaCBC -1.5 0.0 1.0  -1.0 0.0 0.0 
END
END_SHIPS
To use, copy the scenario you want out of the code tags into Notepad, and save it as a .scn file in your Orbiter\Scenarios folder. Don't forget the black tile texture, and remember to thank francisdrake- it's his Orion, texture, and scenarios, and the most I've done so far is make them convenient to find.
orbitingpluto is offline   Reply With Quote
Thanked by:
Old 02-20-2015, 09:05 AM   #139
francisdrake
Addon Developer
Default Need help on MFD in virtual cockpit

I am stuck. The MFD's do not show up in the VC. I made simple rectangles facing the pilot. They load as blank rectangles with default material.

Attributed the mesh index and mesh group to the MFDs, registered them with oapiVCRegisterMFD. Now they show up as black rectangles, but no MFD is drawn. Anybody got an idea why this could be?
francisdrake is offline   Reply With Quote
Old 02-20-2015, 11:19 AM   #140
simcosmos
Addon Developer
 
simcosmos's Avatar
Default

Quote:
Originally Posted by francisdrake View Post
 I am stuck. The MFD's do not show up in the VC. I made simple rectangles facing the pilot. They load as blank rectangles with default material.

Attributed the mesh index and mesh group to the MFDs, registered them with oapiVCRegisterMFD. Now they show up as black rectangles, but no MFD is drawn. Anybody got an idea why this could be?
Hi Franz,

I was planning to write about this sooner (when reading previous posts where you have mentioned the black MFD's problem) but I was not able yet to hunt some of my development notes... So, what follows next may not be helpful, but here it goes!

I think that have experienced a similar issue, although this was with a spacecraft3.dll vessel. Everything was correctly coded but the MFDs were not showing up...

... And now this is the part that I do not remember: I think that the problem was either related with some video definitions of the graphics card (Mobile Intel(R) 945 Express Chipset on Windows XP SP3) and/or was solved (or came back again) after installing a certain (?) version of Visual C++ routines and/or was also dependent of Orbiter version...

Yes, I know, not really helpful... I will try to hunt for those missing 'simcosmos' development notes or do a few new tests with some files (both from me and you and both on the EeePC and on the main computer = with a dedicated NVIDIA graphics card) to see if we narrow this down to reach any specific conclusion.


EDIT

Ok, did a number of quick tests, with:
- Orbiter's default Deltaglider
- one virtual cockpit of my own that had in the archives and powered by Vinka's spacecraft3.dll.
- OrionMPCV (07)

Results:

---------------------------------------------------------------------------
Ship's VC MFD-2006P1 (EeePC)--2010P1 (EeePC)--2006P1 (Main)--2010P1 (Main)
Delta-glider---------White------------OK------------OK--------------OK----
Spacecraft3.dll-------DDS------------OK------------OK--------------OK----
OrionMPCV 07------ White-----------Black------(not tested)--------Black---
---------------------------------------------------------------------------

Notes:
DDS = no active MFDs although still showing a default texture inside the MFD rectangle : as noted below, the MFD needs to be mapped (the texture does not strictly need to be present but I leave a dummy one anyway, so that the MFD displays 'something' in case of a graphical glitch, etc)

So, at least in my development cases, this seems to be something related with Orbiter version (vs interaction with graphics settings? or installed C++ libraries?, more tests needed).


Franz, in your case, it may be better to do as DaveS / C3PO suggested: when possible, please verify / apply a dummy texture to the MFD rectangles and confirm if you are seeing (or not) that texture when inside the VC. Then we can run a series of additional tests to hunt for other possible causes that may prevent active MFD from being seen

Cheers,
António Maia

Last edited by simcosmos; 02-20-2015 at 03:38 PM. Reason: typos, test table
simcosmos is offline   Reply With Quote
Old 02-20-2015, 12:57 PM   #141
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by francisdrake View Post
 I am stuck. The MFD's do not show up in the VC. I made simple rectangles facing the pilot. They load as blank rectangles with default material.

Attributed the mesh index and mesh group to the MFDs, registered them with oapiVCRegisterMFD. Now they show up as black rectangles, but no MFD is drawn. Anybody got an idea why this could be?
Shot in the dark here, but have you texture mapped it? Orbiter makes use of the texture mapping of an object to draw the MFDs in a VC. So you need to map a dummy texture to the MFD object which Orbiter can use.
DaveS is online now   Reply With Quote
Thanked by:
Old 02-20-2015, 01:59 PM   #142
C3PO
Donator
 
C3PO's Avatar

Default

I was trying to remember how I got it to work, but it's been a few years. I made a dummy texture that I applied in Gmax, and then changed the name of the texture in the mesh file. I couldn't find the old map so I whipped up a simple one that should work.
512x512 bmp
C3PO is offline   Reply With Quote
Old 02-20-2015, 05:44 PM   #143
francisdrake
Addon Developer
Default MFD in virtual cockpit: Solved!

Antonio, DaveS, C3PO: Thanks!

I had already suspected it had to do with rendering the rectangle surfaces, so I defined UV-mapping on them. But this was not sufficient.

Only when I applied a texture to it, as you proposed, the MFDs showed up.
I used the docking port material with its texture, and it worked.

The texture is overwritten by the MFDs, but remains visible in the HUD. Will make a simple black texture for this.


That would be worth mentioning in the API_reference handbook!
There is said "The addressed mesh group should define a simple square (4 vertices, 2 triangles). The group materials and textures can be set to 0."
Obviously rendering a texture is required, at least for some graphic cards.
francisdrake is offline   Reply With Quote
Old 02-20-2015, 09:09 PM   #144
Astro SG Wise
Future Orion MPCV Pilot
 
Astro SG Wise's Avatar
Default

So, does MPCV have usable VC MFDs now?
Astro SG Wise is offline   Reply With Quote
Old 02-21-2015, 10:04 AM   #145
francisdrake
Addon Developer
Default

Well, it will have. Still have to integrate the MFDs into the front panel. The MFDs will only be a visual representation to populate the cockpit, no clickable buttons. Have to make a virtual cockpit as well.

---------- Post added 02-21-15 at 11:04 AM ---------- Previous post was 02-20-15 at 10:58 PM ----------


From the cockpit workshop. Visible out of the window is the near-Earth asteroid 2008 EA9.

One more learning: The MFD material should be emissive white, otherwise the MFDs are hard to read in the dark.
francisdrake is offline   Reply With Quote
Old 03-01-2015, 06:47 PM   #146
francisdrake
Addon Developer
Default

** New version 08 **
Small update, simple virtual cockpit with live MFD's, as shown above.
Astronaut mesh borrowed from UMmu (not yet working).
Different water texture after landing.

The forum would not let me upload the zip-file as an attachment,
too big at 1.3 MB (?). Here is a download link:
http://home.arcor.de/francisdrakex/d...on-MPCV-08.zip
_______

Question: Is there a method so the Sun does not illuminate the cockpit interior?
I tried it with self-illuminating material, but this did not help. Looks funny when the inside walls are lit by the outside sun.
francisdrake is offline   Reply With Quote
Old 03-01-2015, 07:17 PM   #147
Astro SG Wise
Future Orion MPCV Pilot
 
Astro SG Wise's Avatar
Default

Thanks for the update Francis. I agree with the sun, it is quite a glare, and it looks odd in the VC. One recommendation is to make the view out of the windows tinted gold like the windows look from the outside as well.

Quote:
Originally Posted by francisdrake View Post
 Astronaut mesh borrowed from UMmu (not yet working).
Have you ever thought of putting ACES suits in the cockpit? The pumpkins sure would be cool to see on future Orion flights!

Thanks again .
Astro SG Wise is offline   Reply With Quote
Old 04-09-2015, 03:09 PM   #148
pclaurent
Daydreamer
 
pclaurent's Avatar
Default

Hello there... No news from Francis, does it mean the project ends here? I hope not, as we are many hoping to have UMMU support and active MFDs. Anyway, great thanks to Francis for the job already done! Staying tuned...
pclaurent is offline   Reply With Quote
Old 04-09-2015, 04:35 PM   #149
Richfromengland
Orbinaut
 
Richfromengland's Avatar
Default

Mr Drake, I've only just notice this.

Well I did a reinstall of my orbiter folder. So an MPCV, a module, and a Mars For Less file.

Ofcourse the heavy file didn't work, I guess I need that seperately. An auto pilot launch.
Richfromengland is offline   Reply With Quote
Old 04-09-2015, 04:37 PM   #150
francisdrake
Addon Developer
Default

Hi, the project is still active. Could not do much recently, due to real world interferring.
Still, UMMU is on the list for the next version. Will try to make it a release candidat.
Any test reports or creative new scenarios are welcome!
francisdrake is offline   Reply With Quote
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 05:37 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.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright ©2007 - 2017, Orbiter-Forum.com. All rights reserved.