LDView 4.2 Released


RE: LDView 4.2 Released
#23
(2017-10-21, 5:37)Michael Horvath Wrote:
(2017-10-21, 3:32)Travis Cobbs Wrote: I was working on a feature like this in the past, and apparently never got it working. If you set flags.keepRightSideUp to true in LDrawModelViewer, you will see what I had. Note that it sometimes twists the camera by 90 degrees briefly. I'm not sure why. It may be easier to look at what I already had and fix it than to implement it from scratch.

Using flags.keepRightSideUp is not the same solution as FPS-style controls, like in a video game.

This article has a very general explanation of the solution. But I am having a hard time applying it to LDView. (I am very new to C++.)

https://gamedev.stackexchange.com/questi...d-the-thir

[edit]

At the moment I am looking for a way to convert a matrix to something the camera can use. Is there documentation for the camera object?

There's no way to convert a matrix into something the camera can use. The camera can be used to generate a matrix, but not vice-versa. The camera's facing member is an LDLFacing, and that class is fairly well documented (in LDLFacing.h). Given that LDLFacing is a quaternion, if you can find instructions for performing the rotation you want on a quaternion, it should be possible to do with LDLFacing (although it's possible that more member functions would have to be added there).
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDView 4.2 Released - by Travis Cobbs - 2016-07-11, 21:59
RE: LDView 4.2 Released - by Trevor Sandy - 2016-07-15, 11:44
RE: LDView 4.2 Released - by Travis Cobbs - 2016-07-15, 17:00
RE: LDView 4.2 Released - by Trevor Sandy - 2016-07-15, 17:15
RE: LDView 4.2 Released - by Michael Horvath - 2016-07-28, 11:23
RE: LDView 4.2 Released - by David Manley - 2016-09-14, 21:05
RE: LDView 4.2 Released - by Travis Cobbs - 2016-09-14, 22:06
RE: LDView 4.2 Released - by Michael Horvath - 2016-10-23, 20:24
RE: LDView 4.2 Released - by Travis Cobbs - 2016-10-24, 2:35
RE: LDView 4.2 Released - by Michael Horvath - 2016-10-24, 14:32
RE: LDView 4.2 Released - by Travis Cobbs - 2016-10-24, 17:22
RE: LDView 4.2 Released - by Michael Horvath - 2017-10-07, 20:17
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-07, 21:28
RE: LDView 4.2 Released - by Michael Horvath - 2017-10-20, 12:06
RE: LDView 4.2 Released - by Roland Melkert - 2017-10-20, 19:43
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-21, 3:32
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-21, 20:33
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-22, 4:16
RE: LDView 4.2 Released - by Michael Horvath - 2017-10-22, 20:52
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-23, 4:05
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-24, 4:34
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-24, 4:42
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-25, 5:25
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-25, 5:32
RE: LDView 4.2 Released - by Travis Cobbs - 2017-10-27, 5:46

Forum Jump:


Users browsing this thread: 9 Guest(s)