Sunday, August 25, 2013

"The Barrier" and Blender

All week I tried to find a way to convert the camera specifications in Xtranormal into Blender, so I can create the background images I need. I made some progress.

I had success with the focal length. Xtranormal's specification is some kind of inverse of the specification that Blender uses. By trial and error I got an equation that approximates the relationship well enough.

Blender focal length = 1054.6 time (Xtranormal fov) -1.0149

I find that I still need to adjust this when I do a new camera.

I finally figured out the co-ordinate system Xtranormal uses. I had the y-axis and z-axis switched. I thought that would fix the problem with the orientation parameters. It didn't solve the problem. Xtranormal appears to use quaternions, but when I use those in Blender they point the camera in the wrong direction. Frustrating.

I really don't think I will come up with some easy way to transform the orientation parameters. I did come up with an approach that seems to work, but is very time consuming.

  1. In Xtranormal I use the location markers to define the corners of a camera image.
  2. I save the STATE file and get the and used them to identify the corners of the camera frame.
  3. I unzip the STATE file and get the co-ordinates of the corners from the document.xml file.
  4. I use those co-ordinates to create a plane in Blender
  5. I adjust the camera orientation and focal length to match the plane I created.

It is only an approximation, but I think it should work well enough. I have done five cameras so far. There are 30 cameras altogether. I think some of them are duplicates, or close to duplicates, so I won't need to do them all.

This post is a mirror from my main blog http://www.dynamiclethargyfilms.ca/blog

Sunday, August 18, 2013

Another Computer Crash, but "The Barrier" Moves Forward

My computer crashed again this week. My wife bought me a new one and I got back to work on "The Barrier". The camera orientation conversion from Xtranormal to Blender still has me stymied.


New Computer

Our computer finally packed it in this week. We got a new one Tuesday and I started to reinstall my programs. By weeks end I had most of the old programs set up again. It is  a Windows 8 machine, and I found it a bit tricky to understand at first. I have a better handle on it now.

I had a big scare when I couldn't install Premiere Pro. I thought that the version I had might not work under Win 8, but it turned out there was a conflict with a program already installed on the computer. After I fixed that it worked just fine. If I had to buy a newer version, it would have cost me $1,000!

"The Barrier"

With all the computer problems over the last week, I didn't get much done on "The Barrier" this week. Mostly I worked on creating some background images for the open house scenes.

I have most of the set for the transportation plan open house built in Blender now. I still have to add some set decoration; wall posters mainly. I had a bit of a struggle with the lighting. I kept getting too much, or two little. I think I have it the way I want it now. I am a bit concerned that the set isn't big enough and may expand it somewhat to make the room look bigger.

The biggest snag I have is with the camera settings. I think I have the co-ordinate conversion right now, but given the other problems, maybe that isn't the case.

At first I couldn't adjust the camera focal length, but stumbled into how to do it this week. I think I have that worked out now, although, until I have all the problems resolved, I can't be sure about that yet.

The main issue now is the orientation parameters. The system Xtranormal uses has 4 co-ordinates and at first I thought that Blender only used three. I did some experimentation and thought I could just multiply three of the parameters to give degrees, but that didn't produce what I expected.

I found that Blender also has a orientation system called quaternions, which I never heard of before. It has four parameters. When I transfer those, it comes closer to what I want, but is still off a bit. I'm kind of stuck for now. One idea I plan to try is to change the way I convert the co-ordinates. If I can't find a way to convert soon, I may just try to eyeball the images.


I suspect that someone else has worked out the conversions before, but I'm not sure how I can find them.

This post is a mirror from my main blog http://www.dynamiclethargyfilms.ca/blog

Sunday, August 11, 2013

Building a Set for “The Barrier”

This week I experimented with a 3D model program to create a background set for some of my scenes in “The Barrier”. I made good progress, but have much to learn yet.

I need to create a background for a few of my scenes, because the ones available didn’t fit. I output them with green scenes, so I could drop in background images.

This week I started to work on how to create the background images. My original idea was to create flat images and then distort them to look right. That would have been a lot of finicky work, and likely would still not look any good.

I looked into 3D modelling programs. One, called Blender, looked like a good choice. http://www.blender.org/ They said it was easy to use, and it was also free. Some of the free ones let you have the program for free, but then you can’t use the images you create in a commercial product. Blender does.

It wasn’t as easy to use as they said it was. After a couple of days I was about the give up. Then I got one thing to work the way I wanted to, and started to build on that. Over the course of the week I learned a fair bit, although I’m sure I only scraped the surface of what can be done.

I created walls and a floor for my set. The initial versions weren’t very good, so I did new versions. Version three looks OK to me. I still need to build the whole set. Besides the walls and floors, I want to put some posters on the walls and add some doors to the room. Beyond that I would like to add some other set dressings, but at this point I think I should hold off on that. It could be a lot of work.

Once I have the set, I need to set up the cameras. I’ve done some work on translating the camera settings in Xtranormal into the camera settings in Blender. I think I know how to do it, but I haven’t actually done it yet. Surprises may await me.

I did a test to see how the composited image compares to the same shot on an Xtranormal set. The XN logo ends up green, which looks funny. At this stage I don’t think that is important.

This post is a mirror from my main blog http://www.dynamiclethargyfilms.ca/blog

Sunday, August 4, 2013

Update on “The Barrier” 2013 August 4

“The Barrier” project passed a milestone this week. The animation program, Xtranormal, I used for the movie shut down. I think I can complete an initial version of the movie with what I have, but I will need to find a different way to make a final version. Xtranormal needs verification from their website to output videos, and with the website shut down, I can’t do that any more.

“The Barrier”

Last week I reviewed the whole movie and found a number of things I wanted to change. I got one round of changes done by Tuesday. I reviewed what I had again and then started a second round of changes. I got most of them done before the system shut down Thursday. What I didn’t get done were nice-to-haves, not need-to-haves. I believe that I have enough to do a complete movie now.

I need to add some picture elements – mostly computer screens and a TV screen. I have a group of three scenes where I will need to build a complete background. Xtranormal didn’t have a set that was appropriate for the scenes. I used one of their sets to create the scenes, and then used a trick to get the same scene on a green screen background. That will allow me to put in a background. I don’t know how I will create the background yet.

I talked to a guy I used to work with. When I told him I was working on a movie about a transportation planner, he seemed a little sceptical. I hope other transportation planners won’t feel the same way.

Xtranormal Replacement

I spent some time investigating some of the programs that I might use to replace Xtranormal. Some are really too limited for the kind of thing I want to do. Others are much more powerful, but look like they may be quite difficult to use. I’ll do a blog post about the options later.

One big snag from my point of view is that Xtranormal had artificial voices built in. The others don’t. You need to create your own dialogue. The artificial voices are not cheap, but neither are real actors.

I plan to leave a detailed evaluation until I have “The Barrier” version 0.9 done. I will do another blog post about the options later. I have identified eight so far. There are four that look like reasonable replacements to me.



The others I found were: Carrara 8, goanimate, toonboom and powtoon. There are plenty of programs that do animation, but they are not really the same kind of thing as Xtranormal.  If you know of any other programs, please let me know.

This post is a mirror from my main blog http://www.dynamiclethargyfilms.ca/blog