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 ... 793
1
Support / Re: Camera rotation.
« on: May 14, 2018, 07:53:46 am »
Code: [Select]
camera.getBack().setIdentity();

might be a little more efficient.

2
Support / Re: Float Positioning Blit Images
« on: May 03, 2018, 11:26:25 am »
No, it's not possible but you could use an Overlay instead.

3
Support / Re: Now this looks like a Java 10 Thing
« on: May 01, 2018, 01:09:55 pm »
Works just fine for me. Can you provide me with the complete, executable test case?

4
Support / Re: Float Positioning Blit Images
« on: April 26, 2018, 12:39:59 pm »
I'll have a look...

5
Support / Re: Java 10 Serialization
« on: April 26, 2018, 09:36:45 am »
Serialized objects are my own binary format optimized for usage on Android. Also, I don't think that Java10 breaks anything regarding the normal object serialization, because that would be utterly stupid of them.

6
Support / Re: Java 10 Serialization
« on: April 25, 2018, 11:02:56 pm »
Why? What's different? And what kind of serialization actually? Normal Java based one or jPCT's own serialized object stuff?

7
Support / Re: Float Positioning Blit Images
« on: April 24, 2018, 10:25:31 am »
Well...that the blit() methods take integers only is caused by the software renderer. It can't do subpixel-blitting and the methods reflect that. It's not as easy as it might look at first glance to change this now. To make me understand this better: What kind of HUD is that? Why exactly do you need floats to blit it?

8
Support / Re: JPCT + Vuforia in stereo rendering mode
« on: April 24, 2018, 10:06:30 am »
Yeah, sorry about that method. I should have mentioned it and I really can't remember why I put that in...

9
Support / Re: JPCT + Vuforia in stereo rendering mode
« on: April 23, 2018, 10:35:53 am »
If you've played around with the fov settings...have you just changed fov or yfov as well?

10
Support / Re: JPCT + Vuforia in stereo rendering mode
« on: April 23, 2018, 07:53:57 am »
Do you have a screen shot?

11
Support / Re: 3D objects offset
« on: April 17, 2018, 08:24:40 pm »
Your code looks fine. It might have something to do with the depth value that you are assuming for the reprojection call....in this case 20. This implies that the "depth" of the 2D image is 20 as well, or in other words, if the 2D object would be a 3D object managed by jPCT instead, it has to have a depth of 20 to match your object's depth. If you roughly know the size of the 2D object in real world an on screen, you should be able to calculate a more or less accurate depth for your object...either that, or just guess something that looks reasonable...

12
Support / Re: 3D objects offset
« on: April 17, 2018, 12:05:59 pm »
You could do it in code as well. Just call build(), translate it by -center, call translateMesh() and clear the translation afterwards. However, this center is a calculated one. It doesn't have to be a "real" center of an object.

13
Support / Re: 3D objects offset
« on: April 16, 2018, 08:21:24 pm »
Might be that object isn't exactly centered around the orgin in object space, but I'm not sure if that would explain the increasing offset...it might, though.

What does Object3D.getCenter(); returns on your object?

14
Support / Re: 3D objects offset
« on: April 16, 2018, 07:38:19 am »
Depending on your screen setup, the coordinates in 2D on screen might not match the ones that the FrameBuffer uses. This can be caused by a bar at the top or something. Make sure that (0,0) in 2D really corresponds to (0,0) in the FB. You can simply blit something at (0,0) to the FB and see if it appears at the right position.

15
Support / Re: JPCT + Vuforia in stereo rendering mode
« on: April 16, 2018, 07:35:10 am »
Good to hear that you've solved it.

Pages: [1] 2 3 ... 793