Issue with Taranis dock

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Issue with Taranis dock

Post by phkb »

I'm trying to fix the dock on the Taranis station, so that you don't end up seeing the large blue ball before the docking sequence kicks in. I solved it previously by reverting to the deprecated method of defining a docking port, but ILS doesn't know how to work with that method, and it's deprecated anyway.

So I'm readdressing the issue. Something odd seems to be happening the moment your ship passes the station's dock threshold. Here's some screen shots to demonstrate.

Here, I've lined up the view with the dock.
Image

Zooming in now, still outside the station bounds, all OK so far.
Image

Here, I'm *just* outside the bounds of the dock.
Image

And here, I've *just* crossed over the bounds to be inside the dock.
Image

The important thing to note on that last screenshot is that you can still see the docking port flashers in front of you (the ones on the back wall of the dock, and a couple of the ones on the side walls). Which means, you should be seeing the walls of the dock around you. But instead, they've all vanished.

I've tried a couple of solutions (grabbing docks from other working stations and massaging them into place; creating a black outer case for the dock, slightly bigger than the actual dock, to block the internal view) all without results. I've also checked the dock itself, and I can position myself inside it successfully (using the "Test Ship Model" tool as used in the above screenshots), so the sub-entity itself seems to be OK.

Does anyone have any suggestions on what I should be looking for?
User avatar
Cholmondely
Archivist
Archivist
Posts: 5365
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Issue with Taranis dock

Post by Cholmondely »

To be quite blunt, I really don't see the glimpse of the main station behind as a problem. I always saw it as part of the docking process, that I could see through to the central orb.

The ILS 90° twist is however a real problem in my eyes - especially for users who have never had to disable ILS (which comes on automatically when one tries to manually dock).

Although, having said that, we now have more and more stations for which ILS does not properly work - no longer just salvage gangs and hacker bases, but now also the Isis Interstellar HQ (has KW declared war on ILS?).



Again, you really have done a stunning job with your retexture. I very much like it.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: Issue with Taranis dock

Post by cbr »

Does anyone have any suggestions on what I should be looking for?
So the outer ring is the model 'defined' with the dock entity, is the width of the ring model smaller than the length of the dock model?
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Issue with Taranis dock

Post by phkb »

Cholmondely wrote: Mon Jan 22, 2024 12:20 pm
To be quite blunt, I really don't see the glimpse of the main station behind as a problem. I always saw it as part of the docking process, that I could see through to the central orb.
It's more of a case of "This *shouldn't* be happening, so what is going on", more than "This is a game breaking bug". I don't understand why the dock walls suddenly disappear, and I'd like to get to the bottom of the mystery.
cbr wrote: Mon Jan 22, 2024 4:43 pm
So the outer ring is the model 'defined' with the dock entity
Yes.
cbr wrote: Mon Jan 22, 2024 4:43 pm
is the width of the ring model smaller than the length of the dock model?
No. The dock entity is only about half the width of the ring, so it fits well inside it.

Here's a short YouTube video that shows the issue in game. In it, I've stopped my ship just as the dock walls disappear. I then use external views to have a look around.
Oolite 1.91 example of taranis dock issue
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Issue with Taranis dock

Post by Wildeblood »

phkb wrote: Tue Jan 23, 2024 10:55 pm
cbr wrote: Mon Jan 22, 2024 4:43 pm
is the width of the ring model smaller than the length of the dock model?
No. The dock entity is only about half the width of the ring, so it fits well inside it.

Here's a short YouTube video that shows the issue in game. In it, I've stopped my ship just as the dock walls disappear. I then use external views to have a look around.
Oolite 1.91 example of taranis dock issue
Forgive my impertinence, but in the same spirit of eliminating the obvious, but possibly overlooked: you don't perchance have the Cobra's viewpoint set well ahead of the ship model?
In your heart, you know it's flat.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Issue with Taranis dock

Post by phkb »

Wildeblood wrote: Wed Jan 24, 2024 10:32 am
Forgive my impertinence, but in the same spirit of eliminating the obvious, but possibly overlooked: you don't perchance have the Cobra's viewpoint set well ahead of the ship model?
Good thought, but no, that's the standard Cobra Mk3, normal view position. Also, you can see in the video that the Cobra has only barely crossed the threshold. Again, you can see the diamond flasher arrangement that sits at the rear of the docking box, but the walls have disappeared.

When I move to the external view, all sorts of weird things happen. Not sure I can explain what's going on there. I'm hoping someone who has done a bit of station modelling might have some insight into what the issue might be.
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: Issue with Taranis dock

Post by cbr »

Image

I moved the dock entity closer to the center. through the gap you can see outside of the ring ( images ).
So the dock entitiy used can be correct and the way the ring model was processed is the culprit in the current game...
Commander_X
---- E L I T E ----
---- E L I T E ----
Posts: 675
Joined: Sat Aug 09, 2014 4:16 pm

Re: Issue with Taranis dock

Post by Commander_X »

Not sure if it helps, but looking at the models, it seems the normals are reversed:
Image

The station should be blue on the outside, and the dock should be blue on the inside.

For reference, this is how the oolite_coriolis_dock.dat file looks:
Image
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Issue with Taranis dock

Post by phkb »

Commander_X wrote: Wed Jan 24, 2024 6:09 pm
Not sure if it helps, but looking at the models, it seems the normals are reversed:
I've had a go at reversing the normals, but although I could get the everything into Wings3D, I've been unable to fix anything. I'm not sure I'm doing it correctly, even though adjusted the models seem to load into Oolite OK.

I'm sorry to be a pain, but if swapping the normals is a fairly simple task, could I get you do run the process and send me the Obj files (or Dat files, but I've got the process of converting Obj to Dat working, so I can do that step)?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Issue with Taranis dock

Post by another_commander »

Inverted faces maybe? You seem to be seeing the model partially inside out.
User avatar
hiran
Theorethicist
Posts: 2403
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Issue with Taranis dock

Post by hiran »

phkb wrote: Thu Jan 25, 2024 2:12 am
Commander_X wrote: Wed Jan 24, 2024 6:09 pm
Not sure if it helps, but looking at the models, it seems the normals are reversed:
I've had a go at reversing the normals, but although I could get the everything into Wings3D, I've been unable to fix anything. I'm not sure I'm doing it correctly, even though adjusted the models seem to load into Oolite OK.

I'm sorry to be a pain, but if swapping the normals is a fairly simple task, could I get you do run the process and send me the Obj files (or Dat files, but I've got the process of converting Obj to Dat working, so I can do that step)?
What happens if the ship is positioned outside? Beware, outside is where the blue sides are facing...
So we'd simply have to place a witchpoint at the center of the station...
Sunshine - Moonlight - Good Times - Oolite
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Issue with Taranis dock

Post by phkb »

hiran wrote: Thu Jan 25, 2024 7:00 am
What happens if the ship is positioned outside?
Everything looks fine from the outside. Issues only surface when your view is inside the bounds of station dock.
User avatar
hiran
Theorethicist
Posts: 2403
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Issue with Taranis dock

Post by hiran »

phkb wrote: Thu Jan 25, 2024 7:05 am
hiran wrote: Thu Jan 25, 2024 7:00 am
What happens if the ship is positioned outside?
Everything looks fine from the outside. Issues only surface when your view is inside the bounds of station dock.
...but if the model is reversed, outside is not from where you aproach the station.

If the normals were reversed and invisible tiles do not get rendered at all we would see some special effect as the front side of the station would be see-through, while the backside of the station were visible.

Yep it's strange.
Sunshine - Moonlight - Good Times - Oolite
Commander_X
---- E L I T E ----
---- E L I T E ----
Posts: 675
Joined: Sat Aug 09, 2014 4:16 pm

Re: Issue with Taranis dock

Post by Commander_X »

phkb wrote: Thu Jan 25, 2024 2:12 am
[...] I'm sorry to be a pain, but if swapping the normals is a fairly simple task, could I get you do run the process and send me the Obj files (or Dat files, but I've got the process of converting Obj to Dat working, so I can do that step)?
Swapping the normals is a fairly simple task (at least in Blender) :). The more challenging will be the auxiliary tasks of:

- Converting the DATs in OBJs (w/ textures, unless you really want to mess with re-UVing the model)
- Converting back the OBJs to DATs
- A final conversion from DATs to OBJs to confirm the normals look good.

I spent some time yesterday to re-fix my Dat2ObjTex_local.py file of mine, as it seems the DATs used here (in Taranis OXZ, that is) are not the best example of what I initially worked with when produced the "_local" version.
This could also explain some of the issues you're encountering. It really depends on what/how the in-game parser of the DAT files does when poorly formatted files are fed to it.

EDIT: Will try to send you the DATs by tomorrow. The wolfmk2 DAT file looks good though.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Issue with Taranis dock

Post by phkb »

Commander_X wrote: Thu Jan 25, 2024 2:57 pm
Will try to send you the DATs by tomorrow.
Thanks, Commander_X. Dat files received successfully.

I wish I could report that fixed the issue, but I have really hit a brick wall on this one. Nothing I try corrects the problem. And I have tried:
  • Removing everything but the dock subentity (that is, the ring, ball, flashers and turrets)
  • Removing everything and replacing the dock subentity with a known working one (ie the "oolite_coriolis_dock")
  • Making the ring a subentity.
In all of those experiments, the back wall of the dock continues to disappear as soon as you cross the threshold.

So for the moment I'm going to park this one. If someone else wants to explore the problem, feel free to play around. And thanks to everyone who helped me get this far.
Post Reply