Giter Site home page Giter Site logo

roofeus's Introduction

Roofeus

Blender plugin to generate tiled geometry based on a template along a surface .

Roofeus result

Purpose

If you want to apply displacement maps in a plane in blender, you'll need more vertices inside the plane. You can create them automatically with subdivisions: Subdivision comparison The more subdivisions you make, the better results you'll have, but it will be more heavy and more complex to render. And there are lots of useless geometry.

You can create them manually, but in extensive surfaces with lots of details could be a pain...

Roofeus offers another possibility for repetitive patterns:

  1. Define a template over the texture (composed by vertices and faces)
  2. Apply it in a blender face, adapting it to the face UVs

This solution allows to create subdivisions with the exact precision you will define in the template and very fast. Roofeus result comparison On the left, plane subdivided by blender using Multiresolution tool and 7 simple subdivisions (>16k vertices). On the right, roofeus result (1318 vertices).

How to install

To install roofeus add-on, compress the "roofeus" folder in a zip file and install it from the blender add-ons menu. You can find more information about install blender add-ons in https://docs.blender.org/manual/en/latest/editors/preferences/addons.html

To run template_editor.py and main.py you will need python3 and the dependencies in requirements.txt

How to use

Roofeus is intended to use in 2 steps: create the template and using it in blender.

Create a template

To create and edit templates you can run the template_editor.py script to open the visual editor. It will allow you to:

  • Open a texture to draw vertices over it
  • Open an existing template
  • Save the template (txt extension, for the moment)
  • Create and edit vertices
  • Create and edit faces

Template editor

In the "Face creation" tab, the texture and template is displayed in a 2x2 grid. That is because, when you apply it as a repetitive pattern in blender, you'll want to have the vertices of your template linked to the next 'projected' template. So, you can create faces between them.

Use a template

Select a face in the edit mode and open the "Roofeus" vertical tab. A panel with some options will be displayed:

Blender panel

  • Template: The created template to apply
  • Fill uncompleted space: Options to fill the space between the vertices that were linked to other vertices in the template that doesn't fit in the target face. Available options are:
    • Fill to vertices: faces will be created until the target vertices.
    • Fill to border: faces will be created as if they were cut by the target edge. This is the most accurate option, but it creates more additional vertices along the edges.
    • No fill: no faces will be created.
  • Roofeus: begin process.

roofeus's People

Contributors

roberlarues avatar

Stargazers

 avatar

Watchers

 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.