Itoo Software Forum

Author Topic: I changed the value of Y offset. All geometries disappeared, why?  (Read 1245 times)

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
I changed the value of Y offset. All geometries disappeared, why?
« on: September 01, 2014, 01:02:57 PM »
I was making a ladder of my swimming pool. I wanted to make a ladder with two handrail as usual. I used the Mirror and Y Offset function in the Linear generator. But when I changed the value of Y offset. All geometries disappeared ! I changed the value of Y offset to zero again. All the geometries appeared again ! I tried to rotate the spline and the Railclone objects 90 degrees. But the geometries disappeared again when I changed the value of Y offset. What's wrong with my scene ? What is the relationship between the orientation of the Railclone objects and the orientation of the splines ?! I am confused now.
I hope developers can fix my scene and explain why this happen.

We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: I changed the value of Y offset. All geometries disappeared, why?
« Reply #1 on: September 01, 2014, 01:48:13 PM »
Hi,

It would appear that the problem relates to the relative axes orientations of the RailClone object and spline. I find it's easiest in these cases to rotate the spline so that it is flat on the XY plane, reset the xform and then test the railclone style. You can then rotate them both into place once you're sure the style work in this orientation.

As you can see in this screengrab, as well as the axes orientation, for this example I also had to also change the X Rotate value to 90. I find rotating styles down like this often helps to diagnose problems.



I hope that helps.

Many thanks.

Paul

Paul Roberts
iToo Software

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
Re: I changed the value of Y offset. All geometries disappeared, why?
« Reply #2 on: September 01, 2014, 09:42:35 PM »
Did you saved the scene file with 3DSMAX 2015? Can you save the scene file with 3DSMAX 2014 or 2013 or 2012 ? I don't have MAX2015, please.
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: I changed the value of Y offset. All geometries disappeared, why?
« Reply #3 on: September 01, 2014, 10:21:10 PM »
Oops, sorry about that. Here it is in 2012 format.

Thanks,

Paul
« Last Edit: September 02, 2014, 09:13:10 AM by Paul Roberts »
Paul Roberts
iToo Software

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
Re: I changed the value of Y offset. All geometries disappeared, why?
« Reply #4 on: September 02, 2014, 04:30:14 AM »
Oops, sorry about that. Here it is in 2012 format.

Thanks,

Paul
It's not the scene of this topic. Did you pick the wrong scene to upload ?
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: I changed the value of Y offset. All geometries disappeared, why?
« Reply #5 on: September 02, 2014, 09:12:49 AM »
Sorry about that, this one should be correct.
Paul Roberts
iToo Software

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
Re: I changed the value of Y offset. All geometries disappeared, why?
« Reply #6 on: September 02, 2014, 10:13:39 AM »
Thanks for your scene. I did some research on the scene you fixed via MAXscript. Here is my script.

RC=$'pool ladder RC'
SP=$'pool ladder path'
SP_to_RC_Local_TM=SP.transform*(inverse RC.transform)
SP_to_RC_Local_Position=SP_to_RC_Local_TM.position
SP_to_RC_Local_Rotation=(SP_to_RC_Local_TM.rotation) as eulerangles
SP_to_RC_Local_Scale=SP_to_RC_Local_TM.scale

RC_OffsetTM=RC.objecttransform*(inverse RC.transform)
SP_OffsetTM=SP.objecttransform*(inverse SP.transform)

The result is:
-- 1. SP_to_RC_Local_Position = [0,9.15527e-005,0] IS allmost [0,0,0]
-- 2. SP_to_RC_Local_Rotation = (eulerAngles 0 1.00179e-005 -2.00358e-005) IS allmost (eulerAngles 0 0 0)
-- 3. SP_to_RC_Local_Scale = [1,1,1]
-- 4. RC_OffsetTM and SP_OffsetTM are both (matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])
-- The first to third points means that the world transform of Railclone Object and the world transform of Spline are allmost the same. But they both rotate up 90 degrees.
--The Fourth point means the pivot of the spline and Railclone object have not been changed.
Do you mean I must always keep the transform of the spline object and the transform of the Railclone object the same ?

The MOST important thing is I want to group the Railclone object and the spline object. It's easy to clone the ladder and move the ladder and rotate the ladder after grouping. I don't want to clone the segment object.
Is there any problem in cloning, moving, rotating and scaling the whole ladder after grouping the Railclone object and the spline object ?

Here's my hierarchy of my scene.
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: I changed the value of Y offset. All geometries disappeared, why?
« Reply #7 on: September 02, 2014, 11:07:12 AM »
Hi,

Yes, it's best to keep the RailClone object and Spline's Axis alignment the same, I find it much more predictable and it tends to eliminate errors. I can't see that there would be a problem with cloning the RC object and path as a group, as long as their axis alignments relative to one another remain unchanged. There's no need to rotate or clone the segment objects to match.

Cheers,

Paul
Paul Roberts
iToo Software