Rank: Member
Joined: 6/28/2011 Posts: 11 Points: 33 Location: Madrid
|
Hi everyone!
I´m a developer of PROIN3D in Madrid, Spain. We are working with NOVA since one year. I am trying to write a 3dline inside my NovaScene. I am using the NovaLine object, but i can´t get it work. The code that i am using is .
Imports...... ...
Class Script ...
Private l As NovaLine
Public Sub New(scene As NovaScene) ...
l = myScene.CreateNovaLine() l.KeyPoints.Add(New Vector3(0, 0, 0)) l.KeyPoints.Add(New Vector3(0, 100, 0)) l.Color = RGBAColor.FromColor(color.Red) l.Width = 100 l.Validate() l.Draw(myScene.ActiveCamera.WorldMatrix) End Sub
I am using global coordinates for the key points, is this an error? I am using the active camera world matrix for drawing the line.... Where is the mistake?
Thanx!
|
Rank: Member
Joined: 6/28/2011 Posts: 11 Points: 33 Location: Madrid
|
I´ve found the problem. After drawing the lines in the main scene, the companion scene renders the interface over this previous render. The "transparent part" of the companion, erase the lines. ¿How can i avoid it? Thanxs!
|