damn i wrote an email in response but it doesnt appear to be anywhere so ill try to remember what i said...
so you probably want to just make the gl calls yourself. For a pure python version you probably want to extend soya.PythonCoordSyst, an example is here: http://cvs.gna.org/viewcvs/soya/soya-contrib/modelling/SoyaModelling/axis.py?rev=1.1&content-type=text/vnd.viewcvs-markup Its also possible to make a pyrex/c extension. Here: http://cvs.gna.org/viewcvs/soya/soya-contrib/pyrex-example/ is what i use as a template for that. as for the opengl calls, i dont know how much you know, but youll probably want to look up vertex arrays and display lists. also if your data is suitable using triangle strips and triangle fans is better than just sending individual triangles to the card. all those terms should be google'able. dunk On Sun, May 01, 2005 at 11:39:09AM -0400, Luis Alberto Zarrabeitia wrote: > Well, I don't think TreeShapify will help me much: I need to view the > whole model (unless I'm zooming in), I don't need raypicking, and the > very slow part is the Shapifing process. > > I'm reading the data from a file (the output of another process, the > one that does the computations I want to display), and it consists on > a list of triangles. The idea of calling OpenGL directly seems > allright, but ... how do I do that? (call OpenGL from Soya) > > Thanks, > Luis. > > On 5/1/05, dunk <[EMAIL PROTECTED]> wrote: > > Hi, > > > > you can use the soya.TreeShapify which uses some sort of space division > > to speed up rendering and raypicking. although i think this will only > > work if you are viewing small sections of the model. > > > > how are you generating this data? you maybe just be able to create the > > opengl calls yourself instead of building a whole soya shape. > > > > dunk > > > > On Sat, Apr 30, 2005 at 08:17:40PM -0400, Luis Alberto Zarrabeitia wrote: > > > Hi. I'm doing some research, and I chose Soya to draw the results of > > > the experiments mainly because of its friendliness... but now I'm > > > having a problem. > > > > > > I need to load very big objects (about 80,000 triangles or more). > > > Though I can read the file and build a world containing the triangles > > > quite quickly, it takes almost forever to shapify it. As far as I can > > > tell, I cannot move (zoom, pan, rotate) without shapifying first, wich > > > is stopping me from testing more serious examples (objects with 2,000 > > > are shapified quickly). Is there anything I can do about it? > > > (esentially, I need to draw very large triangulations, with texture, > > > and be able to see them from different angles). > > > > > > Thanks in advance, > > > Luis. > > > > > > _______________________________________________ > > > Soya-user mailing list > > > [email protected] > > > https://mail.gna.org/listinfo/soya-user > > > > > > > > > > _______________________________________________ > > Soya-user mailing list > > [email protected] > > https://mail.gna.org/listinfo/soya-user > > > > _______________________________________________ > Soya-user mailing list > [email protected] > https://mail.gna.org/listinfo/soya-user > >
