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

Pages: 1 [2]
16
Support / how to pass modelviewmatrix to get proper rendering
« on: June 19, 2012, 09:26:51 am »
hi friends,
i am trying to attach Jpct on top of Qcar so that after image detection rendering is done by Jpct according to the matrix of Qcar.i'm somewhat successful as the model position is now responsive to the image detected on setting the matrix in cam.setBack() but still somewhat misplaced ,it's look like inverted on z-axis and shifted on x-axis , flattens or something like that.
i'm new to Jpct so it's more or less like try n error to me .
anyone have an idea that which is the best way to do this?after googling i found that someone suggested to pass matrix to rotation matrix of the object but i can't get that.
plz help me out of this,i saw many of you done similar to this.
thanks in advance 

17
Support / Re: problem in combining jpct with Qcar
« on: June 19, 2012, 06:39:16 am »
hi EgonOlsen,
thanks for your help,now jpct is rendering on Qcar .
now for my final goal i like to know that ,to draw model according to the modelview matrix i get from Qcar ,where should i pass matrix values in jpct?
and modelview matrix is enough or projection is also needed,and finally is any transformation also needed before passing the values.?
i know some people done that but i got no idea.

18
Support / Re: problem in combining jpct with Qcar
« on: June 18, 2012, 02:57:55 pm »
no i don't changed sample code for onDraw or any other,i am just using jpct render on separate GLSurfaceView that's all.

19
Support / Re: problem in combining jpct with Qcar
« on: June 18, 2012, 12:21:40 pm »
jPCT isn't thread-safe. Make sure that are not fiddling around with World, Object3D, Camera...from any other than the rendering thread. Or at least synchronize it with the rendering if you absolutely have to.
i'm just testing your cube sample ,no other rendering thread is there.
and on googling i found that some people had succeded in integrating Qcar and Jpct,and by passing matrix values from qcar to jpct model is positioned according the image detection,can you plz help me out in this

20
hi nimo,
i followed your steps for senser value passing but final result is just a black screen,is it due to other cam parameters?
can you share your rendering code as i am new to jpct and it will be a great help.

21
Support / problem in combining jpct with Qcar
« on: June 18, 2012, 07:46:53 am »
framebuffer fill error when i tried to combine jpct with Qcar.
i used sample of jpct but following error comes while rendering
Code: [Select]
06-18 11:05:00.578: E/AndroidRuntime(6524): java.lang.ArrayIndexOutOfBoundsException
06-18 11:05:00.578: E/AndroidRuntime(6524): at com.threed.jpct.CompiledInstance.fill(CompiledInstance.java:1159)
06-18 11:05:00.578: E/AndroidRuntime(6524): at com.threed.jpct.Object3DCompiler.compile(Object3DCompiler.java:145)
06-18 11:05:00.578: E/AndroidRuntime(6524): at com.threed.jpct.World.compile(World.java:1911)
06-18 11:05:00.578: E/AndroidRuntime(6524): at com.threed.jpct.World.renderScene(World.java:1035)
06-18 11:05:00.578: E/AndroidRuntime(6524): at com.qualcomm.QCARSamples.ImageTargets.jpct.onDrawFrame(Jpct.java:85)

can anyone tell why this is happening ,since i am new to jpct.
Jpct is seemed to be very promising rendering library as far as i known yet,so plz help me out,i'm stuck at this
thanks in advance :-[

Pages: 1 [2]