Welcome Guest Search | Active Topics | Members | Log In | Register

Drawing Lines Options
egus77
Posted: Friday, September 23, 2011 1:59:43 PM
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!
egus77
Posted: Monday, October 03, 2011 1:32:15 PM
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!
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS