Jump to content

Sammie

Community Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Sammie

  1. The camera controls are not the only problem. Its impossible the modify/flatten/paint the terrain in the orthographic view at the moment. I don't know why, but the cursor "sticks" on some tiles and I cannot really move it. Same thing for moving objects. Too many lines of sourcecode for me to figure out what I have to change to make it work. Any ideas?
  2. Hey Ykkrosh, I have tried to set the following code in CCamera::SetProjection. (I'm calculating the l,r,b,t values from the ViewPort-width/height) float w = m_ViewPort.m_Width; float h = m_ViewPort.m_Height; float r = w/2; float l = -r; float b = h/2; float t = -b; float n = nearp; float f = farp; // orthographic matrix m_ProjMat._11 = 1/r; m_ProjMat._22 = 1/t; m_ProjMat._33 = -2/(f-n); m_ProjMat._34 = -((f+n)/(f-n)); m_ProjMat._44 = 1.0f; and in CCamera::GetCameraPlanePoints float w = m_ViewPort.m_Width; float h = m_ViewPort.m_Height; float x = w/2; float y = h/2; but this doesn't work. I can't see the terrain. Any ideas whats wrong? Is someone else in your team, who can help me with this? It drives me crazy
  3. Which functions should I modify to get an orthographic (non-perspective) camera? Only the ProjectionMatrix in CCamera::SetProjection (Source/graphics/Camera.cpp)? Or any other functions, too? Would be nice, if you can help me.
  4. Yeah, I mean change it to an orthographic non-perspective camera. Hmm, sounds difficult for me. I don't really know what I have to do.
  5. That works with wxWidgets, thx btw, is there a quick way to switch from a "perspective" camera to a fixed "isometric" camara in atlas? Or is it too complex to change this?
  6. After compiling (with VS2010 + replacing with a newer boost-Version) I see the "binaries\system\pyrogenesis_dbg.exe"-file. No compiling errors. I can run it and play. But the Szenario-Editor is not available in the mainmenu. When I start the file with the "-editor"-Parameter a messagebox appears with the following message: "The Atlas UI was not successfully loaded and therefore cannot be started as requested. Location: Atlas.cpp:46 (ATLAS_Run)". Whats wrong?
×
×
  • Create New...