Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  'unable to transform src image' creating texture  (Read 2748 times)
0 Members and 1 Guest are viewing this topic.
Offline schizohfer

Senior Newbie

« Posted 2007-04-06 09:32:52 »

   i am facing problem creating a texture from an image size 5400 X 5400.
   It gives  ImagingOpException: Unable to transform image . This image is being read from a spatial database.  i tried saving the image as  a jpeg and creating  texture as
          TextureIO.newTexture(new File("img.jpg"));
this work perfectly allright.. i get the problem only when creating the texture from the same image fetched from database. i guess it may be due to the image size , it is not a power of two , but then it works for the same image size read from  a file instead.

any help is appreciated

Offline broumbroum

Junior Devvie

« Reply #1 - Posted 2007-04-06 19:02:04 »

you better read the picture from a File thus it will be easier to cache data. I mean there are many ways to load pics in Java, but the File mode still acquires less memory.
You got ImageIO.setUseCache to get File caching while using image streams. Plus you can use the new JAI imageio Streams Channels to buffer data etc.

Hence you should check your code for different ways of loading pictures for your textures BEFORE you can transform them. And it is a good idea to check for a data buffer Manager like the MediaTracker for your renderings in Jogl.


::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @
on /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Pages: [1]
  ignore  |  Print  

EgonOlsen (59 views)
2018-06-10 19:43:48

EgonOlsen (42 views)
2018-06-10 19:43:44

EgonOlsen (61 views)
2018-06-10 19:43:20

DesertCoockie (240 views)
2018-05-13 18:23:11

nelsongames (142 views)
2018-04-24 18:15:36

nelsongames (141 views)
2018-04-24 18:14:32

ivj94 (883 views)
2018-03-24 14:47:39

ivj94 (144 views)
2018-03-24 14:46:31

ivj94 (795 views)
2018-03-24 14:43:53

Solater (159 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!