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 ... 796
1
Support / Re: How to convert a texture to a bitmap?
« on: July 31, 2018, 09:14:04 am »
Yes...but...why? If you have created a texture, you already have a bitmap...???

2
Support / Re: Camera rotation issue
« on: July 31, 2018, 09:13:26 am »
There will always be SIGSEGVs...no driver is perfect and people are doing all kinds of strange things with their devices that are out of your control.

3
Support / Re: Object3D generating issue
« on: July 30, 2018, 09:50:29 am »
Some shader compilers for some chips can't handle some code...which can result in everything going black. Here's an older but (not comprehensive) list of what can go wrong: http://www.jpct.net/wiki/index.php?title=GPU_guide

To track that down, I think you need a device that shows the problem and start to remove stuff from the shader or move things around and see what happens.

4
Support / Re: How to convert a texture to a bitmap?
« on: July 30, 2018, 09:44:38 am »
I'm not sure what you mean? Which texture?

5
Projects / Re: Art of Earthify (3D live wallpaper)
« on: July 27, 2018, 02:20:04 pm »
I've used the first code from your list. The rendering looks really nice and there seem to be lots of customization options. Well done!
I'm not using live wallpapers at all, but if I would...this one looks like a really nice choice.

6
Support / Re: Object3D generating issue
« on: July 27, 2018, 10:15:58 am »
No idea about the UV-mapping...about the black polygons? Are you using shaders? If so, that's most likely the problem. Different GPUs show different behaviours in some edge cases and in some cases, it might result in just a black rendering. So...are you using shaders and which devices are affected?

7
Support / Re: Different light shading with compiled objects
« on: July 27, 2018, 10:13:25 am »
...not sure what that is then...

8
Support / Re: Different light shading with compiled objects
« on: July 25, 2018, 08:57:31 pm »
There might a small hickup when uploading textures, which is why you can preload them. But that applies to compiled as well as uncompiled objects. Have you tried to increase the VM's memory pool?

9
Support / Re: Different light shading with compiled objects
« on: July 25, 2018, 02:35:19 pm »
When not using compiled objects, I don't see where that staggering effect should come from. For compiled objects, it might be caused by the compilation process...but for uncompiled...I don't see that. Can you narrow it down somehow?

10
Support / Re: Different light shading with compiled objects
« on: July 24, 2018, 09:35:58 am »
That basic light formula is the same. I've noticed some differences between compiled and "normal" objects regarding vertex lighting as well depending on the GPU used. Especially older AMD based ones have a slightly different interpretation of how to shade the polygons which can result in dimmer lighting in some edge (no pun intended) cases. If you can't compensate for that with a brighter light or by changing some other values like the attenuation, you are basically out of luck and might have to switch to shaders.

11
Support / Re: Different light shading with compiled objects
« on: July 23, 2018, 09:18:57 am »
It's not linear vs. non-linear. Both use the same, linear approach, but this value http://www.jpct.net/doc/com/threed/jpct/Config.html#lightMul is 10 for non-compiled objects (for historical reasons) but 1 for compiled ones (because of the way in which the fixed function pipeline works). Have you tried to increase the intensity of the light source instead? Or played around with http://www.jpct.net/doc/com/threed/jpct/Lights.html#setRGBScale(int)?

12
Support / Re: Camera rotation issue
« on: July 17, 2018, 03:09:38 pm »
Quote
The camera's rotation is never reset so I think the issue might lie here...
Yes, most likely. You can try to apply http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Matrix.html#orthonormalize() from time to time to it and see if that helps.

13
Support / Re: Camera rotation issue
« on: July 16, 2018, 11:19:02 am »
Yes, shoulds like some accuracy issue, but some your description, it's hard to tell where it comes from!? What does step 2/apply rotations actually do?

14
Support / Re: How to get the normal vector by touching the screen?
« on: July 16, 2018, 11:17:39 am »
You can attach a CollisionListener to the object (http://www.jpct.net/doc/com/threed/jpct/CollisionListener.html), make it return true in its requiresPolygonIDs() implementation and use the data returned by the collision event in combination with the http://www.jpct.net/doc/com/threed/jpct/PolygonManager.html. That should give you the desired data.

15
Support / Re: Billboarding Y-Axis fixed Sprite
« on: July 16, 2018, 11:12:39 am »
so, when I choose setBillboarding(true) will the jpct engine update on each frame the matrix according to the camera facing vector?
Yes, it updates it every frame. And so should you.

Pages: [1] 2 3 ... 796