Click here to Skip to main content
15,912,756 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Drawing a Sphere in 3D Pin
Avion855-Jun-09 2:52
Avion855-Jun-09 2:52 
Questionhelp in building a color lookup table Pin
mesho17-May-09 23:41
mesho17-May-09 23:41 
AnswerRe: help in building a color lookup table Pin
Tim Craig18-May-09 18:27
Tim Craig18-May-09 18:27 
GeneralRe: help in building a color lookup table Pin
mesho19-May-09 12:23
mesho19-May-09 12:23 
GeneralRe: help in building a color lookup table Pin
Tim Craig19-May-09 12:51
Tim Craig19-May-09 12:51 
GeneralRe: help in building a color lookup table Pin
mesho20-May-09 14:00
mesho20-May-09 14:00 
GeneralRe: help in building a color lookup table Pin
Tim Craig20-May-09 14:44
Tim Craig20-May-09 14:44 
GeneralRe: help in building a color lookup table Pin
mesho21-May-09 2:12
mesho21-May-09 2:12 
No i'm sure there is no syntax errors, the error in the loop header only appear when i copy
from my program

anyone have solutions for my problem????


inline  void CMesh::RenderFaceNormals()<br />
{<br />
	float t=0.5;<br />
	CVector v0,v1;<br />
	<br />
	for(int i=0 ; i< get_numOfFaces() ;i++)<br />
	{<br />
		v0 = (verts[faces[i]->get_v0()]->get_gp()+ verts[faces[i]->get_v1()]->get_gp()+ verts[faces[i]->get_v2()]->get_gp() )/3;<br />
		v1 = t * faces[i]->get_normal();<br />
<br />
		glBegin(GL_LINES);<br />
        glVertex3f(v0.X(), v0.Y(), v0.Z()); // origin of the line<br />
        glVertex3f(v1.X(), v1.Y(), v1.Z()); // ending point of the line<br />
        glEnd();<br />
	}<br />
}

GeneralRe: help in building a color lookup table Pin
Tim Craig21-May-09 7:45
Tim Craig21-May-09 7:45 
GeneralRe: help in building a color lookup table Pin
mesho21-May-09 22:48
mesho21-May-09 22:48 
GeneralRe: help in building a color lookup table Pin
Tim Craig22-May-09 13:31
Tim Craig22-May-09 13:31 
GeneralRe: help in building a color lookup table Pin
mesho28-May-09 2:51
mesho28-May-09 2:51 
GeneralRe: help in building a color lookup table Pin
Tim Craig29-May-09 9:00
Tim Craig29-May-09 9:00 
GeneralRe: help in building a color lookup table Pin
Luc Pattyn29-May-09 9:21
sitebuilderLuc Pattyn29-May-09 9:21 
Questionviewport to window mapping Pin
suvigna13-May-09 17:54
suvigna13-May-09 17:54 
QuestionLibrary or Tools for GUI development on Linux Pin
sheeri manik10-May-09 18:33
sheeri manik10-May-09 18:33 
JokeRe: Library or Tools for GUI development on Linux Pin
Soundman32.213-May-09 3:52
Soundman32.213-May-09 3:52 
GeneralRe: Library or Tools for GUI development on Linux Pin
sheeri manik13-May-09 12:52
sheeri manik13-May-09 12:52 
GeneralRe: Library or Tools for GUI development on Linux Pin
Soundman32.213-May-09 21:37
Soundman32.213-May-09 21:37 
QuestionEnable / Disable ClearType font rendering via system call? Pin
Tony Teveris6-May-09 1:56
Tony Teveris6-May-09 1:56 
AnswerRe: Enable / Disable ClearType font rendering via system call? Pin
Henry Minute6-May-09 2:43
Henry Minute6-May-09 2:43 
QuestionDifference in rendering in OpegGL Pin
Gastello5-May-09 3:23
Gastello5-May-09 3:23 
QuestionCreating GUI Pin
Xeqtr3-May-09 6:52
Xeqtr3-May-09 6:52 
AnswerRe: Creating GUI Pin
Fatbuddha 112-May-09 2:47
Fatbuddha 112-May-09 2:47 
GeneralRe: Creating GUI Pin
Xeqtr13-May-09 7:34
Xeqtr13-May-09 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.