Hi guys,
I was wondering if anyone could point me in the right direction or offer some help to create a roadway (3d).(examples)
I have a MFC dialog with a table that contains coordinates(3d points) for every lane of a roadway in it. When a user presses a certain button an opengl program should be launched that creates a new window with a 3d roadway in it determined from the points in the mfc dialog table. I don’t need any texturing at all. Wireframe would be great.
I have tried the simple 3d tutorials for creating 3d objects (like the rotating cube example), but these all had their points hardcoded in vertex arrays or something.
Now, my problem is that I generate all the points of the roadway at runtime.How do I tell the opengl program:here you go, these are my new points, draw me a roadway???
I can get the part to launch an opengl program working.
I was thinking of writing these points from the table into a temporary file. The opengl program,when launched, would read these points from that temporary file and create the roadway. Is this the way to go or am I just lost???
Anyone done something like this at all???
What is the best way do accomplish this task???
Any help is very very much appreciated.
Cheers