Ogre 3D Beginners guide / Ogre 3D руководство для начинающих

→Summary
We learned how the Ogre 3D SDK is organized, which libraries we needed to link, and
which folder we needed in our include path. Also, we got a first glance at the class
ExampleApplication and how to use it. We loaded a model and displayed it.
Specifically, we covered:
‹ Which files are important for the development with Ogre 3D, how they interact
with each other, and what their purpose is
‹ What ExampleApplication is for: How this class helps to save us work and
what happens during the startup of Ogre 3D
‹ Model loading: We learned how we can create a new instance of a model with
createEntity and one way to attach the new instance to our scene
After this introduction to Ogre 3D, we will learn more about how Ogre 3D organizes scenes
and how we can manipulate the scene in the next chapter.
0 Итог.
Мы изучили как организован Ogre 3D SDK, какие библиотеки необходимы для сборки, и какие каталоги нужно включить в пути поиска. Так же мы получили первое впечатление о классе ExampleApplication и его использовании.
В частности мы изучили:
-Какие файлы важны для разработки, как они взаимодействуют друг с другом, и их назначение.
-Для чего нужен ExampleAplication: Как этот класс экономит наше время и что происходит в процессе запуска.
-Загрузка моделей: Мы изучили как мы можем создать новый обьет модели через createEntity и один из путей добавить новый обьект к сцене.
После этого введения, в следующей главе, мы более подробно изучим как Ogre3D строит сцены и как мы можем изменять сцену.
→Time for action – building the Ogre 3D samples
To get a first impression of what Ogre 3D can do, we will build the samples and take a look
at them.
1. Go to the Ogre3D folder.
2. Open the Ogre3d.sln solution file.
3. Right-click on the solution and select Build Solution.
4. Visual Studio should now start building the samples. This might take some time, so
get yourself a cup of tea until the compile process is finished.
5. If everything went well, go into the Ogre3D/bin folder.
6. Execute the SampleBrowser.exe.
7. You should see the following on your screen:
8. Try the different samples to see all the nice features Ogre 3D offers.
0 Время действий -компилируем примеры Ogre 3D
Чтобы получить первое впечатление о возможностях Ogre 3D, мы откомпилируем примеры и посмотрим на них.
1. Перейдем в каталог Ogre 3D
2. Откроем файл рабочего пространства Ogre3D.sln
3. В контекстном меню решения выберем "Построить решение"
4. Visual Studio должно сейчас начать компиляцию примеров. Это может занять некоторое время, так что вы можете пока попить чайку.
5. Если все закончится хорошо, перейдите в каталог Ogre3D/bin
6. Запустите SampleBrowser.exe
7. На экране вы должны увидеть следующее
8. Попробуйте различные примеры чтобы увидеть прекрасные возможности которые предлагает Ogre 3D/
→Loading the first model
We have a basic application with nothing in it, which is rather boring. Now we will load a
model to get a more interesting scene.
0 Загрузка первой модели
У нас есть простейшая программа без содержимого, что довольно скучно. Сейчас мы загрузим модель чтобы сделать сцену более интересной.
→The first application with Ogre 3D
In this part, we will create our first Ogre 3D application, which will simply render one
3D model.
0 Первая программа с Ogre 3D
В этой части мы создадим нашу первую Ogre 3D программу которая просто отрисовывает одну 3D модель.
→The Ogre 3D samples
Ogre 3D comes with a lot of samples, which show all the kinds of different render effects
and techniques Ogre 3D can do. Before we start working on our application, we will take
a look at the samples to get a first impression of Ogre's capabilities.
0 Примеры для Ogre 3D.
Ogre 3D предоставляет множество примеров, демонстрирующих различные эффекты визуализации и технологии которые он поддерживает. Прежде чем начать работать над нашим собственным проектом стоит пройтись по примерам и получить первое впечатление о Ogre 3D
→What just happened?
We built the Ogre 3D samples using our own Ogre 3D SDK. After this, we are sure to have a
working copy of Ogre 3D.
1 Что только-что произошло?
Мы откомпилировали примеры Ogre 3D используя наш собственный Ogre 3D SDK. Теперь мы уверены в работоспособности нашей копии Ogre 3D.
→Different versions of the Ogre 3D SDK
Ogre supports many different platforms, and because of this, there are a lot of different
packages we can download. Ogre 3D has several builds for Windows, one for MacOSX, and
one Ubuntu package. There is also a package for MinGW and for the iPhone. If you like,
you can download the source code and build Ogre 3D by yourself. This chapter will focus
on the Windows pre-build SDK and how to configure your development environment. If
you want to use another operating system, you can look at the Ogre 3D Wiki, which can be
found at http://www.ogre3d.org/wiki. The wiki contains detailed tutorials on how to
set up your development environment for many different platforms. The rest of the book
is completely platform independent, so if you want to use another development system,
feel free to do so. It won't affect the content of this book besides the configuration and
conventions of your build environment
1 Различные версии Ogre 3D SDK
Ogre поддерживает множество различных платформ, в связи с этим к загрузке доступно много вариантов пакетов.
Ogre 3D представлен в нескольких сборках для Windows, одной для MacOSX, и одним пакетом для Ubuntu. Так-же присутствуют сборки для MinGW и для iPhone. Если пожелаете можете загрузить исходный код и собрать Ogre3D самостоятельно.
Эта глава будет концентрироваться на прекомпилированной SDK для Windows и настройке вашего рабочего окружения.
Если вы хотите использовать другую операционную систему, можете обратится к Ogre 3D Wiki по адресу http://www.ogre3d.org/wiki. Эта вики содержит подробное руководство по настройке вашего рабочего окружения на различных платформах. Основная часть книги полностью платформно-независима, так что если вы используете другую систему разработки это не скажется. Содержимое книги безразлично к настройкам и особенностям вашего рабочего окружения.
→Time for action – downloading and installing Ogre 3D
We are going to download the Ogre 3D SDK and install it so that we can work with it later.
1. Go to http://www.ogre3d.org/download/sdk.
2. Download the appropriate package. If you need help picking the right package,
take a look at the next What just happened section.
3. Copy the installer to a directory you would like your OgreSDK to be placed in.
4. Double-click on the Installer; this will start a self extractor.
Installing Ogre 3D
5. You should now have a new folder in your directory with a name similar to
OgreSDK_vc9_v1-7-1.
6. Open this folder. It should look similar to the following screenshot:
0 Время действовать- загружаем и устанавливаем Ogre 3D.
Приступаем к загрузке Ogre 3d SDK и устанвке его для дальнейшей работы.
1. Отправляемся на http://www.ogre3d.org/download/sdk.
2. Загружаем подходящий пакет. Если вам нужна помощь в выборе верного пакета обратитесь к следующему блоку.
3. Скопируйте установщик в каталог где хотите разместить OgreSDK.
4. Двойным щелчком запустите самораспаковывающийся архив. Установите OgreSDK
5. Теперь вы должны увидеть в вашем каталоге новый каталог с именем вроде OgreSDK_vc9_v1-7-1.
6. Откройте этот каталог. Вы должны получить что-то подобное следующему скриншоту
Резюме
Пол:
мужчина
Родной язык:
русский
С нами:
с 16 августа 2011 г. (5543 дня)
Не является членом клуба.
Деятельность:
267 версий перевода с общим рейтингом 8
2 комментария
Карма: 1 (оценок: 1)
Написать Teolog личное сообщение