Announcement

Collapse
No announcement yet.

Problem - vrscene seq

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

  • Problem - vrscene seq

    Hi vlado, i have a BIG probl with rendering vrscene seq,

    if you remember way back, you send me naiad2vrscene converter to convert naiad particles to vrscene, but i have a problem rendering the vrscene seq

    i have added the post py translate script for loading vrscene files but thing is when you hit render script is executed only 1x in whole range

    here is a script
    ----------------------------
    import vray.utils as vu
    import maya.cmds as cmds

    frame = '%04d' % cmds.currentTime(q=1)
    vu.addSceneContent('t:/vrscene/flood.'+frame+'.vrscene')
    nodes=vu.findByName('pCubeShape1@node')
    shapes=vu.findByName('Particle')
    cmds.warning(frame)
    if not nodes:
    cmds.warning('no nodes')
    if not shapes:
    cmds.warning('no shapes')
    if nodes and shapes:
    old=nodes[0].get('geometry')
    nodes[0].set('geometry', shapes[0])
    vu.delete(old)
    --------------------------------------------------

    i have even try to submit to deadline (1 frame task size) but deadline is also rendering only one frame (frame at saved moment)

    so could anyone gimme an idea how to load vrscene seq per frame?

    thx

  • #2
    Are you sure that the correct vrscene file is loaded and that this file contains the proper frame?
    Currently I don't think you'll be able to render whole animation sequences, just separate frames, because the naiad2vrscene generates a single frame files.
    V-Ray developer

    Comment


    • #3
      hi T,

      i made a single per frame vrscene file, and im trying to load them per frame, if i hit a single render at frame 3 it loads vrscene 3, but if i hit render animation, seq is not loading/changing...

      i have files like this

      flood.0001.vrscene
      flood.0002.vrscene
      flood.0003.vrscene
      flood.0004.vrscene
      etc...

      i can upload scene with files, if you have time to take a look

      p.s.

      here is a scene
      http://www.sendspace.com/file/hq52i3
      Last edited by bazuka; 16-04-2013, 04:02 AM.

      Comment


      • #4
        Originally posted by bazuka View Post

        i have even try to submit to deadline (1 frame task size) but deadline is also rendering only one frame (frame at saved moment)

        so could anyone gimme an idea how to load vrscene seq per frame?

        thx
        Do you can add "print" on your script ?

        Like :
        frame = '%04d' % cmds.currentTime(q=1)
        print frame

        I do not think you have to use this command to get the time in batch mode....
        www.deex.info

        Comment


        • #5
          hi bigbossfr

          does this cmds.warning(frame) will do the same?


          u can try very simple test, just add these few lines and check Anim, and hit render

          import maya.cmds as cmds
          frame = '%04d' % cmds.currentTime(q=1)
          print frame

          if you get the frame range info then its working, if not then

          Comment


          • #6
            Originally posted by bazuka View Post
            i made a single per frame vrscene file, and im trying to load them per frame, if i hit a single render at frame 3 it loads vrscene 3, but if i hit render animation, seq is not loading/changing...
            As I've said rendering animations won't work. This feature is single frame only, sorry.
            V-Ray developer

            Comment


            • #7
              hi T,

              i know thats the Maya bug or what ever,

              is there a way maybe to implement vrscene as vrmesh loader/importer?

              Comment


              • #8
                Originally posted by bazuka View Post
                i know thats the Maya bug or what ever,
                It is not a bug in Maya, just a missing feature in the naiad2vrscene.

                Originally posted by bazuka View Post
                is there a way maybe to implement vrscene as vrmesh loader/importer?
                We have a special version of ply2vrmesh, which can generate vrmesh files, but I'm sure you don't want to use it - it generates enormous files, it renders pretty slowly and uses tons of memory.
                V-Ray developer

                Comment


                • #9
                  It turned out that there is undocumented call that might work. The call is appendSceneContent.
                  Can you try to use appendSceneContent instead of addSceneContent? In order to make it work
                  you have to call it for all frames. This will include all frames in the scene during the phase of scene
                  translation.

                  If this doesn't work it will be good if you can send some minimal example (2-3 frames, both naiad
                  and vrscene files)
                  V-Ray developer

                  Comment


                  • #10
                    T, there is a link in previous posts, 3rd post, sendspace link

                    thx for your time

                    Comment


                    • #11
                      Originally posted by bazuka View Post
                      T, there is a link in previous posts, 3rd post, sendspace link
                      Does it work with the new method?
                      V-Ray developer

                      Comment


                      • #12
                        Originally posted by t.petrov View Post
                        Does it work with the new method?
                        im not by the computer atm.....

                        Comment


                        • #13
                          It could help that you export your vrscene per frame too. With Yeti for example this is the only way to render the fur.
                          VFX Supervisor @ www.parasol-island.com personal website www.dryzen.com latest reel http://vimeo.com/23603917

                          Comment


                          • #14
                            i have few more probl

                            is it possible to load more then 1. vrscene inside scene?



                            fluid = vu.addSceneContent('t:/1/test_fluid.0001.vrscene'i)
                            fluid_nodes=vu.findByName('pCubeShape1@node')
                            fluid_shapes=vu.findByName('Particle')

                            foam = vu.addSceneContent('t:/1/test_foam.0001.vrscene'i)
                            foam_nodes=vu.findByName('pCubeShape2@node')
                            foam_shapes=vu.findByName('Particle')

                            something like this doesnt work, always loads only 2nd vrscene,

                            2nd thing, is it possible to link vrscene, not merge data from vrscene, inside vrscene?

                            @paulDryzen
                            im not sure i understand
                            Last edited by bazuka; 16-04-2013, 02:41 PM.

                            Comment


                            • #15
                              Originally posted by bazuka View Post
                              fluid = vu.addSceneContent('t:/1/test_fluid.0001.vrscene'i)
                              fluid_nodes=vu.findByName('pCubeShape1@node')
                              fluid_shapes=vu.findByName('Particle')

                              foam = vu.addSceneContent('t:/1/test_foam.0001.vrscene'i)
                              foam_nodes=vu.findByName('pCubeShape2@node')
                              foam_shapes=vu.findByName('Particle')

                              something like this doesnt work, always loads only 2nd vrscene,
                              This happens because the plugins from the second scene have the same names like the plugins from first one.
                              The addSceneContent and appendSceneContent methods have a second parameter which
                              can add a prefix string to all the names. I suppose you'll have to use it.

                              Originally posted by bazuka View Post
                              2nd thing, is it possible to link vrscene, not merge data from vrscene, inside vrscene?
                              I don't understand, you'll have to try to explain it better.

                              What happened with the animations? Have you made it render sequences?
                              V-Ray developer

                              Comment

                              Working...
                              X