Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
I haven't made too much with clipping planes, but I'm quite sure that you can translate and even rotate them how you want (I think it's mentioned somewhere in the redbook).
Registriert: Di Jul 01, 2003 18:59 Beiträge: 887 Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
I know i already have the result. But i always like to how things actualy work, not the trick. Using the 0,-1,0,0 for me feels like using a trick.
What i always thought wrong was that filling in a,b,c,d had to do something with placing the clipping plane. But as sos said you can use gltranslatef and glrotatef for that.
I assume that the direction made with x,y,z can be represented by drawing a line from 0,0,0 to x,y,z
I i want to create a clipping plane using my camera point i should give that into a*x+b*y+c*z+d=0 so if the camera point is 1,6,1 that would make:
a*1+b*6+c*1+d=0
What steps to i take to get the unknown a,b,c, and d. Of Course i could fill them all with zero's but that would be dumb
Registriert: Do Dez 11, 2003 13:23 Beiträge: 25 Wohnort: South Africa
Hi Noeska
It looks like what you are trying to do is scale your clipping plane.
As far as I remember a plane is infinite ( In 2 of 3 dimensions), e.g.: it has no borders and thus it has no height/width depending on its orientation.
It does have a direction though.
It should be possible (Haven’t tested it yet ) to scale the clipping plane, but all you are going to do is move it to a different position.
Does this make sense, or am I speaking complete BS?
_________________ Im out of my mind but please leave a message...
www.sulaco.co.za
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.