Abusing Skybox Viewpoint

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Abusing Skybox Viewpoint

Re: Abusing Skybox Viewpoint

by Rachael » Sat Feb 24, 2018 11:47 am

Internally what happens is there is a single command that resets all points to the viewer's position as if they were at (0,0) - this includes angle/pitch/roll. The skybox code was a mess the last time I looked at it, though, which might be why no one bothered to put in an extra roll command for it. Conceptually it would not be that difficult though - two translations (one for the view, one for the skybox actor itself) and you're done. In practice may be the bigger issue though since the skybox code is anything but simple. (Otherwise - to be honest - we'd already have fractional skybox positioning based on camera movement in the engine. :twisted: )

Re: Abusing Skybox Viewpoint

by juizzysquirt » Sat Feb 24, 2018 11:05 am

I don't blame Graf for not getting involved in 6DoF-math in Doom engine. It's a bit tricky to deal already when some axis seem to have an arbitrary range and points of origin (at least when dealing with ACS, don't know how it's internally).

In meantime I've settled for a cameratexture in front of the ship, it works fairly well for testing purposes but without post-processing effects and ability to park my ship upside-down in space it's not very presentable. :shrug:

Re: Abusing Skybox Viewpoint

by AFADoomer » Sat Feb 24, 2018 1:24 am

Already suggested here.

Re: Abusing Skybox Viewpoint

by Rachael » Sat Feb 24, 2018 1:21 am

Is this feature suggested already? (I vaguely remember it was, but not positive)

If not, it definitely should be.

Re: Abusing Skybox Viewpoint

by Tormentor667 » Sat Feb 24, 2018 1:17 am

I have suggested something in the past but currently roll and pitch have no effect on the skybox viewer

Abusing Skybox Viewpoint

by juizzysquirt » Fri Feb 23, 2018 4:55 pm

I'm trying to make spaceship that player can fly, using a Skybox Viewpoint in the actual space and viewing it from static cockpit made out of level geometry. I'm already able to move viewpoint in xyz-dimensions, and modify the yaw-angle, but adjusting pitch (or roll) doesn't do anything. Debugging shows me that these pitch/roll values on actual viewpoint actor does change, but it doesn't affect the view. Is this a bug, or some technical limitation?

I'm using GZDoom 3.2.5 64-bit.

Top