www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: nlotz on October 07, 2010, 09:38:56 pm

Title: Two questions regarding TextureInfo
Post by: nlotz on October 07, 2010, 09:38:56 pm
Is there a way to set the glBlendFunc (http://pyopengl.sourceforge.net/documentation/manual/glBlendFunc.3G.html) when using blending with TextureInfo? Something like:

texInfo.addWithBlendFunc(texId, GL11.GL_SRC_ALPHA, GL11.GL_ONE);

Also I'd like to know if there is a way to modify the texture coordinates of a mesh for each stage of multi texture rendering.

Thanks in advance and a huge thanks for jPCT!
Title: Re: Two questions regarding TextureInfo
Post by: EgonOlsen on October 07, 2010, 09:57:47 pm
No, there's no way to set it directly and yes, you can modify it. Have a look at the PolygonManager.
Title: Re: Two questions regarding TextureInfo
Post by: nlotz on October 07, 2010, 10:04:47 pm
That was fast, thanks. I really need to look at how transparency and blending work in jPCT...