TextureLoader is capable of loading "textures" / "images" of sizes other than powers of two. It will automatically adjust the image for you. So it can be flexible if you let it. (I try to make all my textures powers of two so such adjustments aren't necessary)
- John Wright Starfire Research GB Liu wrote: > > Hi Artur: > > Thank you for your help. Texture needs to load the figures in a restricted > size: should be the power of 2. That is why I am trying to use raster, to > get a more flexibility of loading images of any size. If there is another > way of rendering images (rather than texture and raster) in J3D, could you > please tell me? > > G.B. > > ----- Original Message ----- > From: "Artur Biesiadowski" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, January 15, 2003 11:22 AM > Subject: Re: [JAVA3D] Something wrong about Raster? > > > GB Liu wrote: > > > However, this is true only for the ColorCube. The raster > > > image moves in a funny way. Could you please let me know what I should > > > do to get the rastered image working exactly as the ColorCube? Thank > you! > > > > Raster is screen-dimension image placed at pixel which is a projection > > of raster 'point' onto screen. It is not a 3d flat panel with image on > > it - for this, use Shape3D with quad with texture. Raster is always > > aligned to screen and does not change size with distance - it is better > > to think about it as about 2d image which by accident is visible near to > > projection of 3d point, then to think about real 3d object. > > > > Artur > > > > > =========================================================================== > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff JAVA3D-INTEREST". For general help, send email to > > [EMAIL PROTECTED] and include in the body of the message "help". > > > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".