Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

3DS Max models needed to import into OpenGL using Dev C++ GUI compiler

Posted on 2005-03-04
8
Medium Priority
?
8,644 Views
Last Modified: 2013-12-06
I am currently devloping a game which requires various 3ds max models to be imported into the game where they can then be manipulated by the program.

After a good search on the internet I found 3D Exploration. Using this I was able to convert the .3ds files into CPP code.

Having told 3D Exploration to covert as a Application, I then compiled the code. I got the following errors:

HopeOpenGL/grass.cpp:15256:63: warning: multi-character character constant
HopeOpenGL/grass.cpp: In function `BOOL ScaleImage(DIB2D&, GLTXTLOAD&)':
HopeOpenGL/grass.cpp:15322: error: `GL_BGR_EXT' undeclared (first use this function)
HopeOpenGL/grass.cpp:15322: error: (Each undeclared identifier is reported only once for each function it appears in.)

HopeOpenGL/grass.cpp:15328: error: `GL_BGRA_EXT' undeclared (first use this function)

HopeOpenGL/grass.cpp: In function `void SetDCPixelFormat(HWND__*, HDC__*)':
HopeOpenGL/grass.cpp:15635: error: non-lvalue in assignment

Any help at resolving these errors and explaining to me how I might prevent them with the future meshes would be appreciated
0
Comment
Question by:richardwhiuk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
8 Comments
 

Author Comment

by:richardwhiuk
ID: 13461719
I managed to fix some of the errors. It appears on a W32 environment I needed to add glext.h to be includes. The errors and warnings now are:

HopeOpenGL/grass.cpp:15257:63: warning: multi-character character constant
HopeOpenGL/grass.cpp: In function `void SetDCPixelFormat(HWND__*, HDC__*)':
HopeOpenGL/grass.cpp:15636: error: non-lvalue in assignment

15255 - 15257 code lines read:

       BITMAPFILEHEADER bmfh;
       ReadFile(hfile,&bmfh,sizeof(BITMAPFILEHEADER),&readed,0);
       if((readed==sizeof(BITMAPFILEHEADER)) && (bmfh.bfType=='BM'))

15635 - 15636 code lines read:

        (LPLOGPALETTE) lpPalette = (LPLOGPALETTE)HeapAlloc (hHeap, 0,
            sizeof (LOGPALETTE) + (nColors * sizeof (PALETTEENTRY)));

0
 
LVL 2

Expert Comment

by:shirsoft
ID: 13542220
a dumb guess but u may try removing the first LPLOGPALETTE type cast ... i haven't seen something like that

The warning as u might be knowing is coz of the bitmap header where it tries to compare it with 'B'<<8+'M', i think if use it in this fashion the warning will go
0
 

Expert Comment

by:sunilsi
ID: 13598346
i haven't try this but there are many tutorial and source code aviliable on net to open the 3ds file in openGL then y u r not trying that. that will be very useful.
0
 

Author Comment

by:richardwhiuk
ID: 13604375
Can you name any specific websites?
0
 

Accepted Solution

by:
sunilsi earned 1000 total points
ID: 13608702
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question