www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Pelle on May 13, 2005, 11:45:22 pm

Title: Texture
Post by: Pelle on May 13, 2005, 11:45:22 pm
Hello Helge

If I want to use the same texture image on several objects,and I want to manipulate the texture with, let's say
a different text on the top, using the ITextureEffect.
This will not be possible without making a copy of that image and load it again with a different name, am I right?
Is there a way where I can create a new instance of a texture without loading a new image.
Would it be possible to clone the dummy texture into a new instance?

Regards
Pelle
Title: Re: Texture
Post by: EgonOlsen on May 15, 2005, 06:23:42 pm
Quote from: "Pelle"

Is there a way where I can create a new instance of a texture without loading a new image.
Currently not. You may load an Image into a byte array and access that as a "blue print" for loading the texture via an ByteArrayInputstream multiple times. There is a post somewhere here about loading a texture from an byte array.