/obj-editor-unity

a live text editor for raw 3D modelling

Primary LanguageC#MIT LicenseMIT

obj-editor-unity

a text based 3D model editor following basic syntax of the .obj format

simple-obj-editor provides an interface to edit your 3d model / unity mesh / .obj file text data and see the changes live.

a brief how-to:

  1. lines starting with v and followed by three numbers seperated by whitespace are vertices

  2. lines starting with vn and followed by three numbers seperated by whitespace are vertex normals which decide the how light calculation works.

  3. lines starting with f and followed by three values in the format of

f v/vt/vn v/vt/vn v/vt/vn

are faces with v being vertex, vn being vertex normals and vt being vertex textures (vertex textures, beziers and other freeform geometry .obj features are not used in this app for simplicity purposes). we define three vertices in one face line as this doesn't directly support triangulation

for more details: https://cs.wellesley.edu/~cs307/readings/obj-ojects.html

movement:

  1. hold left mouse button and move to rotate around scene origin

  2. hold middle mouse button and move to pan

  3. hold right mouse button and press W,A,S,D,Q,E for movement

open source licences

https://github.com/ogxd/normals-effect-unity

https://github.com/xttx/Unity-Runtime-ScriptEditor/tree/master/Script-Editor

https://github.com/yasirkula/UnityRuntimePreviewGenerator

https://pastebin.com/tVdF8bNG