Main Menu
Menu

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.

Show posts Menu

Messages - luftiguru

#1
Support / Re: Serialize Object3D on android
September 14, 2013, 01:36:10 PM
Works like a charm!  :)
Thanks for your always fast and helpful answers. Keep up the good work!
#2
Support / Re: Serialize Object3D on android
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?
Thanks!
#3
Support / Serialize Object3D on android
September 12, 2013, 07:12:58 PM
Hello,
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 java.io.ObjectOutputStream. When I load this file using java.io.ObjectInputStream, 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!
#4
Bugs / Re: Wireframes not draw correctly
August 30, 2013, 03:18:38 PM
What a pity.
Nevertheless, thanks for the fast reply.
#5
Bugs / Wireframes not draw correctly
August 30, 2013, 12:50:58 PM
Hello,
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]
#6
Support / Re: drawWireframe
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.
#7
Support / Re: drawWireframe
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:
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:

FATAL EXCEPTION: GLThread 1579
java.lang.RuntimeException: Not implemented!
at com.threed.jpct.GL20.glPointSize(GL20.java:1049)
at com.threed.jpct.GLRenderer.drawWireframe(GLRenderer.java:2244)
at com.threed.jpct.World.draw(World.java:1349)
at com.threed.jpct.World.drawWireframe(World.java:1114)
at myapp.MyRenderer.onDrawFrame(MyRenderer.java:70)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Any Idea, why this happens? Will a fix be available soon? :)
#8
Support / Re: drawWireframe
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!  :)