2
Write the shortest program you can that displays a red 3D cube.
Rules:
- The cube must be red, have 6 rendered sides, and be displayed in 3D.
- Your program cannot load any textures.
- More than 1 side must be visible.
- The result does not need to be rotatable.








I think this needs to be tagged [tag:graphical-output] or this question should be closed as unclear. – mbomb007 – 2017-05-02T17:31:39.467
In respect to the close vote going on at the moment: I don't think this is specified enough. For example, does an orthographic projection count as 3D? What about an isometric projection? The question asks for a projection to be hardcoded ("does not need to be rotatable"); is it sufficient to instead hardcode the projected locations of the points? Is any lighting required, or can all the sides be the exact same shade of red? If so, is it legal to just draw a solid rectangle/hexagon, or must it be drawn as two rectangles/parallelograms/trapezia? – None – 2017-05-02T17:32:15.407
Someone answer in Minecraft – mbomb007 – 2017-05-02T17:34:19.287
8i think u need to add a condition that more than 1 side is visible. – user13107 – 2014-03-04T03:19:50.780
Only few languages would do the job for "must use either Direct3D or OpenGL" and like have been said, include a sample and How many sides? Is there a degree? – Dadan – 2014-03-04T10:27:48.453
What does "red, have 6 sides and be 3D" mean? Did you mean that there needs to be shading? That we have to actually draw 6 sides, but only 2 or 3 have to be visible? Did you mean that the displayed result has to rotatable? – Justin – 2014-03-04T19:02:16.610
@Quincunx sorry if what I said was unclear. The cube has to be a solid red colour and 6 sides must be rendered but only 2 or 3 sides must be visible. The result doesn't have to be rotatable. – icedvariables – 2014-03-04T19:30:50.370
What do you mean by 'cannot load any textures'? Do you mean that you can't simply load an image of a red cube or that you can't use textures to make the cube red? – Stephen Melvin – 2014-03-05T15:58:36.400
Generally, you should not change the contest rules after answers have been given. If you do so, it should be only to add clarification of what was meant by the rules already given. – Jonathan Van Matre – 2014-03-05T16:17:18.287