Page 1 of 1

Odd effect when very close to object.

Posted: Thu Aug 24, 2017 8:19 pm
by RockDoctor
I'm not sure if this is a shader effect or what. I came across a derelict, and nudged up against it to see what happened. Drained the fuel. Nudge, bang! Scrape, bang, bang, bang.
Then most of the ship went transparent. Image on box: https://app.box.com/s/7u1tu14xl235flj7qiy29f9y7a80lcse
My guess is that some part of my ship is inside the collision radius of the derelict (it's a cobra 3, IIRC), and I'm looking outwards.

Odd. Don't know if it's "wrong", but that some walls are plotting, and others aren't, I suspect it's not intended.

Re: Odd effect when very close to object.

Posted: Thu Aug 24, 2017 10:16 pm
by phkb
Most likely the view position of your ship is set slightly outside the collision radius, which means if you get too close to anything you'll be able to see inside it! The setting is view_position_forward in the shipdata.plist file for your ship, which has three numbers in it, and it's the last number which controls how far forward the view is.

Re: Odd effect when very close to object.

Posted: Thu Aug 24, 2017 11:52 pm
by RockDoctor
phkb wrote: Thu Aug 24, 2017 10:16 pm
Most likely the view position of your ship is set slightly outside the collision radius, which means if you get too close to anything you'll be able to see inside it! The setting is view_position_forward in the shipdata.plist file for your ship, which has three numbers in it, and it's the last number which controls how far forward the view is.
So, it's a known issue - on the radar for core-game development, or deeper in the GL-libaries?

Re: Odd effect when very close to object.

Posted: Fri Aug 25, 2017 1:47 am
by tsoj
Did you use a core-spacecraft or an add-on? In case it was a mod-ship you should contact the modder who will fix that. If that's not the case it's probably something different than the offset view-position that phkb mentioned.

That some faces were transparent and others weren't, is due to the fact that Oolite renders only the side of a face that is outside of the ship, hence the side you should normally see. If your viewpoint is inside of the ship some faces will face your viewpoint from the wrong side and won't be rendered.