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 ... 798
1
Support / Re: Cardboard ,CardboardView support
« on: December 06, 2018, 08:59:07 am »
Yes. That's caused by the way in which these objects are build. I think ExtendedPrimitives does it differently.

2
Support / Re: Cardboard ,CardboardView support
« on: December 06, 2018, 08:15:38 am »
Might be because the matrix from the cardboard API is a view matrix while jPCT's camera matrix is a rotation matrix. Have you looked at this example: http://www.jpct.net/wiki/index.php?title=Example_for_Google_Cardboard?

3
IIRC, you have to create a GL context with an alpha channel and clear the framebuffer with the RGBColor variant of the clear method to set an alpha while clearing. There should be a simple example of how to combine the camera view with a rendering on top, which is a similar task, somewhere here in the projects section. Though it's hard to find for me ATM too, because I'm on mobile right now...

Edit: There's a sticky topic here in the support section about that camera overlay thing...maybe that helps.

4
Support / Re: JPCT Lessons
« on: December 04, 2018, 07:15:58 pm »
Have you had a look at the wiki?

5
Projects / Re: Naroth - 3D open world RPG
« on: November 26, 2018, 11:05:46 pm »
If it's a problem to run it from Google Play, I can always upload a side loadable version to my website if that helps. The game continues to grow on a slow but steady pace. Next year, it should surpass 500000 installs. Sadly, Google Play doesn't show the number of total install anymore to the creator for...reasons, I guess...

6
Support / Re: about the strength of specular light
« on: November 12, 2018, 11:08:38 am »
jPCT support OpenGL ES 1.x and 2/3.x. The 2.x support mimics the 1.x pipeline by providing default shader implementations which behave just like 1.x would. And because 1.x doesn't support any advanced lighting techniques, the 2.x pipeline doesn't support them either. If one wants some other kind of lighting, one has to write a custom shader for it. I had to limit the options here somewhere, because we already have 19 different shaders plus parts that will be injected when using shadows.

7
Support / Re: about Light Discard Distance
« on: November 06, 2018, 08:44:14 am »
For compiled object (which are all objects in jPCT-AE), discarding lights is based on the center of an object and it's distance to the light source. That's why there's no half-lit object in your case. If it would have been better to base it on the bounds of an object depends on the case, I guess. There might be situations where one is better than the other or where even someting else would be good. So I went with the computational least expensive way of doing it, which is just checking the center.

8
Support / Re: Rendered in black with multiple texture files (jpg + png)
« on: November 05, 2018, 05:47:06 pm »
...and the floor is a seperate file or is it part of the complete model? Do you have a screenshot of the red rendering?

9
Support / Re: to delete an Object3D
« on: November 05, 2018, 08:25:56 am »
Yes, it should be save to do that, but you have to make sure that each and every reference is gone, of course. It should then queue the GL buffers and dispose them eventually. Or you could disable vbo support in Config at all. In that case, there's nothing that has to be disposed GL wise in the first place. Performance might suffer a little though.

10
Support / Re: Rendered in black with multiple texture files (jpg + png)
« on: November 03, 2018, 12:53:27 pm »
Not sure if that's your issue here, but you can't have transparent parts in objects that are actually opaque. What you are seeing there might be the actual color of the png texture without the alpha channel. Can you split your model into two, where one contains the opaque parts and one the transparent one?

11
Support / Re: Rendered in black with multiple texture files (jpg + png)
« on: November 02, 2018, 12:22:43 pm »
It doesn't work that way. For assigning multiple textures to one mesh, you have to rely on the auto-assignment. setTexture(...) sets the texture for the whole mesh at once. What you actually want to do, is to remove the setTexture()-calls and make sure that name1 and name2 in the addTexture()-calls match the names from the mtl-file. In case of doubt, have a look at the log output when loading the model for the exact names.

12
Support / Re: Rendered in black with multiple texture files (jpg + png)
« on: October 31, 2018, 11:07:35 pm »
How are you assigning the textures?

13
Support / Re: Crash (native)
« on: October 25, 2018, 02:31:24 pm »
I can't really use the emulator, because for me, it crashes like mad anyway no matter what I'm trying to do with it. That's not the app inside of the emulator, but the whole emulator instance.

14
Support / Re: Crash (native)
« on: October 25, 2018, 08:35:09 am »
Is that one different from the one included in the SDK?

15
Support / Re: Mouse-Walking on a Simple Plane
« on: October 24, 2018, 08:21:23 am »
Looks ok to me at first glance. Is this what works with multi-polygon planes? Then it will work with 2 polygonal planes as well if it's able to detect the actual collision/intersection, which depends on the offset setting mentioned above.

Pages: [1] 2 3 ... 798