Skip to main content
gamedev.net
🔒 Locked

Using 3DExplorer

Started by steveharper101 Nov 14, 2000 at 4:41 PM 7 replies 650+ views
Original Post
steveharper101
steveharper101
Can anybody explain to me the format of the files 3DExlporer generates. Shouldn''t it be somthing like: glBegin(GL_triangles); glVertex3f(x,y,z); the file that is generated by 3DExplorer appears to use some array. I have heard somthing about display lists. I am importing a 3D studio max 3 file and exporting it to opengl cpp. please help as I am only a newbie to the OpenGL world. Cheers Steve
Bezzant
Bezzant

I beleive you need to call it up. See NeHe''s tutorials on display lists

Alan

IF YA SMELL... WHAT THE BEZZ IS COOKIN''''

Snyper
Snyper
I have not looked at the files that program makes but more than likely, its arranging the data for the use of Indexed Vertex Arrays. Its a nice technique and i use it whenever i can.

-Snyper
=============================Where's the 'any' key?=============================
a2k
a2k
when you save as opengl.cpp, there is an option called "Export Type" at the top. set it to display list, and then it''ll provide a function you can use that will return an integer for you to call in your main loop.

a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k
oglman
oglman
If you want to see how to use it you can generate a sample app using the check box or for the array select "SAMPLE APP" on the dropdown menu




Open mouth, insert foot
Keermalec
Keermalec
OK, I made a sample app and then tried to compile it using a default workspace in MSVC++6: 22 errors. Then I added links to opengl32.lib and glu32.lib and reduced the number of compilation errors to 2. here is my latest error message:

  --------------------Configuration: cherries - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/cherries.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

cherries.exe - 2 error(s), 0 warning(s)


Should i link in more libraries? if so, which one(s)?

Thanks
darkopengl
darkopengl
do you have your project set to a "win32 application" and not "win32 console" because i had the same errors and took me forever to figure it out
Keermalec
Keermalec
WOOOHOOOO!! Darkopengl, you''re the man! Apparently the "default workspace" MSVC++6 makes when you compile a lone cpp file is a Win32 console app, and as you said, you need a Win32 app in this case.

So, for all yer newbes out there like me, here is the project space you need to run a 3dexplorer opengl app, as well as the cherries.exe executable, just for laughs:

executable


source and workspace



(OK, I know, choosing 3dexplorers'' cherries may not have been the right example to display on a public site: strange pulsating pair of balls there...)


oglman
oglman
I think there''s an option there that says "Generate project workspace" you can just check that and worry about nothing




Open mouth, insert foot

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.