On Mon, 9 Dec 2002 08:41:36 +0000, Jeremy Booth <[EMAIL PROTECTED]> wrote:
>L�van Sardjev�ladz� wrote: > >>> I'm trying to load a .3DS file with textures (1.7 Mb). There's no problem >> when loading it, but when it's time to render I get this exception : >> >> java.lang.RuntimeException: DirectDraw does not have enough memory to >> perform the operation. >> at javax.media.j3d.Canvas3D.updateTexture(Native Method) >> at javax.media.j3d.RenderQueue.updateState(RenderQueue.java:1264) >> at javax.media.j3d.RenderQueue.nextOpaque(RenderQueue.java:1471) >> at javax.media.j3d.Renderer.run(Renderer.java:447) >> There's no problem when using less textures with the same object. >> I'm running Java3D with Direct3D, and I've used the -Xmx64m option to >> increase the memory used by the virtual machine. (java -Xmx64m ). >> Any ideas? >> >> Thanks in advance >> >> L�van Sardjev�ladz� >> >Hi > It *looks* as though DirectDraw is running out of memory for textures, if you >say that the model is fine with less textures then this pretty much confirms it. >Increasing the amount of memory for the VM won't effect the amount of memory >direct draw has, as this is completely outside of the VM. > How much memory does your graphics card have on it? > >have you tried the OpenGL java3d yet? Thank you for your advise, but the texture is not so big (less than 1,7 Mb), so there must be a simple way to make DirectDraw not run out of memory... :-/ It works correctly with OpenGL, but OpenGl Java3d is much to slow on my computer... Anyway, it's not a problem with my videocard (otherwise OpenGl shouldn't work either). Any idea ? L�van Sardjev�ladz� ==========================================================================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".
