Search found 7 matches

by chacham15
Tue May 20, 2008 6:56 pm
Forum: Intelligence Room
Topic: dshader_t
Replies: 3
Views: 1657

I was just letting you know since its marked in the file as 'dummy' (and also as ints)

700 typedef struct {
701 char shader[MAX_QPATH];
702 int surfaceFlags;
703 int contentFlags;
704
705 int dummy[17];
706 } dshader_t;

-chacham15
by chacham15
Mon May 19, 2008 11:38 pm
Forum: Intelligence Room
Topic: dshader_t
Replies: 3
Views: 1657

dshader_t

Based on looking at hexdumps dsurface_t should be of the following form:

typedef struct dshader_s {
char resourcename[64];
int surfaceflags;
int contentflags;
int dummy; // I still dont know what this is
char filename[64];
} dshader_t;

Just thought I'd share.

-chacham15
by chacham15
Sun May 18, 2008 7:26 am
Forum: Intelligence Room
Topic: Lightmap Questions
Replies: 2
Views: 1427

Lightmap Questions

Hi, thanks in advance for helping me with this. I am writing my own Mohaa map renderer. All the polygons/patches load fine and I can see them in wireframe mode. The problem is that when I turn off wireframe everything turns grey. This, I've discovered, is because the lightmaps arent giving any real ...
by chacham15
Tue May 13, 2008 8:55 pm
Forum: Mapping
Topic: Entities Lump: Lights
Replies: 4
Views: 871

Ah, that actually helps a lot! Thanks!
by chacham15
Tue May 13, 2008 6:45 pm
Forum: Mapping
Topic: Entities Lump: Lights
Replies: 4
Views: 871

So, I realize that you dont know much about OpenGL, but maybe someone who does can help here. I wanted to write some code like the following to draw patches:

glVertexPointer(3, GL_FLOAT,sizeof(BSPVertex), &vertex[0].position);

glClientActiveTextureARB(GL_TEXTURE0_ARB);
glTexCoordPointer(2, GL ...
by chacham15
Tue May 13, 2008 5:35 am
Forum: Mapping
Topic: Entities Lump: Lights
Replies: 4
Views: 871

Entities Lump: Lights

Hey you guys, Im writing my own Mohaa Map rendering program. In the BSP file, the entities lump contains information about the lights. I was wondering, is the light entity which contains an angle a spot light and the one that doesnt is a point light? And if so, can I render these with a call to ...
by chacham15
Mon Apr 21, 2008 12:12 am
Forum: Intelligence Room
Topic: The SKD and SKC format specification
Replies: 7
Views: 4903

If you look at the code that you have in qfiles.h, Thilo Schulz added some code to allow models from Ravensoft to be added. But if you look through the currently commented out code, it contains the following definitions:

typedef struct {
int ident;
int version;

int type;

int ofsEnd;

float ...