The development branch v1.1 has been released

This forum is for users to post feedback, discuss the game, or to make announcements of published projects (may include works in progress, but only if there is something to show off).

The development branch v1.1 has been released

Postby michelle on Sun, 28th Jun 2009, 16:19

Overview

Today, the development branch v1.1 has been made available, with version 1.1.0.0 being the first incarnation. There might be further refinements, corrections and additions released in subsequent versions before this eventually results in the stable branch v1.2, which will be recommended for the average user.

The development branch is primarily intended for developers to study or experiment with, but users might also find it useful to get a preview of the new features that are offered. However, it should be pointed out that the new set of features might be incomplete, be subject to some problems or yet undetermined bugs. Also, features might change at any time without prior notice until the new features are considered complete.

What is new

Well, basically, support for 3D cabs has been introduced with the panel.animated file. As a demonstration, I have made the 113-1000atccab-3D train, which is a non-realistic add-on to PM's 113-1000atccab train with the sole purpose of showing off how to make a 3D cab. You can find this demo train on the Developing for openBVE pages.

Image

While the animated object format itself has not undergone any changes, the set of supported variables has been greatly expanded to meet the needs of creating a working animated panel. All changes are specifically highlighted as such in the documentation on the animated object format.

Along with the 3D cabs, there is now support for rotating the view with the mouse. Just press the left mouse button at any time to enable mouse grab, then move the mouse to rotate the view. Clicking again
disables the mouse grab. Enabling and disabling mouse grab has been specifically done for use in window mode, while it wouldn't be technically necessary in fullscreen mode.

Potential

Creating a 3D cab with the current textual file formats is a challenge, and is likely more difficult to do than the bitmap-based 2D panel formats. However, the feeling of a 3D cab is vastly different from its 2D counterpart, and thus I would expect that at least some developers will be highly interested in started to create 3D cabs.

Just as panels for BVE Trainsim started with hand-drawn ones of low quality and have only eventually emerged in highly photo-realistic ones, I also suspect the first set of 3D cabs that might be produced in the upcoming months or in the upcoming year to be of also relatively low quality. 3D cabs from other train simulators tend to use very detailed geometry at the expense of good textures, resulting in a highly CGI look, while 2D panels can offer extremely detailed textures at the expense of geometry, or actually with no geometry at all. Therefore, developers will have to learn and experiment with the trade-off of using textures and geometry, and it might take a while before everyone finds their personal preference.

Ways for developers to create 3D cabs

The CGI way
Build the cab in truly 3D geometry. If you have photographs of the cab, you will likely to have cut out individual pieces so you can apply them to individual faces. Most of the work would be involved in building the geometry, while photorealism is hard to achieve.

Cylindrical projection
A photorealistic way of doing things. Shoot many pictures of the cab from a perfectly fixed location so you can cover a 360° field of view. Then stitch the individual photographs together to form a cylindrical mapping. You will need a fairly decent imaging program for this, such as Photoshop. The texture would look somewhat like this, but when mapped to a cylinder, it will look perspectively correct. Thus, for the geometry, you only need to create a cylinder and map the texture onto it. This is basically how the background image works in openBVE. The bottleneck is that this approach looks only good from a fixed location, and only in the horizontal. If you pitch the view too much up/down, you will see the cylinder. Also, animated parts might be harder to integrate.

Spherical mapping
Basically the same as cylindrical projection, only that you map to a sphere instead of a cylinder. This gives a perfectly photorealistic view from a fixed location, but would be tremendously difficult to produce. This is basically how Google Street View works.
User avatar
michelle
Site Admin
 
Posts: 1147
Joined: Mon, 14th Apr 2008, 20:36

Re: The development branch v1.1 has been released

Postby blyndy on Mon, 29th Jun 2009, 12:54

Can you start including a small demo route in the zip as a demonstration of changes, for route developers to follow? For example I would like to see a few objects use the shear function on the route, with a signpost saying 'examples of the shear function in use', a showcase in essence.
blyndy
 
Posts: 9
Joined: Wed, 25th Mar 2009, 06:54

Re: The development branch v1.1 has been released

Postby efilm on Mon, 29th Jun 2009, 15:23

Will camera constriction for 3D cab to be implemented? I think it's better to add this.

I think that the easiest way to define the constriction boundary is to use a command that is similar to that of the Cube command.
User avatar
efilm
 
Posts: 40
Joined: Wed, 16th Apr 2008, 02:18
Location: Hong Hong

Re: The development branch v1.1 has been released

Postby joeyfjj on Tue, 30th Jun 2009, 11:30

Just want to say that if the mouse grab is on, you will not be able to move out of the openBVE window. Is it supposed to happen?
User avatar
joeyfjj
 
Posts: 39
Joined: Sun, 26th Oct 2008, 06:06
Location: Singapore

Re: The development branch v1.1 has been released

Postby michelle on Fri, 3rd Jul 2009, 15:39

Summary of changes in v1.1.1.0

In 3D cabs, the driver's body and head are now simulated. Rapid changes in acceleration result in pitch changes of the body, as if the driver was pushed forward out of the seat or back into it. In curves, inertia forces the body to roll to the sides. The driver counteracts these forces and adapts to the circumstances, but always with some lag. Rotating the camera view makes use of a head model, meaning the view does not rotate stationary, but the relative distance from the neck to the eyes is taken into account.

Additionally, pressing F1 multiple times now switches between the normal Interior view and a new Interior (look-ahead) view. The latter rotates the head of the driver to focus on an upcoming part of the track, so basically, the driver looks into curves and pitch changes of the track.

These changes to the view make the driving experience more dynamic and give a feeling of the forces that would act in a real train. All of these changes are yet experimental and still require fine-tuning. Of course, none of these changes are available to 2D cabs. For the full list of changes, see the changelog.

This version continues to be a development release and is not yet recommended for the normal user, unless of course you want to just preview the changes.
User avatar
michelle
Site Admin
 
Posts: 1147
Joined: Mon, 14th Apr 2008, 20:36


Return to General Discussion and Announcements

Who is online

Users browsing this forum: No registered users and 1 guest