|
How can I plot of set of 3D points using Direct3D?
I have done a lot of online searching for help with this. I have successfully run many code samples and walked through many tutorials. I have a degree in computer science and many years of programming experience.... but I could use some help with this. What if I just have a set of 3D points from a real-world sampling of ground coordinates and elevations, and I want to display those points as a wireframe? Everything I'm finding requires made-up things like a lizard or a cube or a sine-wave function. I need to set my coordinate system to my data set and view the terrain...should be simple I thought.
Here's an example of the data, a very simplified example but it should get the point across. I don't know how to create vertices out of my data, I just have my data, and I want to plot it!!!
UTM-based data, but it's just x,y,z....
Point,Easting (m),Northing (m),Elevation (m)
W01A01,512449.379,5128414.988,596.570007
W01A02,512460.793,5128387.379,598.210022
W01A03,512473.827,5128347.468,598.570007
W01A04,512479.68,5128331.079,598.98999
W01A05,512486.802,5128297.226,598.190002
W01A06,512487.192,5128286.866,599.580017
W01A07,512493.728,5128261.598,599.429993
W01A08,512508.264,5128251.16,598.76001
W01A09,512523.971,5128238.868,597.640015
W01A10,512539.483,5128231.258,598.179993
W01A11,512561.784,5128211.035,595
W01A12,512593.783,5128207.522,593.570007
W01A13,512619.831,5128203.23,591.789978
|
|
|
|
|
I am in 2nd year BCA.
I want to know that how to display data in data grid control using connection.(in vb6.0 with database(microsoft office access2003)).
reply solution.........
|
|
|
|
|
Please do not repost the same message twice. If you do not have an answer yet it means that nobody who has read your question can answer it. Be patient, it's the weekend, if somebody knows the answer I am sure they will post it. Meanwhile I suggest you spend the weekend reading about databinding in Visual Basic. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Richard MacCutchan wrote: I suggest you spend the weekend reading about databinding in Visual Basic
No thanks. I'm planning a relaxing Sunday...
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
|
|
|
|
|
samuactive wrote: I want to know that how to display data in data grid control using connection.(in vb6.0 with database(microsoft office access2003)).
Use the MXFlexGrid , there's some tutorials[^] on this page I are Troll
|
|
|
|
|
What is a BCA I wonder and what country are you getting your tuition in?
Any institution still teaching with VB6 is doing you a grave disservice, it is VERY unlikely you will ever be able to use it in the commercial world.Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I am in 2nd year BCA.
I want to know that how to display data in data grid control using connection.(in vb6.0 with database(microsoft office access2003)).
reply solution.........
|
|
|
|
|
They're actually still teaching VB6 where you're going to school?? That's pretty bad considering VB6 hasn't been supported in quite some time. They're teaching you bad habits on a dead product.
|
|
|
|
|
How can I object name that is in the form and the mouse is on it do?
Thanks!
milad.biroonvand
|
|
|
|
|
Either i am still drunk from last nights beverages.....or that question makes no sense at all.
Could you rephrase the question?
|
|
|
|
|
could be both, however I don't think it is.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
|
|
|
|
|
You might want to have someone else more versed in English post this question. Your post makes no sense at all.
|
|
|
|
|
I am going to assume that you are saying how can you find the name of the object which the mouse is over. Would that be correct?
You would have to use a routine that accessed the mouse hover probably and then read the details from the sender object. That would be my suggestion.
|
|
|
|
|
Just add a ToolTip to your form and set the ToolTip on each control to the name of the control.
|
|
|
|
|
I one "controller" application I use the following code to send a message:
Private Declare Function apiSendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Int32, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal lParam As String) As Boolean
In my receiver application I use the following code to translate the message:
Protected Overrides Sub WndProc(ByRef message As Message)
If (message.Msg = MY_CUSTOM_MESSAGE) Then
Me.Text = message.LParam
End If
MyBase.WndProc(message)
End Sub
the problem is I cannot send a string parameter. in my receiver, message.LParam is a IntPtr, even tho I'm using a string in the declaration.
Any suggestions?
Thanksmodified on Friday, February 26, 2010 9:06 PM
|
|
|
|
|
It doesn't work because you're not sending a string in the message. You're sending a pointer to a string.
Google for "VB.NET WM_COPYDATA" for examples. This is much more difficult than your code sample says you think it is.
I don't use anyn of these these methods because it will only work between two processes on the same machine, and it will not work between 32 and 64 bit processes.
|
|
|
|
|
I use DTPicker for many years and never had a problem (with 32 bits PC).
Lately, I installed DTPicker (mscomct2.ocx) on a 64 bits machine.
After the normal install, this tool name appears as DTPicker2 instead of the normal name DTPicker.
For example, in my 32 bits I can use tools such as ListBox, ComboBox and DTPicker.
But my 64 bits shows the same tools as ListBox, ComboBox and DTPicker2.
Of course, when I wrote macros on my 32 bits and copy them on my 64 bits, the normal "DTPicker" is not reckognized as it is called DTPicker2.
The effect is that I have multiple errors when trying to run the macros in my 64 bits.
Any idea how to make sure DTPicker tool is named DTPicker in my 64 bits.
Note: Both DTPicker versions are the same.
Thanks
Daniel
|
|
|
|
|
You could wrap the control in a class called DTPicker which should satisfy the checks of (if typeof(ctl) is dtpicker).
public class DTPicker
Inherits DTPicker2
end class'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Thanks for this quick reply.
I never used class before.
Any idea how these 3 lines should be input?
In a normal module or a class module?
In both, I receive error syntax.
I am using VBA with Excel.
Thanks again
Daniel
|
|
|
|
|
daniel houle wrote: I am using VBA with Excel.
That should have been in your first post. He assumed that you were using VB.NET.
The solution he gave does not apply to VBA/Excel. I don't know of a solution that does.
You may want to open up RegEdit and search for "DTPicker" and see if there is a second DTPicker control registered in the system. If it's there, it was done by the installation of another app, or you have Visual Studio 6 or VB6 installed.
|
|
|
|
|
Thank for your reply Dave
I beleive you are aware that mscomct2.ocx is not supplied with the OS since WIndows ME.
So I have to get it from the net and register it in my PC's.
When I register it on a 32 bits PC, the file creates a DTPicker tool.
When I register it on a 64 bits PC, the file creates a DTPicker2 tool.
Ever heard of such a thing?
If so any idea to fix it so that I could get a DTPicker on my 64 bits PC?
Thanks again
Daniel
|
|
|
|
|
daniel houle wrote: Ever heard of such a thing?
Nope.
daniel houle wrote: If so any idea to fix it so that I could get a DTPicker on my 64 bits PC?
I already gave you the only thing I can think of to see what might be causing this.
|
|
|
|
|
Hello All,
My application is using CryptGenRandom() API to get random numbers. This API is working in all 32-bit computers.
I recently installed my application in windows-7 64-bit computer. On this machine CryptGenRandom() API is throwing below error.
Problem Event Name: APPCRASH
Application Timestamp: 4b84b933
Fault Module Name: StackHash_6299
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 000007ff005880cb
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: 6299
Additional Information 2: 6299b6a70d20c6215a02ce0a4291f9cc
Additional Information 3: 7130
Additional Information 4: 71302fa4a91436747a963f67bb2f095e
Sample Code:
ReDim bChallengeArray(127)
lres = CryptGenRandom(lhcsp, 128, bChallengeArray(0))
lres = CryptEncrypt(lhkey, 0, 1, 0, bCryptBufferArray(0), ldatalength, lBufferLength)
Please don't ask me to use managed code, because this is maintanance project client will not agree to change the code.
If anybody have any idea, please let me know the solution.
Thnaks in advance.
Srimodified on Friday, February 26, 2010 5:16 AM
|
|
|
|
|
The error you posted is useless. It doesn't provide any details that can be used to diagnose the problem. You need the error from GetLastError to have any meaningful error code.
We'd also need to see your PInvoke headers for these two functions. It's possible the wrong datatypes have been used to declare the parameters passed into the functions.
|
|
|
|
|
Just a thought as I had something similar. Did you compile for 32 bit? I had to specifically compile for 32 bit before an app would run on Windows 7 64 bit.
|
|
|
|
|