Odd effect when very close to object.

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
RockDoctor
---- E L I T E ----
---- E L I T E ----
Posts: 812
Joined: Sat May 01, 2010 9:05 pm
Location: Scotland

Odd effect when very close to object.

Post 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.
--
Shooting aliens for fun and ... well, more fun.
"Speaking as an outsider, what do you think of the human race?" (John Cooper Clark - "I married a Space Alien")
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: Odd effect when very close to object.

Post 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.
User avatar
RockDoctor
---- E L I T E ----
---- E L I T E ----
Posts: 812
Joined: Sat May 01, 2010 9:05 pm
Location: Scotland

Re: Odd effect when very close to object.

Post 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?
--
Shooting aliens for fun and ... well, more fun.
"Speaking as an outsider, what do you think of the human race?" (John Cooper Clark - "I married a Space Alien")
User avatar
tsoj
Deadly
Deadly
Posts: 199
Joined: Wed May 18, 2016 8:19 pm
Location: Berlin
Contact:

Re: Odd effect when very close to object.

Post 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.
Post Reply