Page 1 of 1

a lil GE question

Posted: Tue Apr 12, 2005 1:19 pm
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

as to a windows grep...

Posted: Tue Apr 12, 2005 1:28 pm
by bthayward
check out
This free little program has served me quite well.

Posted: Wed Apr 13, 2005 12:03 am
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.

Posted: Mon Apr 25, 2005 6:24 am
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