Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Support / Re: about maxLights in Config
« Last post by EgonOlsen on February 13, 2019, 03:14:59 pm »
Just set it to a large number. It doesn't really use much memory.
12
Support / about maxLights in Config
« Last post by MichaelJPCT on February 13, 2019, 02:28:30 pm »
i wonder , can maxLights be non power of two, like 33 ?
and can maxLights be different for different Worlds ? some Worlds don't need many lights but some other do.
does it affect performance or memory usage much ? if it doesn't affect much , i would just set it to a large number.
13
Support / Re: about the strength of specular light
« Last post by MichaelJPCT on February 13, 2019, 02:21:02 pm »
i think of Config.specPow , can specPow be variable at runtime ?
14
Support / Relationship TextureManager with multiple objects
« Last post by rbj on February 13, 2019, 01:47:46 pm »
Hi,

I am showing several 3d objects at the same time, this works fine.
Next, some objects need to be grayed out, some should have color/texture, depending on being selected or not.
I do this by replacing the textures in the TextureManager with a Texture from gray.png file.

However, how do I find out which Textures in TextureManager belong to which Object3D?

Or is there a simpler method of not using the color and textures of a 3D object?
(All objects are read from *.3DS exports from Blender)

Hope someone can point me in the right direction...

Robert
15
Support / Re: Box sides action
« Last post by EgonOlsen on February 12, 2019, 08:54:28 am »
That actually doesn't matter. The picking works in exactly the same way (see private void relocate() in the example).
16
Support / Re: NPOTexture from bitmap
« Last post by EgonOlsen on February 12, 2019, 08:52:42 am »
NPOTTexture was added to render videos into them stuff like that. They weren't meant to be used for general purpose applications, because they have quite a few drawbacks. Whenever possible, use square textures instead. That said, there are two ways to feed pixels into them. One is by using http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Texture.html#overrideTexelData(java.nio.ByteBuffer), but that will leave dealing with context changes all by yourself. The other way is to implement an ITextureEffect (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/ITextureEffect.html) and let it set the new pixels. Just make sure that you give your NPOTTexture a color and not null or otherwise, it won't create any pixel data buffer at all.
17
Support / NPOTexture from bitmap
« Last post by lawless_c on February 11, 2019, 11:23:03 pm »
is it possible to create a non power of two texture from a bitmap?

I have been trying for a few days now, but NPOTexture only has one constructor, which only allows for the creation of colour textures.

And the Texture object itself replaces my NPO Bitmaps with a square black bitmap to use as a texture instead.
18
Support / Re: Box sides action
« Last post by itsmeveno on February 09, 2019, 08:59:11 am »
The codes is for desktop application my project is an android app.
19
Support / Re: Box sides action
« Last post by EgonOlsen on February 07, 2019, 06:04:21 pm »
Yes, I got that. And picking is the way to do just that. Actually, the wiki page contains everything that you have to know to get at least the picking itself working. What exactly does "it doesn't pick" mean in this context? Have you checked that your picking coordinates correct?
20
Support / Re: Box sides action
« Last post by itsmeveno on February 06, 2019, 11:56:24 am »
Thank you for that but when i try the codes it doesn't pick the faces/sides of a box.
What i want to do if to make every action of the sides of my box.
Pages: 1 [2] 3 4 ... 10