From 56976c16cc77a195fc1edbdf1523c150f114c830 Mon Sep 17 00:00:00 2001 From: Alex Huddleston Date: Sat, 4 Nov 2017 15:45:04 -0500 Subject: [PATCH] Initial commit. --- .gitignore | 6 ++++++ Cargo.toml | 11 +++++++++++ README.md | 5 +++++ src/main.rs | 10 ++++++++++ 4 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/main.rs 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); +}