Creating a seamless skydome texture

The art, story, and musical aspects of age creation live here!

Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:13 am

There are lots of 360 degree photos of blue skies and cloudy. What if your age is really different? In This tutorial I’m going to describe the process for rendering a sky dome for a world similar to Ghen’s prison age in Riven. It will be a water world with mesas or islands. This will allow me to place a mesa in the center and have a panic link similar to relto. If the avatar jumps and tries to reach another fake island he links away.

I am not going to go into the process of creating and modeling an entire environment. This thread describes the long and drawn out process of creating Sky Dome Textures from Bryce renders.

You will need these three software:

Bryce http://www.download.com/Bryce/3000-6677_4-10696716.html?cdlPid=10696717

HDRI Shop from the USC page http://projects.ict.usc.edu/graphics/HDRShop/download/

Cube to Cross from Sean O'Malltey's page http://www2.cs.uh.edu/~somalley/binaries/cube2cross.zip

Get and install these.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:15 am

No comes the fun part.
Bryce by default puts out 16 bit BMP files. The jpgs it creates are not very good.
HDRIShop trial version won’t assemble a cross from 6 individual parts so you have to use Cube2Cross.
Cube2Cross can assemble 6 images into a cross hdri but it can only assemble hdr files.
HDRIShop can covert some normal images to HDRI images and back but it only reads 8bit 256 color bmp, tiff images and jpgs.

So this is what you need to do to create a full sphere.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:17 am

Create a Bryce scene to use as the basis of your sphere. Set your image to a square view. Instead of 800x600 it needs to be 600x600. Small sizes that fit on your computer screen let you work faster. Get your views set up then switch to a big size for the final render 1024 x 1024 at least.

This will be a full 360° image. Remember to put things all around the camera. You will be building a box of images with a front, left, back, right, top, and bottom view. Be sure there is something interesting in each view. Don't worry if a mountain or tree straddles a corner. Change the Y and look in each direction. Make sure objects are spread out and there are no obvious gaps. If one object is behind another move or delete it.

Image

Click on the second down triangle along the left side of the Bryce view window and select the edit current camera menu. This Camera and 2D projection window will open up. Set the camera's FOV to 112.5. Set all the Origin, Position, and Rotate to zero except for the Y. You need some altitude or you will be rendering dirt. I picked a value of 100 for the eye level from the top of a mesa. If you are going to build everything up on a cliff like the relto make your Y high enough to make the avitar’s perspective match.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:25 am

Image

Replace ??? with the name of your image and create six views in Bryce with the camera rotations shown in the table. Turn off Link Sun to View in the Bryce Skylab to avoid banding between the images. Cube to cross needs the six images to end in the underline and ft, rt., bk, etc… to put the images in the correct orientation.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:32 am

Image

Here’s a little trick. There will be a Relto like island in the center of the bottom image. Wait till all of the other views are rendered except the down view. To create the reflection of the island in the water create it now and position it above the camera as shown.

Find the six bmp files and convert them into high quality jpgs using a computer graphics program. Don’t have one, then what the heck are you doing reading an artist tutorial? Oh well, this is a conversion that even the latest versions of paint can do. There are also freeware like infranview that can do a great job.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:41 am

Image

But wait a minute, Cube2Cross needs hdr images! what I have now is jpg. To fix this open HDRShop. Go to the file menu and Import LDR image. Open the ???_ft.jpg image. A window opens up to set the Gamma Curve for the image import automatically. Since mine was generated with a PC system and monitor the Gamma is automatically 2.20. But I don’t want a lightprobe image I want a texture. Change 2.20 to 1.75 every time this program automatically resets it. A number closer to 1 will have less contrast. Higher numbers like 2.2 appear too dark except where the sun actually is in the image.

Image

Now that the file has been converted to HDRI Save the image by pressing the file menu and pulling down to save. This window pops up. Click the top button that says Radiance format (*.HDR, *.PIC). Save the image as ???_ft.hdr and do the same for all six images. Put them in a folder together.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:45 am

Image

Open Cube2Cross.
Open one of the images and the program will stitch all into a single cross HDRI and generate a file named ???_cross.hd in the same directory. You basically have textured a cube with the six views.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:51 am

Image

Go back to HDRShop.
Open ???_cross.hdr
Click on the Image menu.
Pull down to the Panorama entry.
Pull over to the Panoramic Transformations menu.
In the Panoramic Transform window.
Select Cubic Environment(Vertical Cross) as the format type in the source image.
Make sure LongLat is selected as the format in the destination image. An aspect ratio of 2:1 is best so 2048 x1024 is good. Let it reduce some and don’t use the same width as the original cross.
Press OK.
A new lightprobe image will pop up.
Save this image as a JPG image and name it something.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby electroglyph » Thu Sep 04, 2008 3:54 am

Image

You now have an image that you can apply as a texture on any mapped sphere.
electroglyph
 
Posts: 124
Joined: Fri Nov 16, 2007 9:45 pm

Re: Creating a seamless skydome texture

Postby Trylon » Thu Sep 04, 2008 9:52 am

Great tutorial!
Thanks!

P.S. Any chance you can put this on the wiki too? ;)
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
User avatar
Trylon
 
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
Location: Gone from Uru

Next

Return to Art and Story

Who is online

Users browsing this forum: No registered users and 0 guests