Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 10 matches
DeleD Community Edition Forum Index
Author Message
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Mon Nov 14, 2005 1:25 pm   Subject: How to render DMF maps in OpenGL
Forgot to mention that the DMF drawing code itself is located @ DMFRender.h in the Tester folder.
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 13, 2005 8:58 pm   Subject: How to render DMF maps in OpenGL
the source + bin-> http://www.ghostdev.gamedev-pt.net/Downloads/GhostEngineDMFLoaderTest.zip
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 13, 2005 4:36 pm   Subject: How to render DMF maps in OpenGL
I finally was able to draw a DeleD map's geometry well! Thanks to the creator of the delphi loader & renderer example! (i heard it was Mr. Fetcher, so i thank you, Mr. Fetcher!)
Note: i still was ...
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Tue Nov 08, 2005 10:50 am   Subject: How to render DMF maps in OpenGL
Yes, i am trying to make a real-time app, it will be my 1st attempt at making a 3D world, since DeleD seems to be very good at it. After this, i'll try to do some collision detection, and later, a gam ...
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 06, 2005 7:44 pm   Subject: How to render DMF maps in OpenGL
Also, how should i get the texture coords?
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 06, 2005 6:27 pm   Subject: How to render DMF maps in OpenGL
Tryed the last advice, using this loop:
for(i = 0; i < dmf.numObjects; ++i)
{
glBegin(GL_POLYGONS);
for(j=0; j < dmf.objectList[i].numPolygons; j++)
{
for(k = 0; k < d ...
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 06, 2005 2:42 pm   Subject: How to render DMF maps in OpenGL
The loader thinks that polygons are texcoords (?)
like:
typedef struct
{
unsigned int numVertices;
unsigned int materialIndex;
unsigned int *indices;
...
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 06, 2005 11:21 am   Subject: How to render DMF maps in OpenGL
Forgot to tell you how i do the loading and rendering of the whole level:
cout << "Loading DMF File...";
dmf_file_t dmf;
dmf_object_t *objPtr;
dmf_polygon_t *polyPtr;
unsigned int result;
...
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 06, 2005 11:17 am   Subject: How to render DMF maps in OpenGL
Well, i still have a problem with the rendering, i tryed polygon rendering, Line Loop rendering and Triangle Strip rendering, and none of them work well.
For you to see how it is showing up:

www.g ...
  Topic: How to render DMF maps in OpenGL
GhostManZero

Replies: 26
Views: 11500

PostForum: DeleD Community Edition   Posted: Sun Nov 06, 2005 12:43 am   Subject: How to render DMF maps in OpenGL
Hello, i'm trying to render a DMF map using OpenGL, i loaded a file named "map.dmf" using the CDMFParser code from the Various Products section at delgine.com, and i'd like to know how should i do to ...
 
Page 1 of 1
All times are GMT
Jump to: