I have seen people are creating various shapes using math nodes in Blender. Not just simple shapes but very complex shapes for example like a batman logo. I have learned that they extract algebraic equation (for example y- mx + c =0) of the shape and then implement the equation using nodes in Blender.

Now my problem is I don't know how to extract equations from a shape. Forget about complex shapes, I even don't know for simple shapes. Can you please help me specifying what math topics I have to learn to achieve this. And how will I achieve these result?

Thanking you.

  • $\begingroup$ If you're getting renderers to produce shapes, you'll find yourself dealing a lot with distance functions. I would recommend looking at the code on shaderetoy,lots of examples can be translated from GLSL to nodes. one of its creators, Inigo Quilez gives out some very lovely teaching in this area, as does The Art of Code. there's a whole bunch of shader-freaks out there, you will find places to exchange notes. $\endgroup$ – Robin Betts Oct 23 '20 at 8:20
  • $\begingroup$ @Robin thank you. Let me read what's there in the link. Will come back once done. $\endgroup$ – Man_From_India Oct 24 '20 at 3:50

If you want to make simple shapes here is a recommendation - https://www.youtube.com/watch?v=BqijDcTdfZ8 but i can explain here , if you separate the xyz of texture coordinate using a Separate xyz node and then connecting it to a compare node(math) , you can get a black strip on a black plane , this could be used to make a square by subtracting another such white stripe from it , i really recommend watching the given tutorial. IN the future , you might want to make your own shapes and as you have mentioned in the link , the topic used in the equation is Linear and quadratic equations you can by the way trace equation in node , like say you have a value node , assume it to be x then adding math node to divide it by 7 , then square the result , it can be done , but if you want to verify the equation , proper linear and quadratic equation knowledge is needed to interpret them

  • $\begingroup$ Thank you. I have already seen that video but what I am looking for is the mathematics topic that controls that. Otherwise I can't create my own shape on my own. $\endgroup$ – Man_From_India Oct 23 '20 at 6:43
  • $\begingroup$ @Man_From_India can you give me an example of what "Simple" shape u want? $\endgroup$ – SHikha Mittal Oct 23 '20 at 6:45
  • $\begingroup$ math.stackexchange.com/questions/54506/… $\endgroup$ – Man_From_India Oct 23 '20 at 6:50
  • $\begingroup$ I don't want an instruction like add this node and plug this to that. But I really want to know the math, to know by what logic we are puting this and not any other. I hope I am making sense :-) $\endgroup$ – Man_From_India Oct 23 '20 at 6:51
  • $\begingroup$ @Man_From_India made the edit $\endgroup$ – SHikha Mittal Oct 23 '20 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.