commit 56976c16cc77a195fc1edbdf1523c150f114c830 Author: Alex Huddleston Date: Sat Nov 4 15:45:04 2017 -0500 Initial commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11da6db --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +build/* +*.swp +*.kdev4 +.kdev4/* +target/ +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..223f4de --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "proceduralcity" +description = "Procedural city generation by manipulation of .obj files - rewritten in Rust." +repository = "https://github.tamu.edu/shadow8t4/ProceduralCity" +version = "0.1.0" +authors = ["Alex Huddleston ","Jeremy Martin"] +license = "MIT" + +[dependencies] +obj = "0.8" +noise = "0.4" diff --git a/README.md b/README.md new file mode 100644 index 0000000..cd9f5f4 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Procedural City Generation + +A Rust re-implementation of a C++ engine for procedural city generation by manipulating .obj models and outputing an .obj model of a city. + +Usage (subject to change): [executable] [template].obj output.obj [optional: -d for debugging output] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..62d40dc --- /dev/null +++ b/src/main.rs @@ -0,0 +1,10 @@ +extern crate obj; +extern crate noise; + +use std::path::Path; + +fn main() { + let obj = obj::Obj::load("data/test.obj").unwrap(); + + println!("Postiion: {}", obj.position); +}