Forum > OpenGL

is any library can load a 3d format file to opengl api?

<< < (3/3)

Dzandaa:
Hi,

Does the color of the faces match the orientation of the normal's?
If so, there are errors in the orientation of some faces.


B->

Dzandaa:
Hi,

Sorry for the previous question,
I looked at the code and found that the color of the faces is just an increment. Nothing to do with normals.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---  for i:=High(FData) downto 0 do    with FData[i] do begin         case gc and 3 of07:    glColor3f(Red(c)/255, Green(c)/255, Blue(c)/255);01:    glColor3f(Red(c)/255, 000000000000, 00000000000);02:    glColor3f(0000000000, Green(c)/255, 00000000000);03:    glColor3f(0000000000, Green(c)/255, Blue(c)/255);           End;      glBegin(trip[i and 1]);        glNormal3f(Normal[0], Normal[1], Normal[2]);        glVertex3f(Vertex1[0], Vertex1[1], Vertex1[2]);        glVertex3f(Vertex2[0], Vertex2[1], Vertex2[2]);        glVertex3f(Vertex3[0], Vertex3[1], Vertex3[2]);      glEnd;      inc(gc);  end;  

Navigation

[0] Message Index

[*] Previous page

Go to full version