GregH
01-01-2006 02:31:53
Hi Folks,
Well I've been using OGRE for about a month now - and getting to the end of Tutorial 3 has been a challenge - but I now have a foggy terrain with animated skydome and a moving camera. The Singleton thing had me stumped for a while (as I haven't had cause to use them in VB.Net).
My latest issue is not being able to create an OverlayContainer. Yes, I know the OverlayManager can create OverlayElements which can later be cast to OverlayContainers, but I'll be damned if I can figure out the syntax in VB.Net to achieve this seamingly simple task...
I've tried various approaches such as:
Dim MyPanel As OverlayElement = OverlayManager.getSingleton.CreateOverlayElement("Panel", "PanelName")
Dim MyContainer as OverlayContainer = CType(MyPanel, OverlayContainer)
...to try and cast MyPanel to a container...but I keep getting Invalid Cast.
Is there anyone out there that has coded nested overlays in VB.Net???
Kindest regards,
Greg H.
Well I've been using OGRE for about a month now - and getting to the end of Tutorial 3 has been a challenge - but I now have a foggy terrain with animated skydome and a moving camera. The Singleton thing had me stumped for a while (as I haven't had cause to use them in VB.Net).
My latest issue is not being able to create an OverlayContainer. Yes, I know the OverlayManager can create OverlayElements which can later be cast to OverlayContainers, but I'll be damned if I can figure out the syntax in VB.Net to achieve this seamingly simple task...
I've tried various approaches such as:
Dim MyPanel As OverlayElement = OverlayManager.getSingleton.CreateOverlayElement("Panel", "PanelName")
Dim MyContainer as OverlayContainer = CType(MyPanel, OverlayContainer)
...to try and cast MyPanel to a container...but I keep getting Invalid Cast.
Is there anyone out there that has coded nested overlays in VB.Net???
Kindest regards,
Greg H.