Skip to content

hemanth2004/obj-editor-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

obj-editor-unity

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

obj-editor provides an interface to edit your mesh data and see the changes live instead of having to open the .obj in a tool like blender with every change you make to the raw text.

windows & linux build (itch.io)

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 some other freeform geometry .obj features are not used in this app for simplicity purposes. We also define exactly three vertices in one face line as there is no direct support for triangulation.

for samples of shapes: .obj primitives

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

controls

  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 -
    1. move mouse to look around in FPV
    2. 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