so doing the opengl calls your self is what you probably want to do.

if you want to use pure python extend soya.PythonCoordSyst and either
use opengl calls from soya.opengl or use pyopengl. if you look at the
soya cvs module soya-contrib in modelling/SoyaModelling/axis.py there is
an example of this. 

its also possible to write a c/pyrex extension. there is a directory in
the soya cvs module soya-contrib called pyrex-example that contains more
or less what i use for a template. 

i dont know how much opengl you know but you probably want to use
display lists or vertex arrays with such an amount of data. also if you
can use triangle strips this greatly reduces the amount of data that
needs to be sent to the card. all those terms should be google'able ;)

i would give you links to the web cvs but i cant get to gna.org atm
=| 

this page however does tell you how to check the stuff out:
http://soya.literati.org/SoyaContrib

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
> 
> 

Reply via email to