THIS PROJECT IS DISCONTINUED Please see the new and improved version at https://scratch.mit.edu/projects/679427268/ :) -------------------------- Highly recommended to try: https://turbowarp.org/425324462 See Notes and Credits for OBJ importing info Press C to toggle move the "sun" around WASD controls Q + E = Up + Down Press I to toggle info/control panels 1 - Example Delorean - Made by me in blender 2 - Example Arcade machine - Made by me in blender 3 - Example CRT monitor - Made by me in blender 4 - Example Spaceship - Made by me in blender 5 - Example IcoSphere - Free blender object 6 - Example Cone - Free blender object 7 - Example Cube - Free blender object All models are raw .obj files exported from blender Things to add/fix - Triangle near plane clipping ///HELP I just pulled apart my 3D multiplayer game and reduced it to an empty world, and then went from there, so some stuff from the game is still left over lol :p Update notes - 19/09/20 - Made performance optimizations and fixes 18/09/20 - Added .mtl support + revamped some models 10/11/20 - Fixed triangles not factoring in near clipping plane for all edges 19/11/20 - Fixed RGB to HSV colour conversions that made colours look desaturated, now they're fine!
@TheLogFather for triangle filling scripts MODEL HAS TO BE EXPORTED FROM BLENDER (or follow its obj formatting) When uploading your own model, assure that all faces are triangle split as the engine cannot yet handle quadrilaterals or above. To change this, open the model in blender, select all vertexes in edit mode, press Ctrl + T, then export as .obj. You must also make sure that all normals on the model are facing in the correct direction. This is complicated to explain here, so please look up a tutorial if you find that backface-culling isn't working with your model. MAKE SURE ANY MODELS YOU IMPORT ARE SUPER LOW POLY, TRIANGLE FACED AND HAS LESS THAN ~500 VERTICES. To import your own model, open See Inside, set the list "# .obj here" to visible and then right click it in the viewport. In file explorer, select your .obj file and import it. Afterwards, press L while on the scratch project to load the model's information, this may take a few seconds. Same goes for the .mtl file accompanying it ^