the mysterious skull painting (code)
Posted: Thu May 31, 2012 11:34 am
it is called The Ambassadors:
http://en.wikipedia.org/wiki/The_Ambassadors_(Holbein)

look at the bottom there are something like a plate, but it is a tilted 2D skull with regard to the viewer outside, and if you enter the Ambassador room you can look at the object and see this 2D skull.
i am sure the tilted or rotated objects are related to the matrix math like the OpenGL math. but i find it easier to imagine it as a compressed object (wich may be also have relations to matrices?!!!).
so we can resize the skull image vertically by 5 to see it semi normally.
attached the skull picture before resizing (after rotating it) :

and after resizing:

i have used the image.pb from the pb examples folder to display and resize vertically the image
http://en.wikipedia.org/wiki/The_Ambassadors_(Holbein)

look at the bottom there are something like a plate, but it is a tilted 2D skull with regard to the viewer outside, and if you enter the Ambassador room you can look at the object and see this 2D skull.
i am sure the tilted or rotated objects are related to the matrix math like the OpenGL math. but i find it easier to imagine it as a compressed object (wich may be also have relations to matrices?!!!).
so we can resize the skull image vertically by 5 to see it semi normally.
attached the skull picture before resizing (after rotating it) :

and after resizing:

i have used the image.pb from the pb examples folder to display and resize vertically the image
Code: Select all
UseJPEGImageDecoder()
UseJPEGImageEncoder()
If OpenWindow(0, 0, 0, 640, 480, "Image Resize")
If CreateImage(0, 416, 304)
StartDrawing(ImageOutput(0))
file$= "skull.jpg"
LoadImage(0, file$)
StopDrawing()
EndIf
ResizeImage(0, 416, 304)
CopyImage(0, 1)
ResizeImage(1, 100, 500)
Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_Repaint
StartDrawing(WindowOutput(0))
DrawImage(ImageID(0), 20, 10)
DrawImage(ImageID(1), 440, 0)
StopDrawing()
EndIf
Until EventID = #PB_Event_CloseWindow
EndIf
End