|
31st December 2014, 01:50 PM | #1 |
Junior Member
Junior member
Join Date: Apr 2012
Posts: 7
|
Pivot script
For everybody's information the Pivot script will not work in SL or Inworldz. Works in AC3D but when you export it to DAE file and then upload the mesh into those worlds it changes the pivot back the original place best we can determine.
So looks to me somebody needs to make changes in the Viewer software being used. Was told in Inworldz that it was client problem which is the viewer according to tech. If there is a solution to this problem, I'm all eyes and ears. Shorty |
2nd January 2015, 03:06 PM | #2 |
Senior Member
Professional user
Join Date: Nov 2007
Posts: 139
|
Re: Pivot script
I see why, but I don't have the source code to the Collada exporter to fix the problem... Andy?
Basically, the Collada exporter puts out all the objects in world coordinates instead of object coordinates + object center translation. The Collada format supports a translate tag (see https://www.khronos.org/files/collada_spec_1_4.pdf) The attached zip file is a dae scene with a door and a wall. The door is purposely offset so its hinge is at 0,0,0 in world coordinates. - The 'stock.dae' file is untouched from my export from AC3D - The offset.dae has a translate tag added to move the door to where it belongs. Ron |
8th January 2015, 04:25 AM | #3 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Pivot script
Please try this replacement collada export plugin.
This adjusts the vertex positions and sets the translation to the object-center. The translations are -global- but should work even if nested inside a hierarchy, because group outputs do not have geometry/translation. Let me know if it works/fixes your problem. |
8th January 2015, 08:25 PM | #4 |
Senior Member
Professional user
Join Date: Nov 2007
Posts: 139
|
Re: Pivot script
I would try it, but I'm a linux guy...
|
12th January 2015, 04:23 AM | #5 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Pivot script
no prob. Linux version: http://inivis.com/external/colladalx.tgz
|
12th January 2015, 11:58 PM | #6 | |
Senior Member
Professional user
Join Date: Nov 2007
Posts: 139
|
Re: Pivot script
Quote:
Next request, there is a <shininess> tag. I think you can just export the same number as in AC3D: Code:
<technique sid="common"> <phong> <diffuse> <color>0.627451 0.250980 0.250980 1.000000</color> </diffuse> <specular> <color>0.427000 0.541000 0.612000 1.000000</color> </specular> <reflective> <color>1.000000 1.000000 1.000000 1.000000</color> </reflective> <reflectivity> <float>1.0000000</float> </reflectivity> <transparent opaque="A_ONE"> <color>0.000000 0.000000 0.000000 1.000000</color> </transparent> <shininess> <float>50.0000000</float> </shininess> </phong> </technique> Code:
<technique sid="common"> <lambert> <diffuse> <color>0.020000 0.020000 0.020000 1.000000</color> </diffuse> <specular> <color>0.800000 0.800000 0.800000 1.000000</color> </specular> <reflective> <color>1.000000 1.000000 1.000000 1.000000</color> </reflective> <reflectivity> <float>1.000000</float> </reflectivity> <transparent opaque="A_ONE"> <color>0.900000 0.900000 1.000000 1.000000</color> </transparent> <transparency> <float>0.9</float> </transparency> </lambert> </technique> |
|
Thread Tools | |
Display Modes | |
|
|