a lil GE question

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Posts: 53
Joined: Fri Oct 18, 2002 1:35 am
Location: Oceanside, California

a lil GE question

Post by Sutabi »

Wish windows had grep...grrr stupid search, um...

The opengl render falls into 3 renders
Primative_Ex -Armature
Primative_3d_text - Face with [text] flag

If you can get flags its own render, then I was thinking of just tracing where it defines the flags and where the [text] flag is thrown before its sorted. Doing so is driving me nuts. SO I went ahead and print out the Flags of a mesh @ runtime, and I cannot find where the numbers are coming from!

@ runtime if a mesh has the flag [text] it prints out:
Drawing Mode: 16901

To print that I did:
cout <<"Drawing Mode: " << m_material->GetDrawingMode();

@ file RAS_MaterialBucket.cpp

so I searched for that number and I got nothing. In fact none of the drawing mode yeild anything. The whole reason I am searching is to maybe impliment ways for silhouette/shadow/cel-shade (geometry not rendered from g-card) though face modes

Posts: 0
Joined: Sat Mar 26, 2005 5:12 am

as to a windows grep...

Post by bthayward »

check out www.wingrep.com
This free little program has served me quite well.

Posts: 0
Joined: Mon Apr 19, 2004 6:03 pm

Post by Brandano »

Wish windows had grep...grrr stupid search, um...
Cygwin, my man, is what you are looking for. Why should you need something that behaves like grep when you can have grep? Or alternatively there's also MinGW, which also comes handy if you want to compile Blender from source.

Posts: 0
Joined: Sun Apr 06, 2003 2:22 pm
Location: Wellington, New Zealand

Post by alien-xmp »

The drawing mode is a bitfield. The values come from DNA_mesh_types.h:

Code: Select all

#define TF_DYNAMIC		1
/* #define TF_INVISIBLE	2 */
#define TF_TEX			4
#define TF_LIGHT		16

#define TF_SHAREDCOL	64
#define TF_TILES		128
#define TF_BILLBOARD	256
#define TF_TWOSIDE		512
#define TF_INVISIBLE	1024

#define TF_OBCOL		2048
#define TF_BILLBOARD2		4096	/* with Z axis constraint */
#define TF_SHADOW		8192
#define TF_BMFONT		16384

Post Reply