Code Monkey home page Code Monkey logo

cotangent's Introduction

Cotangent

3D printing application. MIT License.

This is Cotangent 1.0.5, the same version as is published on https://www.cotangent.io

Set Up Build

Install Unity

Current repository requires Unity 2018.1.9f1. You can download old versions of Unity here: https://unity3d.com/get-unity/download/archive

Get Submodules

run

git submodule update --init --recursive

to check out all the submodules

Open Project In Unity

There will be many errors

Unzip gsUnityVR

Unzip the file Assets\frame3Sharp\gsUnityVR.zip. This will create a fake unity asmdef module that is required due to Unity dependency weirdness.

Install Vectrosity

Import Vectrosity5-Unity5.6.unitypackage from the Vectrosity 5.5 package zip.

(Yes, you will need to buy a Vectrosity license from https://starscenesoftware.com/vectrosity.html. Sorry, no way around this currently. You are welcome to try to remove this dependency and submit a PR)

fix Shaders

There is a bug in Unity 2018.1 that will cause two of the shaders in f3Sharp to fail to compile, resulting in f3Sharp dll not building, and a bunch of "missing f3 namespace" errors. The culprit errors that cause this cascade will look like this:

Shader error in 'f3/f3VtxColorFlatShaded': invalid subscript 'uv2' at /Program Files/Unity/Editor/Data/CGIncludes/UnityStandardMeta.cginc(21) (on d3d11)

To fix this, find each shader, right click on it, and select Reimport from the menu, as described here: https://www.reddit.com/r/Unity3D/comments/8kjzdf/standard_shader_invalid_subscript_uv2_error/. You should have to do this for the f3StandardVtxColor and f3VtxColorFlatShaded shaders in Assets\frame3Sharp\Resources\StandardMaterials.

Close and Re-Open Unity

this will produce the f3 dll and get rid of all the "missing f3 namespace" errors

Open Cotangent Scene

in Assets\cotangentApp\CotangentScene

Hit Play

It should work...

cotangent's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.