Announcement

Collapse
No announcement yet.

scene orientation, Z up?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • scene orientation, Z up?

    Hi guys

    I'm trying to build an exporter but my scene seems to be on it's side

    does Vray use the Z axis up? 3dsmax style I guess

    if so, are there any known solutions for this, since maya uses Y up

    thanks

  • #2
    Hi,

    Have you tried to export a 'SettingsUnitsInfo' plugin?

    Here are the parameters for this plugin:
    Code:
    Parameters for plugin 'SettingsUnitsInfo'
      meters_scale: float = 1, The number by which a 3d distance must be multiplied to covert it into meters.
      photometric_scale: float = 0.001, The number by which the power of photometric lights should be scaled when rendering.
      scene_upDir: vector = Color(0, 0, 0), The 'up' direction for the scene.
      seconds_scale: float = 1, The number by which a scene time unit must be multiplied to convert it to seconds.
    In the exporter in Maya we use (0, 1, 0) for the scene_upDir.

    hint: To view the parameters for a particular plugin type you can use the plgparams utility.
    V-Ray developer

    Comment


    • #3
      that's great news
      can I use this plugin launching a render from the standalone renderer?
      cause that's what I'm using

      thanks

      Comment


      • #4
        ok I found out that I can do that in the vrscene file which is awesome to me, but, can't make it work

        I'm using this and I cant see any difference

        SettingsUnitsInfo {
        scene_upDir=Color(0, 1, 0);
        }
        help

        Comment


        • #5
          scene_upDir is actually a vector, not a color so it should be
          Code:
          SettingsUnitsInfo { scene_upDir=Vector(0,1,0); }
          but even so, this will not automatically flip your scene - you'll have to make sure your camera transformation is also correctly flipped. SettingsUnitsInfo is used by some plugins (like the V-Ray sun and sky) to determine their orientation.

          Best regards,
          Vlado
          I only act like I know everything, Rogers.

          Comment


          • #6
            the plgparams utility says it's a color, I tried a vector also but no luck either

            so, what do I need to flip then, just the camera?

            thanks

            Comment


            • #7
              Originally posted by varomix View Post
              the plgparams utility says it's a color, I tried a vector also but no luck either
              It says it's a vector, but mistakenly lists the default value as a color. In any case this will not affect your scene flipping in any way, like I said.

              so, what do I need to flip then, just the camera?
              Both the camera, and the up vector (like I explained, the latter will be used for sun/sky etc).

              Best regards,
              Vlado
              I only act like I know everything, Rogers.

              Comment


              • #8
                That sounds way better then flipping every object

                thanks

                Comment

                Working...
                X