Revision 3247,
688 bytes
checked in by mattausch, 15 years ago
(diff) |
worked on obj loader
played around with ssao sampling
|
Rev | Line | |
---|
[2961] | 1 | #include "ObjConverter.h"
|
---|
| 2 | #include <iostream>
|
---|
[3076] | 3 | #include <time.h>
|
---|
[2961] | 4 |
|
---|
| 5 | using namespace std;
|
---|
| 6 |
|
---|
| 7 | static string model_path("data/city/model/");
|
---|
| 8 |
|
---|
| 9 | int main(int argc, char* argv[])
|
---|
| 10 | {
|
---|
| 11 | int returnCode = 0;
|
---|
| 12 |
|
---|
| 13 | ObjConverter converter;
|
---|
| 14 |
|
---|
| 15 | cout << "converting obj to dem format" << endl;
|
---|
[3247] | 16 |
|
---|
| 17 | if (!converter.LoadMaterials(model_path + argv[3]))
|
---|
| 18 | {
|
---|
| 19 | cerr << "loading materials failed" << endl;
|
---|
[2961] | 20 |
|
---|
[3247] | 21 | std::cin.get();
|
---|
| 22 | exit(0);
|
---|
| 23 | }
|
---|
| 24 |
|
---|
[3012] | 25 | if (!converter.Convert(model_path + argv[1], model_path + argv[2]))
|
---|
[2961] | 26 | {
|
---|
| 27 | cerr << "conversion failed" << endl;
|
---|
[3076] | 28 |
|
---|
| 29 | std::cin.get();
|
---|
[2961] | 30 | exit(0);
|
---|
| 31 | }
|
---|
[3247] | 32 |
|
---|
[2961] | 33 | cout << "conversion successful" << endl;
|
---|
[3247] | 34 | cout << "press any key" << std::cin.get();
|
---|
[3076] | 35 |
|
---|
[2961] | 36 | return 0;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.