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 - luftiguru

Pages: [1]
Support / Re: Serialize Object3D on android
« on: September 14, 2013, 01:36:10 pm »
Works like a charm!  :)
Thanks for your always fast and helpful answers. Keep up the good work!

Support / Re: Serialize Object3D on android
« on: September 13, 2013, 04:58:11 pm »
Thanks for the hint, I didn't knew I had to serialize Object3D before adding it to my World.

Now, I serialize a clone of my Object3D (using cloneObject() ) right after loading the original .obj file.
I can then add this cached object to a new world where it is rendered.

Nevertheless, now a new problem occurs:
When using the "normally" loaded (via .obj file) Object3D, highlights and shades look fine.
But when I use the cached Object3D, no highlights and shades are rendered. The color of my (monochromatic) texture is simply applied to the whole Object3D. I use exactly the same setup of the world, lights and objects as before.

Do I have to obey a specific order like before? Any hints, what else might be the problem?

Support / Serialize Object3D on android
« on: September 12, 2013, 07:12:58 pm »
I'm working on an android app, where I load .obj meshes loaded via network. This works quite good so far.
Nevertheless, I'd like to cache known meshes on the device to speed up my application.

I tried writing the Object3D[] array which builds the object to a file using When I load this file using, I get my Object3D[] back. When I try to add the contained Object3D's to a new created World, I get the error: "ERROR: Object with name 'bottle_part0' already exists!"

Am I doing something obviously wrong?
Is there a chance for a serialization support of Object3D in jPCT-AE?  :)
Thank you!

Bugs / Re: Wireframes not draw correctly
« on: August 30, 2013, 03:18:38 pm »
What a pity.
Nevertheless, thanks for the fast reply.

Bugs / Wireframes not draw correctly
« on: August 30, 2013, 12:50:58 pm »
I use World.drawWireframe(..., 1, true) to overlay my objects with a wireframe. This works fine most of the time.
Recently, I stumbled over a object, whose faces are rendered correcly but the wireframe is not. It seems like some additional "wires" are added at very sharp edges of the object.
I added  the .obj file to this post. It seems to be consistent when viewing it using MeshLab.
Can someone reproduce the error? Is it a bug in jPCT-AE or in my object file?
Thank you.

I use jPCT-AE from 2013-07-04.

[attachment deleted by admin]

Support / Re: drawWireframe
« on: July 20, 2013, 11:48:21 am »
Awesome! Thanks for the great support. :)
It works now. The generated wireframes are rendered correctly and are exactly, what I needed so far.

Support / Re: drawWireframe
« on: July 19, 2013, 03:40:30 pm »
Thanks for the fast reply. :)
I tried wireframes with the newest version of jPCT AE (July 4, 2013).
First thing, I noticed is the changed API. The method has two additional parameters now:
Code: [Select]
void com.threed.jpct.World.drawWireframe(FrameBuffer buffer, RGBColor color, int size, boolean pointMode)BTW... the online documentation still points to the old API version.

Nevertheless, I tried to use the method with various combinations of "size" and "pointMode". Unfortunately, an exception was thrown at every try:
Code: [Select]
java.lang.RuntimeException: Not implemented!
at com.threed.jpct.GL20.glPointSize(
  at com.threed.jpct.GLRenderer.drawWireframe(
  at com.threed.jpct.World.draw(
  at com.threed.jpct.World.drawWireframe(
  at myapp.MyRenderer.onDrawFrame(
  at android.opengl.GLSurfaceView$GLThread.guardedRun(
  at android.opengl.GLSurfaceView$
Any Idea, why this happens? Will a fix be available soon? :)

Support / Re: drawWireframe
« on: July 10, 2013, 04:27:13 pm »
It's been a while since the last news on drawWireframe() in jPCT AE.
I'd like to use wireframed 3D overlays in my augmented reality app. Is there any chance, to find the method implemented in jPCT AE soon?
I'd really appreciate any progress in this matter or hints, how to achieve a similar result for my own.
Thanks!  :)

Pages: [1]