Object Mapping

and all the interaction

Moderator: Moderator Group

Object Mapping

Postby Paride Signoretta » Thu Jul 09, 2009 2:32 pm

Hi,
when i use gmax for mapping a 3d obj i don't understand why the size and posizion is never right, i use gmax in full screen and i position an rotate the mesh of
obj, but when i apply the obj to PB camera there isn't right (size and Position). I use the real size in cm or mm but is always small.

For Exaple, If i have real white couch and i want to use to project what is the procedure with 2 projector???
i must use camera in Gmax???


Tank Paride.
& Tech
Milano - Italy
Paride Signoretta
 
Posts: 11
Joined: Fri Aug 22, 2008 8:14 pm
Location: Milan Italy

Re: Object Mapping

Postby Jan Huewel » Fri Jul 10, 2009 1:57 pm

Dear Paride

The problem you are facing is related to two important settings

First of all the scaling of objects between two applications like GMax and Pandoras might be different or caused by the exporter.

Second the Field of View (Camera Angle) of both applications is not set to the same setting.

Since the only way to get an .x file out of GMAX is via the flightsimulator plugin the scalings are always transformed to a inch based measuring system, this is part of the error you are seeing.

To fix the issue with the existing exporter, we are looking into writing a customized exporter dedicated to Pandoras Box units.

In the meantime you can fix your issue by using the attached setup file and applying the following changes to the .x file after export from GMAX. This file has the same camera field of view as the Pandoras Box Camera.

open the exported .x File and scroll down until you see the the following section


Frame frm-MasterScale {
FrameTransformMatrix {
0.000977, 0.0, 0.0, 0.0,
0.0, 0.000977, 0.0, 0.0,
0.0, 0.0, 0.000977, 0.0,
0.0, 0.0, 0.0, 1.0;;
} // End frm-MasterScale FrameTransformMatrix
Frame frm-MasterUnitConversion {
FrameTransformMatrix {
26.009600, 0.0, 0.0, 0.0,
0.0, 26.009600, 0.0, 0.0,
0.0, 0.0, 26.009600, 0.0,
0.0, 0.0, 0.0, 1.0;;
} // End frm-MasterUnitConversion FrameTransformMatrix


Change the values to:

Frame frm-MasterScale {
FrameTransformMatrix {
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0;;
} // End frm-MasterScale FrameTransformMatrix
Frame frm-MasterUnitConversion {
FrameTransformMatrix {
0.09843, 0.000000, 0.000000, 0.0,
0.000000, 0.09840, 0.000000, 0.0,
0.000000, 0.000000, 0.100000, 0.0,
-0.008156, 0.008100, 0.000000, 1.0;;
} // End frm-MasterUnitConversion FrameTransformMatrix


Save the changes and load the file into Pandora.

Now the 3D object should be displayed correctly.

I hope this helps

Best regards

Jan
You do not have the required permissions to view the files attached to this post.
Last edited by Jan Huewel on Wed Jul 15, 2009 11:11 am, edited 1 time in total.
Jan Huewel
 
Posts: 260
Joined: Fri Jul 11, 2008 11:49 am
Location: earth

Re: Object Mapping

Postby Paride Signoretta » Mon Jul 13, 2009 9:59 pm

Hi Jan,
I try to use the attached file but if i use the origial exporter the mesh is small, if i modifier the values in the .x file the mesh is very very big.

Many Tanks Paride
& Tech
Milano - Italy
Paride Signoretta
 
Posts: 11
Joined: Fri Aug 22, 2008 8:14 pm
Location: Milan Italy

Re: Object Mapping

Postby Julia Foest » Tue Jul 14, 2009 1:32 pm

Hi Paride,
does "very very big" mean, that you hardly see a difference on your content between no object on the layer and having the modified object on the layer?

Regards,
Julia
User avatar
Julia Foest
 
Posts: 521
Joined: Tue Nov 18, 2008 2:44 pm
Location: Berlin, Germany

Re: Object Mapping

Postby Jan Huewel » Tue Jul 14, 2009 2:25 pm

Dear Paride

did you do an export of the object of the 3D Setup file I posted?

if the flat plane turns out to hava a different size you might have set different settings in gmax units and scaling setup.

Can you let me know if you did an export as x file and converted the file?

Can you send us the gmax file and the exported x file?

Best regards

Jan
Jan Huewel
 
Posts: 260
Joined: Fri Jul 11, 2008 11:49 am
Location: earth

Re: Object Mapping

Postby Paride Signoretta » Tue Jul 14, 2009 3:55 pm

Hi Jan,
I attached the .x files. On 50.x i export the plane directly whitout move or scale and is it small.
On the second, 50_1.x i open the expoted file and modify the values but it's very big.

Thanks Paride.
You do not have the required permissions to view the files attached to this post.
& Tech
Milano - Italy
Paride Signoretta
 
Posts: 11
Joined: Fri Aug 22, 2008 8:14 pm
Location: Milan Italy

Re: Object Mapping

Postby Jan Huewel » Wed Jul 15, 2009 11:14 am

Dear Paride

thank you for the files I found the issue, I am sorry that I accidentally pasted the wrong matrix into my post above.

I have edited and corrected my post and here are the correct values again.

Frame frm-MasterScale {
FrameTransformMatrix {
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0;;
} // End frm-MasterScale FrameTransformMatrix
Frame frm-MasterUnitConversion {
FrameTransformMatrix {
0.09843, 0.000000, 0.000000, 0.0,
0.000000, 0.09840, 0.000000, 0.0,
0.000000, 0.000000, 0.100000, 0.0,
-0.008156, 0.008100, 0.000000, 1.0;;
} // End frm-MasterUnitConversion FrameTransformMatrix

I hope now everything looks correct.

Best regards

Jan
Jan Huewel
 
Posts: 260
Joined: Fri Jul 11, 2008 11:49 am
Location: earth


Return to 3rd Party Hardware & Software Components

Who is online

Users browsing this forum: No registered users and 3 guests