Thread: Finally a good atmosphere

  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Finally a good atmosphere

    Hopefully you guys will like this atmosphere screenshot much better than my previous attempts. There is so much more going on in this screenie than meets the eye and this is much farther along than XSpace ever was.

    The HUD although very sparse right now is fully functional and is just waiting for gauges to be added. The models in the game need textures and bump maps to be ready for the actual gameplay. The camera system so far is fully functional and can be attached to any object in the game. I will use 5 types of views per camera when in 'flight' mode.

    1. Free (attached to object with zoom)
    2. Chase camera
    3. Fly-by camera (at some point ahead of the object's flight path)
    4. Camera to target
    5. Target to camera

    Anyways here is the screenshot. This is not using any shaders at the moment and this can be implemented on DirectX8 and/or DirectX7 video cards. No render to texture and no blur kernel. Just some lighting and billboard effects.
    Last edited by VirtualAce; 03-12-2011 at 11:42 AM.

  2. #2
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Very nice. The glow around the planet makes a big difference. Can't wait to see what you come up with when you start using shaders with this thing.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Very nice. Now you need a day and a night side.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    looks really awesome!
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  5. #5
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Looks good, but the atmosphere doesn't extend even close to that far in the real world.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Looks very nice, much better than the previous one.

  7. #7
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by CornedBee
    Very nice. Now you need a day and a night side.
    Now you need to download Google Earth map and suit it to your earth.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  8. #8
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by CornedBee
    Very nice. Now you need a day and a night side.
    And how do you know this planet isn't part of a binary* star system


    *noting that a binary star system consisnts of 2 or more stars (and is still called binary.. even with 3 stars.... or 4.... I'll never understand astronomers)

  9. #9
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    Because that is clearly Australia peaking round the edge of his planet. Surely it is a mathematical impossibility for there to be a planet exactly the same in our Universe. Although it could be a parallel universe.

  10. #10
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    A planet placed so perfectly between two or more stars that both sides are equally lit would probably not have much water left: it'd be too hot.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  11. #11
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Quote Originally Posted by CornedBee
    A planet placed so perfectly between two or more stars that both sides are equally lit would probably not have much water left: it'd be too hot.
    Sounds a bit like Nightfall.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  12. #12
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    It's a default map of the earth to test if we can wrap the texture around the sphere or not. The atmosphere is a simple overstated debug rendering so I can see if the world-oriented cylindrical billboard is working or not.

    As I said there are no actual light computations being performed except the standard per-vertex lighting.

  13. #13
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Is it open-source?
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  14. #14
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Code:
    void CPlanet::Render(float fTimeDelta)
    {
      m_spDevice->SetTransform(D3DTS_WORLD,&m_matWorld);
      m_spDevice->SetTexture(0,m_pTexture);
      
      m_spDevice->SetSamplerState( 0, D3DSAMP_ADDRESSU,  D3DTADDRESS_WRAP);
      m_spDevice->SetSamplerState( 0, D3DSAMP_ADDRESSV,  D3DTADDRESS_CLAMP);
      m_spDevice->SetStreamSource(0,m_pVB,0,sizeof(PlanetVertex));
      m_spDevice->SetFVF(PLANETVERTEX_FVF);
      m_spDevice->SetIndices(m_pIB);
      
      m_spDevice->SetRenderState(D3DRS_CULLMODE,D3DCULL_CW);  
      
      m_spDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST,0,0,m_iNumVerts,0,m_iNumTris);
        
      D3DXVECTOR3 vecCamPos;
      m_spCamera->GetPosition(&vecCamPos);
        
      m_pGlow->PreRender(vecCamPos);
      m_pGlow->Render(fTimeDelta,vecCamPos);
         
      m_spDevice->SetRenderState(D3DRS_CULLMODE,D3DCULL_CCW);  
      
    }
    But I guess that doesn't help much.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good books for learning WIN32 API
    By Junior89 in forum Windows Programming
    Replies: 6
    Last Post: 01-05-2006, 05:38 PM
  2. Good resources for maths and electronics
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 12-22-2004, 04:23 PM
  3. Good C++ books for a begginer
    By Rare177 in forum C++ Programming
    Replies: 13
    Last Post: 06-22-2004, 04:30 PM
  4. what is good for gaphics in dos
    By datainjector in forum Game Programming
    Replies: 2
    Last Post: 07-15-2002, 03:48 PM
  5. i need links to good windows tuts...
    By Jackmar in forum Windows Programming
    Replies: 3
    Last Post: 05-18-2002, 11:16 PM