Jump to content

HotFriend

Resident
  • Posts

    3
  • Joined

  • Last visited

Reputation

1 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Im making a Second Life Viewer for Windows Store. I have made a code for the camera // Initializes view parameters when the window size changes. void ViewerPage::CreateWindowSizeDependentResources() { Size outputSize = m_deviceResources->GetOutputSize(); float aspectRatio = outputSize.Width / outputSize.Height; float fovAngleY = 70.0f * XM_PI / 180.0f; // This is a simple example of change that can be made when the app is in // portrait or snapped view. if (aspectRatio < 1.0f) { fovAngleY *= 2.0f; } // Note that the OrientationTransform3D matrix is post-multiplied here Scale = XMMatrixScaling(0.25f, 0.25f, 0.25f); Translation = XMMatrixTranslation(0.0f, 0.0f, 0.0f); playerCharWorld = Scale * Translation; //Camera information LLCamera.position = XMVectorSet(0.0f, 10.0f, 8.0f, 0.0f); LLCamera.target = XMVectorSet(0.0f, 3.0f, 0.0f, 0.0f); LLCamera.up = XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f); XMStoreFloat4x4(&m_constantBufferData.view, XMMatrixTranspose(XMMatrixLookAtRH(eye, at, up))); } Is there any way to set the cameras position?
  2. I'm making a viewer for windows store and I would like to know that to put on slviewer8.cpp and slviewer.h? (slviewer8 is the name of the viewer)
  3. I'm making a sl viewer with microsoft visual for winddows store and I would like some help
×
×
  • Create New...