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 [4] 5 6 ... 787
46
Support / Re: Large obj file issue > 5mb
« on: September 07, 2017, 04:31:52 pm »
Serialized objects are actually larger at times, but they compress very will. You can zip them and then load them via ZipInputStream.

An no, you don't need Eclipse for that but some IDE that can execute desktop Java. Android Studio might not be the best choice for this task.

What you basically do is to load your object with desktop Java/jPCT, call build() on it and then do

Code: [Select]
new DeSerializer().serialize(obj, new FileOutputStream("storage/android/some_name.ser"), true);

You can then zip the result and load it in Android similar to this

Code: [Select]
zis = new ZipInputStream(<AssetManagerInstanz>.open("some_name.ser.zip"));
try {
zis.getNextEntry();
} catch (IOException e) {
throw new RuntimeException(e);
}

Object3D obj=Loader.loadSerializedObject(zis);

47
Bones / Re: Scale Problem?
« on: September 04, 2017, 08:25:25 am »
How does the bounding box look in object space?

48
Bones / Re: Scale Problem?
« on: August 30, 2017, 09:05:54 am »
Looking at the code, I would expect that one these methods screws it up:

Code: [Select]
scaleBones(bones);
invertBonesCoords(bones);

What are these doing and can you check if your bones are still correct afterwards?

49
Support / Re: JPCT-ae + GoogleTango = Occlusion/Stencil
« on: August 30, 2017, 09:01:59 am »
A stencil buffer? No, there's no support for this.

50
Support / Re: Environment reflection on a textured objects
« on: August 28, 2017, 02:11:58 pm »
I'm not sure, if that's what you actually want...but you can obtain a texture-ID for a polygon via the PolygonManager and then go to the TextureManager and ask for the name of that texture. Textures created from color materials follow a specific naming convention (you'll notice it when you it). Maybe that helps...

51
Support / Re: Shadows
« on: August 28, 2017, 11:54:56 am »
Scales and distances doesn't really matter as long as they are consistent and not too small/large for being represented by floats.

Reasonable values...hard to tell. Just try smaller values (remember to adjust the min/max fov settings as well) and see if that helps. If it gets too small, the shadows will be limited to only a small part of the scene.

52
Support / Re: Large obj file issue > 5mb
« on: August 28, 2017, 07:34:58 am »
The best solution would be to use smaller models in the first place. If that's not an option, serialized objects should help:

http://www.jpct.net/wiki/index.php?title=Differences_between_jPCT_and_jPCT-AE#Performance_and_memory_issues.2C_serialized_objects

53
Support / Re: JPCT-ae + GoogleTango = Occlusion/Stencil
« on: August 26, 2017, 10:55:34 pm »
You could create an Object3D based on your points, render it, clear the color buffer only (FrameBuffer.clearColorBufferOnly()) and render the scene. That will "hide" everything behind your (now no longer visible) object...if that's what you actually mean...

54
Support / Re: Shadows
« on: August 22, 2017, 09:00:17 pm »
No, you can't filter a depth map on the GPU with some Java2D means. You can filter it in a shader. The fixed function pipeline that desktop jPCT uses for shadow mapping doesn't support this. You can enable a kind of filtering in the ShadowHelper, but it might cause some artifacts and usually doesn't really help much anyway.

Apart from that, your shadows in that example look really low res for a 8192*8192 depth map. Have you tried to play around with the fov setting?

55
Support / Re: Transparency lost after deserialization
« on: August 22, 2017, 08:55:56 pm »
Please re-download and try again...

56
Support / Re: Transparency lost after deserialization
« on: August 22, 2017, 02:11:51 pm »
Oops...I've obviously forgotten to take the parameter into account. I'll fix that later.

57
Support / Re: Transparency lost after deserialization
« on: August 22, 2017, 10:28:36 am »
I'll look into it..

58
Support / Re: Shadows
« on: August 22, 2017, 08:55:32 am »
I've replied to your email yesterday.

59
Support / Re: Transparency lost after deserialization
« on: August 21, 2017, 07:44:51 pm »
Please try these jars:

http://jpct.de/download/beta/jpct.jar
http://jpct.de/download/beta/jpct_ae.jar

They should add support for transparency to the (De-)Serializer as well as a new Texture constructor that leaves the stream open if wanted.

60
Support / Re: Transparency lost after deserialization
« on: August 21, 2017, 02:31:16 pm »
I guess I didn't consider it to be important. I had to make a cut somewhere and transparency didn't make it into the format. I'll look into it. Should be easy to add it.

Pages: 1 2 3 [4] 5 6 ... 787