Revision 3146,
516 bytes
checked in by mattausch, 16 years ago
(diff) |
normal mapping hack not working yet. found problems with ssao if the geometry is not tesselated enough (especially with smoothed
normals: one can see the underlying tesselation!
|
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;
|
---|
| 16 |
|
---|
[3012] | 17 | if (!converter.Convert(model_path + argv[1], model_path + argv[2]))
|
---|
[2961] | 18 | {
|
---|
| 19 | cerr << "conversion failed" << endl;
|
---|
[3076] | 20 |
|
---|
| 21 | std::cin.get();
|
---|
[2961] | 22 | exit(0);
|
---|
| 23 | }
|
---|
[3146] | 24 | //std::cin.get();
|
---|
[2961] | 25 | cout << "conversion successful" << endl;
|
---|
[3076] | 26 |
|
---|
[2961] | 27 | return 0;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.