I am a beginning code developer, long-time basic user, but just becoming familiar with .NET environment and application development.
I am beginning PhD work in metrology. One application we are looking at is using laser to measure surface points of a part. This results in a set of 3D points (Point cloud - 100 to 1000000 independent coordinates).
I would like to find or create an ActiveX control to display this set of points in manipulable 3D environment window (with size, position and rotation controls).
I would like to investigate finding source for purchased OCX of this type, but also will develop a simple model so I understand the mechanics.
Can anyone give me benefit of their experience with simple 3D graphic display and/or OCX outsourcing?
I have also asked this in "Graphics Inquiry" thread.
I am currently undertaking DirextX8: DirectX Graphics: Getting Started tutorial from directx4vb.com (recommended from vbworld.com). As this tutorial is written in VB6, I have had to do some translation.
Most is ok, but I am hitting a runtime error in the Initialise function, particularly the line
Set D3DDevice = D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, FrmMain.Hwnd, _
D3DCREATE_SOFTWARE_VERTEXPROCESSING, D3DWindow)
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Laines 3D Display.exe
Additional information: Exception from HRESULT: 0x8876086C.
Am I missing something in the .Net translation? Has anyone submitted .Net translations to any of these basic graphics tutorials? (I feel I can translate ok, it's just tedious)
Also, are there existing OCX controls that utilize D3D, something I could incorporate directly to my project without having to manually code the whole thing?
btw, these tutorials look like the best on the net!
You need a hwnd to pass. You can't just pass Nothing, you need a fully qualified HWND. You can get one from any Control object using the Handle property, but you'll most likely want to use the main Form of your app.
All the buzzt CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
I need to create a new instance of the adapter.
This is runtime error; compile is ok.
On a broader subject, am I barking up the wrong tree trying to go this in VB.NET? It looks to me like current state of online support is strong in VB6, with little or no .NET support. What do you think?
handle.toint32 returns a valid value
but now i'm back to the original error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Laines 3D Display.exe
Additional information: Exception from HRESULT: 0x8876086C.