Results 1 to 10 of 10

Thread: games where you're inside a cube...

  1. #1
    Member Contributor
    Join Date
    Jul 2001
    Location
    France
    Posts
    80

    games where you're inside a cube...

    hello, i have noticied few games like
    serious sam or some unreal T levels where if you look the sky, you see the edges of a cube.

    can you explain what is it and what is the utility of this.
    maybe it has a name

    Marsu

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: games where you're inside a cube...

    That's a poorly made skybox.

  3. #3
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: games where you're inside a cube...

    use 'terragen' to generate skyboxes for natural outdoor scenes

  4. #4
    Member Contributor
    Join Date
    Nov 2000
    Location
    Thuringia, Germany
    Posts
    85

    Re: games where you're inside a cube...

    Is there a tutorial out there, how to make skyboxes with terragen and use them in gl?

    (ok, use them in gl shouldn't be the problem. draw 6 planes (cube ), put texture on it )

    the problem would be: how to get the 6 textures (top,bottom,left,right,front,back) out of terragen so that you wouldn't really ses any edges of the cube......

    thanks 4 help!

    Bastian

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: games where you're inside a cube...

    I'd be interested in that too. The only similar thing I've seen along those lines, is instructions on how to use Bryce to make skyboxes. Or maybe terragen defaults to a 90 degree FOV. I couldn't find any way to specify or change it in the terragen demo. If it does default to 90 degrees, it should be trivial to make the skybox. Just generate the terrain, then make 6 pictures (one for each direction). In Bryce you do that as well, but because of a bug you have to specify some crazy number (I think 112 or something like that) to get the 90 degree FOV. I know a while back there was a thread on the topic that gave precise instructions on how to use Bryce.

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: games where you're inside a cube...


  7. #7
    Member Contributor
    Join Date
    Jul 2001
    Location
    South Africa
    Posts
    52

    Re: games where you're inside a cube...

    Well the best way is to create a dome, and then flat parts for the side. Dome for the top You obviously want movins clouds and stuff so you don't physically apply textures to the dome You creat layers and apply the sky textures to those. The distant stuff (flat parts) you just apply a normal texture you, as easy as that.

  8. #8
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: games where you're inside a cube...

    Yep, making the skybox itself is trivial. Getting proper textures for the skybox involves some additional work. That's what Terragen and Bryce can be used for (if the skybox is a cube).

  9. #9
    Member Contributor
    Join Date
    Jul 2001
    Location
    South Africa
    Posts
    52

    Re: games where you're inside a cube...

    Yeah sure thing. But for the sky itself. To for instance get the clous or something going. I reckon the best is to have three or so layers of textures, that's blended except for the upper most one. If you keep the top layer static, and you move the following two in opposite directions then you get a really cool effect. Or if you move them in the same direction but at different speeds. I saw that volumetric cloud thing on the homepage which looked pretty cool. I'm assuming it works the same as volumetric fog.

  10. #10
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: games where you're inside a cube...

    Centre the camera and then rotate the camera to one of the 6 directions all at 90 degrees(front, left, top etc.) and adjust the zoom until it is exactly focuses on the whole of the edge of the map (if you are looking forewards, make sure each side of the FOV goes through the top left and top right of the heightmap respectively).

    Do a test render at low quality and low res to test before you waste hours of rendering time. Then put the quality up to max and use the highest resolution, once rendered reduce the size to about 512*512, touch up a bit, maybe a very slight blue and then you are done.

    [This message has been edited by Tim Stirling (edited 07-17-2001).]
    Reality is for idiots only the best over come it!

Similar Threads

  1. How to put the “camera” inside a cube in OpenGL
    By drew_jewel in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-19-2015, 02:17 PM
  2. inside cube and textures
    By alex2 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-25-2011, 09:26 AM
  3. Inside of a cube (quad)
    By Tomatosoup in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-04-2010, 09:02 PM
  4. display a cube inside another bigger cube
    By jyoung77 in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 05-08-2003, 06:12 PM
  5. lighting the inside of a cube
    By in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 05-03-2002, 07:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean