Git Product home page Git Product logo

blen64's Introduction

Blen64

Blender scripts to convert and export mesh objects to draw lists as C header files for use with the n64 SDK Mesh output example

V2.2 - beta

Change log:

  • Reindex triangles after each vertex load (fixes large exports)
  • End display list properly
  • Allow script to run in edit mode
  • Clear the symbol table between exports
  • Set the alpha to 255 for vertex colors
  • Report correct triangle count (triangulate before checking)
  • Added options to export panel
  • Apply transformations
  • Descend heirarchies of objects
  • Only converts selected objects that are meshes
  • No longer crashes when UVMap/Vertex Colors are not present
  • Always outputs valid C identifiers
  • Exports all objects selected in the scene
  • Uses Export Menu now instead of requiring the user to run a script
  • Fixed poly buffer limit issues
  • Added Vertex Color Support
  • Fixed missing vert/face disarray issue
  • Cleaned up some code

Usage:

1. Copy the io_scene_n64dl folder to your Blender installation's addons folder. Then enable the addon under settings. To run the script, select the objects you wish to export and choose N64 DL from the export menu. Setup

Cautionary Note:

Blen64 in it's current state is extremely unequipped to optimize for poly count, that is to say IT WILL EAT UP YOUR VETEX BUDGET, in short it because we are building draw lists from poly loop indices we end up with duplicate vertices, essentially there are duplicate vertices for every face connected to a point, in turn faces aren't technically connected(hence the weird shading effect since surfaces cant be smoothed). This shouldn't be a problem for long and I have a couple different solutions in the works.

Feature Roadmap:

  • Fix the last of the SAIFAV(super annoying incorrect faces and vertices) bugs.
  • integrate render modes(opaque, translucent, cutout etc.)
  • possible auto save to header
  • Triangulate non-destructively :)

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.