Simple renderer in .net with SharpGL (openGL)

Re: Simple renderer in .net with direct3d
#9
I dug up some very old LD4DModeler code, which used DirectX

Code:
```//x y z   matrix.m[3, 0]:=getvalue(line);   matrix.m[3, 1]:=getvalue(line);   matrix.m[3, 2]:=getvalue(line);   matrix.m[3, 3]:=1;   //a b c   matrix.m[0, 0]:=getvalue(line);   matrix.m[1, 0]:=getvalue(line);   matrix.m[2, 0]:=getvalue(line);   //d e f   matrix.m[0, 1]:=getvalue(line);   matrix.m[1, 1]:=getvalue(line);   matrix.m[2, 1]:=getvalue(line);   //g h i   matrix.m[0, 2]:=getvalue(line);   matrix.m[1, 2]:=getvalue(line);   matrix.m[2, 2]:=getvalue(line);   matrix.m[0, 3]:=0;   matrix.m[1, 3]:=0;   matrix.m[2, 3]:=0;           //rechthandig matrix -> linkshandige matrix   //(T^-1)ST      waar s bron is en T rh2lhflip is   //mat:=rh2lhflip^-1   D3DXMatrixInverse(mat, @dummy, rh2lhflip);   //mat:=(rh2lhflip^-1)*s   D3DXMatrixMultiply(mat, mat, matrix);   //s:=(rh2lhflip^-1)*s*rh2lhflip   D3DXMatrixMultiply(matrix, mat, rh2lhflip);```

rh2lhflip is inited elsewhere as D3DXMatrixScaling(rh2lhflip, 1, -1, 1);

Do note this is very (11 years!) old code, and I wasn't exactly an expert myself at that time

edit: above code is less then correct and unnecessary overcomplicated. It's better to convert to lefthand/neg y axis at the model level.
« Next Oldest | Next Newest »

 Messages In This Thread Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-11-23, 12:48 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 17:47 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 18:16 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 18:36 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 18:39 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 18:48 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 19:15 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 19:19 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 19:22 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 19:32 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 19:40 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 19:54 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 19:59 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 20:27 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 20:16 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 20:25 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 20:30 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 20:50 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 20:58 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-23, 21:06 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-23, 21:13 Re: Simple renderer in .net with direct3d - by Travis Cobbs - 2013-11-26, 7:45 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-26, 17:36 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-29, 11:18 Re: Simple renderer in .net with direct3d - by Roland Melkert - 2013-11-29, 18:22 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-30, 10:55 Re: Simple renderer in .net with direct3d - by Michael Heidemann - 2013-11-30, 15:08 Re: Simple renderer in .net with openTK (openGL) - by Michael Heidemann - 2013-11-30, 15:48 Re: Simple renderer in .net with openTK (openGL) - by Roland Melkert - 2013-11-30, 18:40 Re: Simple renderer in .net with openTK (openGL) - by Michael Heidemann - 2013-11-30, 19:44 Re: Simple renderer in .net with openTK (openGL) - by Roland Melkert - 2013-11-30, 20:04 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-01, 12:33 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-01, 16:34 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-01, 16:58 Re: Simple renderer in .net with SharpGL (openGL) - by Roland Melkert - 2013-12-01, 17:51 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-01, 17:54 Re: Simple renderer in .net with SharpGL (openGL) - by Travis Cobbs - 2013-12-02, 5:08 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-02, 17:58 Re: Simple renderer in .net with SharpGL (openGL) - by Roland Melkert - 2013-12-02, 18:05 Re: Simple renderer in .net with SharpGL (openGL) - by Steffen - 2013-12-03, 7:58 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-03, 16:53 Re: Simple renderer in .net with SharpGL (openGL) - by Steffen - 2013-12-07, 9:57 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-07, 11:10 Re: Simple renderer in .net with SharpGL (openGL) - by Roland Melkert - 2013-12-02, 17:59 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-06, 17:30 Re: Simple renderer in .net with SharpGL (openGL) - by Roland Melkert - 2013-12-06, 18:20 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-06, 19:30 Re: Simple renderer in .net with SharpGL (openGL) - by Roland Melkert - 2013-12-06, 20:27 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-06, 21:22 Re: Simple renderer in .net with SharpGL (openGL) - by Travis Cobbs - 2013-12-06, 23:25 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-07, 7:06 Re: Simple renderer in .net with SharpGL (openGL) - by Roland Melkert - 2013-12-07, 18:11 Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-08, 10:46

Forum Jump:

Users browsing this thread: 1 Guest(s)