- Messages
- 210
- Country
Maybe someone can see what's wrong?
One week I tried to make my own Docking Guide System. The Heading for parking Aircraft should be 151°.
The left and right directions are working fine, no problems with them. But everything with distance doesn't work. If I do not use a seperation plane and only one Draw, I get
DRAW_TRI_BEGIN 6, 4
DRAW_TRI 0, 3, 1 ; poly=6 part=5
DRAW_TRI 3, 0, 2 ; poly=5 part=5
DRAW_TRI_END
shows the correct WAIT.
DRAW_TRI_BEGIN 10, 4
Shows Stop.
But with the Seperation_Plane nothing is shown, only a hole in the model.
I compared with the Safedock-Tool and also checked a model made with this. It works, only my own model didn't work. I found only one difference in the code, this was MATERIAL 1,2, in my model it is MATERIAL 0,2.
ADGSX_AC_4 label BGLCODE
MATERIAL 0,2 ; <255,255,255,255> ADGS_MSG.BMP;;;
BGL_ZBIAS 1
; wait
SEPARATION_PLANE me00, -15886, 0, 28660, (40+40)*32767
DRAW_TRI_BEGIN 6, 4
DRAW_TRI 0, 3, 1 ; poly=6 part=5
DRAW_TRI 3, 0, 2 ; poly=5 part=5
DRAW_TRI_END
BGL_JUMP_32 meend
me00 label word
;Stop
SEPARATION_PLANE me01, -15886, 0, 28660, (40-1)*32767
DRAW_TRI_BEGIN 10, 4
DRAW_TRI 0, 3, 1 ; poly=6 part=5
DRAW_TRI 3, 0, 2 ; poly=5 part=5
DRAW_TRI_END
BGL_JUMP_32 meend
me01 label word
meend label word
BGL_ZBIAS 0
BGL_RETURN
Any ideas? Thank you
One week I tried to make my own Docking Guide System. The Heading for parking Aircraft should be 151°.
The left and right directions are working fine, no problems with them. But everything with distance doesn't work. If I do not use a seperation plane and only one Draw, I get
DRAW_TRI_BEGIN 6, 4
DRAW_TRI 0, 3, 1 ; poly=6 part=5
DRAW_TRI 3, 0, 2 ; poly=5 part=5
DRAW_TRI_END
shows the correct WAIT.
DRAW_TRI_BEGIN 10, 4
Shows Stop.
But with the Seperation_Plane nothing is shown, only a hole in the model.
I compared with the Safedock-Tool and also checked a model made with this. It works, only my own model didn't work. I found only one difference in the code, this was MATERIAL 1,2, in my model it is MATERIAL 0,2.
ADGSX_AC_4 label BGLCODE
MATERIAL 0,2 ; <255,255,255,255> ADGS_MSG.BMP;;;
BGL_ZBIAS 1
; wait
SEPARATION_PLANE me00, -15886, 0, 28660, (40+40)*32767
DRAW_TRI_BEGIN 6, 4
DRAW_TRI 0, 3, 1 ; poly=6 part=5
DRAW_TRI 3, 0, 2 ; poly=5 part=5
DRAW_TRI_END
BGL_JUMP_32 meend
me00 label word
;Stop
SEPARATION_PLANE me01, -15886, 0, 28660, (40-1)*32767
DRAW_TRI_BEGIN 10, 4
DRAW_TRI 0, 3, 1 ; poly=6 part=5
DRAW_TRI 3, 0, 2 ; poly=5 part=5
DRAW_TRI_END
BGL_JUMP_32 meend
me01 label word
meend label word
BGL_ZBIAS 0
BGL_RETURN
Any ideas? Thank you