> > =20 > > Here's a snazzed up version of Ian's rework of my old example: > >=20 > > Screenshot: > > http://seriss.com/people/erco/fltk/image-texturemapped-cube.png > > Cool - but the picture is different! ;-) > > > > Code: > > http://seriss.com/people/erco/fltk/image-texturemapped-cube.cxx > >=20 > > I added a lighting model and materials so that the texture > > reacts to lighting. > > Yes, that is much nicer. > > > I also simplified Ian's texture loading code a bit; > > as it happens, Fl_Shared_Image's internal rgb format is=20 > > compatible > > with opengl's glTexImage2D() call, so the x/y loop and=20 > > extra image > > buffer could be removed. > > Yup, I had thought about that, but decided to write it out "long hand" > to make it more like the existing code, and to make it more obvious how > the pixel data from the image was being passed to the GL texture. > > Cheers, > --=20 > Ian > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex= > SS14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** >
Thanks to everyone who helped me out with this. If anyone is interested here's a screenshot of my application: http://www.sarc.qub.ac.uk/~emullan/Screenshot-2.png If anyone is still interested, the idea is that any of the objects on screen can be selected, modified, then sounded in a variety of ways. There are no recorded sounds as all sounds are synthesized from physical information on the object and how it was excited. My research is on sound but hopefully the OpenGL stuff enhances my application, so thanks for the help. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

