Transparent Objects

Forum for reporting problems
Post Reply
atrev
Posts: 24
Joined: Tue Jul 30, 2013 9:19 am

Transparent Objects

Post by atrev »

In an older version at least, we used to be be able to get transparent objects for the primitive objects. Our code for the draw of them hasn't changed in many months, and presuming something may have changed in the kernelcad control to do with this?
Can you confirm if this is the case?

using:

Code: Select all

Dim gIview2 As IView2
gIview2 = CType(Me.AxKernCADMainForm.GetView, IView2)
gIview2.Enable(EEnableBit.eEnableTransparency, True)

Code: Select all

 
gImaterial = CType(m_iSection, IMaterial)
gImaterial.SetColor(0, 1, 0, 1)
gImaterial.SetAlpha(1, 0.5)
Thanks

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Transparent Objects

Post by nickz »

We have not touched this functionality for >= three years. Your code looks OK
What is the problem?
Transparency is somewhat tricky: http://www.dynoinsight.com/phpBB3/viewt ... arency#p27
Basically you need to make sure that the user looks at the model only from certain range of angles
Nick

atrev
Posts: 24
Joined: Tue Jul 30, 2013 9:19 am

Re: Transparent Objects

Post by atrev »

We used the box objects for drawing over pointclouds and meshes, to display areas of interest to us. The boxes used to be transparent, and used to be able to see through, but they are opaque now

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Transparent Objects

Post by nickz »

We have reproduced and fixed this. It was a regression missed a while ago. The fix will be available in the next update. Thank you for reporting

Sounds like a rectangle created with IStdShape.Rectangle() would be enough instead of the box

Nick

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Fixed

Post by nickz »

We have posted the 4.3.3751 update where this issue have been fixed

atrev
Posts: 24
Joined: Tue Jul 30, 2013 9:19 am

Re: Transparent Objects

Post by atrev »

Thanks, that seems to be working now :D

Post Reply