31
News / Re: New development machine for jPCT...
« on: July 13, 2011, 08:35:17 am »
Oh server fans, jet sounds, nice...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
box.setTexture("transp");
box.setTransparency(500);
box.setShadingMode(Object3D.SHADING_FAKED_FLAT);
box.align(cam);
box.strip();
box.build();
Where texture is a transparency texture only with a border.Too slow for what?I mean what getPixels(); method to slow, for example, for a taking snapshot in real game process, or smth like that.
Have a look here: http://www.jpct.net/forum2/index.php/topic,2088.0.htmlGood, but it's to slow method, as i saw it in API description of this method.
If you want different textures, use a method that supports this...like: http://www.jpct.net/doc/com/threed/jpct/Object3D.html#addTriangle(com.threed.jpct.SimpleVector, float, float, com.threed.jpct.SimpleVector, float, float, com.threed.jpct.SimpleVector, float, float, int)Thank you!
If the texture isn't placed correctly, switch the texture coordinates for these faces. As said, i advise you to learn something about uv-mapping to understand what these 0s and 1s actually mean.