Code Monkey home page Code Monkey logo

Comments (6)

dvhart avatar dvhart commented on June 1, 2024

This should be doable with the mix and geometry::backface material nodes (shader) as shown here:
https://www.blendernation.com/2019/03/13/double-sided-shader-tutorial-for-blender-2-8/

Screen Shot 2020-07-07 at 1 22 32 PM

from thicket.

dvhart avatar dvhart commented on June 1, 2024

@JaWalli would you be willing to test this update adding support for two sided materials?
thicket-two-sided.zip

I confirmed two sided leaves on the Middle Aged Acer Palmatum Fall model.

I am particularly interested in knowing if the two textures are applied to the correct sides of the leaves (e.g. is the top always on the top).

from thicket.

JaWalli avatar JaWalli commented on June 1, 2024

@dvhart I had a look at several plant models, on all the result was flipped. My first intention was to switch the order of the Mix node, but actually it seems to be the mesh normals pointing into the wrong direction - please see attached image.
The normals on the leaves point downwards and on the trunk inwards. I think you just need to flip the normals!
catalpa_normals

from thicket.

dvhart avatar dvhart commented on June 1, 2024

Thanks @JaWalli , I've simplified the geometry creation code and was able to correct the normals without having to explicitly flip them (by removing some manual point manipulation in the import code and replacing it with a matrix transform). I believe this should now work as expected.
thicket-two-sided_v3.zip

from thicket.

JaWalli avatar JaWalli commented on June 1, 2024

v3 seems to work very nice. Tested on a few plants and front back side now works like intended. Good job!

from thicket.

dvhart avatar dvhart commented on June 1, 2024

Merged with PR #24

from thicket.

Related Issues (20)

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.