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

Topics - Eloy7

#1
Support / jBrush serializer
November 07, 2012, 09:42:40 AM
I use jBrush v0.3 load 3ds object and create animation
i serialize object with animation and get many .ser file.
When i use Loader.loadSerializedObject in jpct-ae i get error "ERROR: Can't deserialize object: null"

Loader.loadSerializedObject(getAssetManager().open("data/1.ser"));

What i doing wrong?
#2
Support / How get world view size?
October 29, 2012, 01:16:31 PM
Hello,
    how get world view maxX,maxY.

I write menu on 3D.
Now i have different position of Object3D on different devices (which have different resolution)
I have got right maxX but wrong maxY


Here is the code, to calculate maxX and maxY:

Camera mCamera=new Camera();
mCamera.setPosition(new SimplyVector(0,0,5));
mCamera.setOrientation(new SimplyVector(0,0,-1),new SimplyVector(0,1,0));

double fov=mCamera.getFOV()/2;
double tg=(double)(Math.tan(fov)*(double)5); //5 is camera distance

double maxX=tg;
double maxY=(height/width)*maxX;