Show Posts

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.


Messages - EgonOlsen

Pages: [1] 2 3 ... 800
1
Projects / Re: my project - Vehicle Simulation
« on: March 15, 2019, 05:00:29 pm »
The adverts play just fine, but the actual video doesn't. After a lot of spinning an error message pops up that basically says "sorry...". I've tried it with Chrome and Firefox.

2
Projects / MOVED: Screenshots
« on: March 10, 2019, 03:48:06 pm »

3
There's no check, because an object without a texture shouldn't happen. If you create a new object, the dummy texture will be assigned. If you assign another one, then it will be that one. The only case in which this can happen is when you call flush() on the TextureManager but are still rendering the object that uses them. And in that case, a crash is just fine to me because you are not supposed to do that. Are you by any chance doing something like this?

4
Support / Re: Box sides action
« on: March 04, 2019, 12:44:40 pm »

5
Support / Re: Box sides action
« on: February 25, 2019, 11:16:51 am »
In which space? Object space or world space (i.e. before or after rotations have been applied)?

6
Support / Re: Box sides action
« on: February 22, 2019, 08:55:27 am »
Just create a dummy Object3D (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#createDummyObj()), place it in the center of your box and assign it as parent object to your planes. Then rotate that object instead of the other individual planes.

7
Support / Re: Box sides action
« on: February 18, 2019, 08:29:38 am »
I'm not sure what you expect as a result? You'll get a polygon ID, a number. There's no general rule which number represents which polygon. It depends on the object and it might require a little bit or trial and error to find out.

8
Support / Re: about the strength of specular light
« on: February 15, 2019, 04:08:30 pm »
It's a bit hacky, but you could try to add an http://www.jpct.net/jpct-ae/doc/com/threed/jpct/IRenderHook.html implementation to your objects and set the Config values in the beforeRendering implementation. That should actually work...I guess...

9
Support / Re: about the strength of specular light
« on: February 14, 2019, 03:39:06 pm »
I don't remember that exactly. I guess, because I actually didn't consider this to be important at all. IIRC, it wasn't supported properly on a lot of older devices anyway, so I'm not even sure how well jPCT-AE handles this setting. Maybe we should take a step back: What exactly are you trying to achieve?

10
Support / Re: Relationship TextureManager with multiple objects
« on: February 13, 2019, 03:20:46 pm »
There are several ways to do this. Your way, a custom shader or, which is what I would try first, changing the texture on the object and not in the manager. That's a cheap operation for single textured objects.

11
Support / Re: about the strength of specular light
« on: February 13, 2019, 03:16:34 pm »
Yes, it can.

12
Support / Re: about maxLights in Config
« on: February 13, 2019, 03:14:59 pm »
Just set it to a large number. It doesn't really use much memory.

13
Support / Re: Box sides action
« 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).

14
Support / Re: NPOTexture from bitmap
« 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.

15
Support / Re: Box sides action
« 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?

Pages: [1] 2 3 ... 800