Hi,
I just want to draw an Y form using lines and push and pops but is only drawing the first line. Nothing is drawed once rotated or translated, so I believe I should be doing something wrong.
Please give me a hint :)
GLOBAL height, width
height = 600
width = 600
SETSCREEN height, width, FALSE
WHILE TRUE
X_MAKE3D 1, 2500, 45
X_CAMERA 0,0,500, 0,0,0
X_MOVEMENT width/2, height-20, 0
X_LINE 0,0,0, 0,60,0, 10, RGB(0,0,255)
X_MOVEMENT 0, 60, 0
X_ROTATION 30, 1, 0, 0
X_PUSHMATRIX
X_LINE 0,0,0, 0,60,0, 10, RGB(255,0,0)
X_POPMATRIX
X_ROTATION -60, 1, 0, 0
X_PUSHMATRIX
X_LINE 0,0,0, 0,60,0, 10, RGB(255,0,0)
X_POPMATRIX
SHOWSCREEN
WEND
O_O Like X_PRINT, I don't think X_LINE is not part of and X_OBJ so you can push and pop it.
What I suggest using a texture map with a line on transparent background mapped on an object. :good: