Announcement

Collapse
No announcement yet.

Product Viewer 'Explode' tool implementation and function

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

    #16
    Okay I finally figured this out to my satisfaction:
    • The Explode_BP_Actor blueprint is redundant like I initially thought, probably a leftover from early version or something. Deleting the whole thing had no effect on anything and it wasn't referenced anywhere.
    • As the Explode_BP blueprint is using hard object references for the meshes, it will reset each time when reloading the project and wouldn't carry out to the packaged build either. To fix this I changed the hard references to soft ones instead. As I'm a beginner I really don't know why this wasn't done in the first place, there's probably some drawback to this method (performance?) but I haven't noticed anything yet. Here's what I did:
    Click image for larger version  Name:	hardtosoft.png Views:	1 Size:	80.4 KB ID:	1545971
    And then obviously replacing the mesh references in the other events to this new soft object reference as well. After these changes everything works like I want it to, everything is saved when reloading the project and it also works in packaged builds perfectly.

    Here's an example of it in action with 3 spectator clients added as well:
    https://streamable.com/app6u
    Last edited by Kijaii; 10-31-2018, 10:13 AM.

    Comment


      #17
      Originally posted by Kijaii View Post
      Okay I finally figured this out to my satisfaction:
      • The Explode_BP_Actor blueprint is redundant like I initially thought, probably a leftover from early version or something. Deleting the whole thing had no effect on anything and it wasn't referenced anywhere.
      • As the Explode_BP blueprint is using hard object references for the meshes, it will reset each time when reloading the project and wouldn't carry out to the packaged build either. To fix this I changed the hard references to soft ones instead. As I'm a beginner I really don't know why this wasn't done in the first place, there's probably some drawback to this method (performance?) but I haven't noticed anything yet. Here's what I did:
      Click image for larger version

Name:	hardtosoft.png
Views:	62
Size:	80.4 KB
ID:	1545971
      And then obviously replacing the mesh references in the other events to this new soft object reference as well. After these changes everything works like I want it to, everything is saved when reloading the project and it also works in packaged builds perfectly.

      Here's an example of it in action with 3 spectator clients added as well:
      https://streamable.com/04s17
      Looks really good. Question, I noticed your objects move back to their original position much smoother than the default ones I'm using. What did you change to get that? Cheers!
      Have a great day,

      Josh Bridger LinkedIn
      Graphics Artist @ 3DLABS
      ------------------------------------

      Comment


        #18
        Originally posted by GSS_JXB View Post

        Looks really good. Question, I noticed your objects move back to their original position much smoother than the default ones I'm using. What did you change to get that? Cheers!
        I added linear interpolation to the movement in the "RestoreInitialTransform" -custom event in "ProductViewer_Base_Pawn" -blueprint. It's too messy a solution right now to share though, and unfinished in regard to how it works in VR (need to add rotation as well).

        Comment


          #19
          The Explode Tool didn´t work for me! Tryed evertything Marie-Claude said! Is there no step by step tutorial or video-tutorial? This was nice to have! Fixes or updates available?

          Comment


            #20
            Originally posted by dalembert View Post
            The Explode Tool didn´t work for me! Tryed evertything Marie-Claude said! Is there no step by step tutorial or video-tutorial? This was nice to have! Fixes or updates available?
            Either those instructions were always incorrect or became outdated with the release of 4.21 so they wouldn't really work, but if you look here: https://docs.unrealengine.com/en-us/...Product-Viewer

            And scroll down, there are now different instructions for the explode feature that should work better. I figured my own solution that works fine but probably better to go with the official one.

            Comment


              #21
              Originally posted by Kijaii View Post

              Either those instructions were always incorrect or became outdated with the release of 4.21 so they wouldn't really work, but if you look here: https://docs.unrealengine.com/en-us/...Product-Viewer

              And scroll down, there are now different instructions for the explode feature that should work better. I figured my own solution that works fine but probably better to go with the official one.
              Glad there is finally some official documentation on this feature. Was killing me to try and work this out. Will definitely need to look into getting it working in my project sometime if and when it is necessary too.
              Have a great day,

              Josh Bridger LinkedIn
              Graphics Artist @ 3DLABS
              ------------------------------------

              Comment


                #22
                Yeah, we didn't put official instructions for doing the explode in 4.20 because the usability of the feature wasn't where we thought it should be. But the appetite for the feature was so high that we ended up trying to give people the instructions through the forum. The new version in 4.21 should be a lot simpler to set up, and should hopefully match your expectations for how the thing should behave.

                Comment


                  #23
                  Originally posted by Kijaii View Post
                  I got this working somewhat, and managed to record a shot clip in preview mode:
                  https://streamable.com/scvu7

                  However when I saved the project and restarted the editor, the positions weren't saved and nothing worked anymore. Is this something that's supposed to work right now? Also when I tried packaging the project, it was successful but the exploding doesn't work at all.

                  Edit: Upon further investigation I noticed it's the mesh components that are not saving, transforms are.
                  Edit 2: As far as I understood form studying the blueprints with my very limited experience, this isn't a finished blueprint and it simply can't work as the object references aren't saved anywhere permanently. I worked around this by saving them in a string array and using that to rebuild the object reference array on load and demand. Works fine like that when packaged too.
                  ............................
                  i'm new to use unreal engine, also have the same problem when using the "Product Viewer" template to practice......tried many different ways, and finally solve the so called "restart" problem....
                  i don't use the objects that exist in the template, i drag it from the "Content Brower/ SampleMesh/Gears", select those parts as below:

                  and then drag it to the viewport, and then use the same way as other supporter mentioned in the topic before.......[select parts---convert selected to blueprint----set parent to existing "Explode_BP"......] and save it and test to restarted the editor ...and the "restart' problem can be solved.......

                  but another problem is coming up......"the x-ray applied to a group...i can't apply it individuallly to each parts."......so hope anyone who can help...pls reply me back thanks!


                  Comment


                    #24
                    Hello. Explode_BP_Actor seems to work only in PC mode. (4.21.2)
                    When i use it in PC mode, no problem at all but, when I try to use it in VR mode :

                    "Blueprint Runtime Error: "Accessed None trying to read property CurrentSelectable". Blueprint Explode_BP_Actor Function : Execute Ubergraph Explode BP Actor Graph: EventGraph Node: Branch.

                    Any idea how to solve this ?

                    Update :
                    If not parented in Interactive_Root, it works on PC mode but not on VR Mode.
                    If meshes are all movable, parented to Interactive_Root and Explode_BP_Actor, It works in VR but message in still visible in Messagelog.
                    Attached Files
                    Last edited by Achitakayoh; 02-12-2019, 12:28 AM. Reason: Works almost perfect in VR after parenting to Interactive_Root

                    Comment

                    Working...
                    X