Thanks for your responce. perspec -1 640 -1 480 1 1001 did the trick. What I dont get is why I cant do perspec -1 640 -1 480 999 1001 and view 0 0 1000. The image disapears I have to have perspec at 1 1001 to see an image. Even if I do 2 1001 I get nothing. With other geos it works but not with this one I am writing. Could it be that my z depth is set at -1. I dont think that is it but maybe some one can explain that to me. Thanks, Alain
> > From: marius schebella <[EMAIL PROTECTED]> > Date: 2007/08/04 Sat PM 04:16:20 EDT > To: [EMAIL PROTECTED] > CC: pd-dev@iem.at > Subject: Re: [PD-dev] smoke object help > > hi, > I did not follow the whole thread of this discussion, so maybe you are > talking about something different, but to change the cameraposition and > viewing point of the gem window send the message view (and maybe also > perspec) to the gemwin object (see help patch of gemwin 'pd viewing') > marius. > > [EMAIL PROTECTED] wrote: > > The reason I was not seeing anything was that the code was using glVertex2f > > and it seems that > > anything above -1 z depth desapears in gem. So I ended up using > > glVertex3f( number,number, -1.1) > > and now I can see stuff happening. Now my problem is that the action is all > > limited to the positive side > > of the grid. Also coordinate 500,500 is 0,0 in the gem grid and 0,0 is > > 2.5,2.5 on the gem grid. If > > anyone knows a simple way to fix this let me know. > > Thanks, > > Alain > > > >> From: <[EMAIL PROTECTED]> > >> Date: 2007/08/03 Fri AM 08:47:08 EDT > >> To: <pd-dev@iem.at> > >> CC: [EMAIL PROTECTED] > >> Subject: [PD-dev] smoke object help > >> > >> Hi all, > >> > >> I posted this in the gem-dev list but maybe someone here can give a some > >> advise or a different > >> solution for my problem. The reason I am trying to use gem is because they > >> have already figured > > out > >> the glLoop problem between openGL and Pd. Also because I then would have > >> access to the other > >> gem objects. > >> > >> I am trying to transcribe this glut application here: > >> > >> http://www.nada.kth.se/~gustavt/fluids/ > >> > >> into a gem object. At first at thought it would be easy seeing as the code > >> was > >> pretty much working but > >> I am having a tough time of it. I compiled the original application and it > >> works perfect but it seems like > >> when I convert it to a gem object I get nothing. > >> > >> Here are some things I am assuming, please correct me... > >> 1. glut and openGL/Gem use the same measurements like when I use > >> glVertex2f(px, > >> py); it is the > >> same in both. > >> 2. Instead of using the glut mouse controls I can use a list inlet to get > >> x and > >> y coordinates. > >> > >> Other than that I pretty much copied the app and used render(GemState > >> *state) > >> to put all of the > >> rendering stuff into. But I still cant get it to work. I get a black > >> screen. > >> I think it is probably drawing > >> somewhere of screen but I really cant seem to figure out how to fix the > >> problem. If anyone can give > >> me a clue I would appreciate it. > >> Thanks, > >> Alain > >> > >> > >> _______________________________________________ > >> PD-dev mailing list > >> PD-dev@iem.at > >> http://lists.puredata.info/listinfo/pd-dev > >> > > > > > > _______________________________________________ > > PD-dev mailing list > > PD-dev@iem.at > > http://lists.puredata.info/listinfo/pd-dev > > > _______________________________________________ PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev