Blender: Kubus Mustahil (Blender: Impossible Cube)


問題描述

Blender: Kubus Mustahil (Blender: Impossible Cube)

I'm working on a graphics project trying to create an impossible cube in 3D. An impossible cube looks like that:

The trick behind this is two of the edges which are 'cut' and a picture taken from a specific angle to give the illusion of the impossibility. 

Well I'm trying to make this but instead of a static image, I want to be able to animate it (rotate around) maintaining the impossible properties. 

I have managed to make a cube in blender as you can see in the screenshot below:

I would like to hear your suggestions as to how I can achieve the desired effect. An idea would be to make transparent the portion of the edge that has an edge(or more) behind it, so that every time the camera angle changes, the transparent patch moves along. 

It doesn't have to be done in Blender exclusively so any solutions in OpenGL etc are welcome.

To give you an idea of what the end result should be, this is a link to such an illustration:

3D Impossible Cube Illusion Animation

‑‑‑‑‑

參考解法

方法 1:

It's impossible (heh). Try to imagine rotating the cube so that the impossibly‑in‑front bit moves to the left. As soon as it would "cross" the current leftmost edge, the two properties of "it's in front" and "it's in the back" will not be possible to fulfill simultaneously.

方法 2:

If you have edge culling enabled, but clipping (depth‑testing) disabled, and draw primitives in the right order, you should get the Escher cube without any need for cuts.  This should be relatively easy to animate.

(by Alex EncoreFeepingCreatureBen Voigt)

參考文件

  1. Blender: Impossible Cube (CC BY‑SA 3.0/4.0)

#graphics #raytracing #transparency #C++ #Blender






相關問題

OpenGL等圖形庫的目的是什麼? (What is the purpose of a graphics library such as OpenGL?)

Blender: Kubus Mustahil (Blender: Impossible Cube)

隨機移動的圖像被屏幕的左上角吸引 (Randomly moving images are attracted by the top-left corner of the screen)

Bản đồ họa tiết Android OpenGLES 2.0 không hoạt động (Android OpenGLES 2.0 Texture Mapping Does Not Work)

用於顯示位圖和處理按鈕按下的簡單框架 (Simple Frameworks for Displaying Bitmaps and Handling Button Presses)

繪製後如何填充多邊形 (How to fill a polygon after drawing)

Java Swing/Graphics - repaint() 或 validate() 不起作用? (Java Swing/Graphics - repaint() or validate() doesn't work?)

繪製多邊形:找不到錯誤 (Drawing Polygon : unable to find error)

半透明 JButton:對像出現在背景中 (Semi-Transparent JButton: Objects appear in Background)

更改 BufferedImage 的 alpha 值? (Change the alpha value of a BufferedImage?)

圖像處理公式可生成類似通過 Mac 相機拍攝的照片的效果 (Image manipulation formula to generate effects like pictures taken via Mac's camera)

如何在 MATLAB 中為一組向量的旋轉設置動畫? (How do I animate the rotation of a set of vectors in MATLAB?)







留言討論