Announcement

Collapse
No announcement yet.

Material Function - World Aligned Texture/Normal With offset & Rotation.

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

  • [ASSETS] Material Function - World Aligned Texture/Normal With offset & Rotation.

    Hello All,

    Someone on our fb group needed a way to rotate a Texture object, while using the regular world aligned texture/normal and that is a hard thing to do..
    I decided to recreate these two nodes with additional features, and cleaning up/removing a few features (that nobody seem to use).



    - Texture Object input.
    - Texture size.
    - Texture Scale. (Because I find it useful)
    - Rotation Degrees. (0 - 360)
    - Texture Offset.

    Since a video does more than pictures and words alone:


    Added Alpha support:


    _____________________

    Update 1.03:
    - Added seperate axis rescaling options.

    Update 1.02:
    - Texture version now comes with alpha channel support.
    - Added 4.15 version


    Update 1.01b
    - Fixed normal rotation issues. it *should* work properly now.

    Update 1.01a

    - Fixed a vector3 bug in both regular and normal version, should have been vector2
    - Made sure the normal version is exposed to the library.

    - Created a new versions of both the worldAlignedTexture & WorldAlignedNormal where each axis (X, Y, And Z) can separately be scaled, rotated, offset.



    - Added example project with materials & Material instances.

    If you are interested, you can get these mat functions here:
    https://gumroad.com/l/tZpK


    Just add zero dollar if you don't feel like donating
    Last edited by Luos; 06-13-2017, 03:57 PM.

  • #2
    Updated!

    - Fixed a vector3 bug in both regular and normal version, should have been vector2
    - Made sure the normal version is exposed to the library.

    Created a new versions of both the worldAlignedTexture & WorldAlignedNormal where each axis (X, Y, And Z) can seperately be scaled, rotated, offset.



    - Added example project with materials & Material instances.

    Can be downloaded from:
    https://www.dropbox.com/s/jl21dyenx0..._Functions.zip

    Comment


    • #3
      Thanks Luos! They're good.

      Comment


      • #4
        Hello, I just wanted everyone to know the tool is also available on GumRoad:
        https://gumroad.com/l/tZpK

        Just add zero dollar if you dont feel like donating

        Comment


        • #5
          This is leagues better than the World Aligned Texture node provided with the engine. Thanks!

          Comment


          • #6
            Cool node, that wouble better if rotation,size and offset x/y/z were single vector3 isntead of 3 scalars, to reduce clutter in material editor, so it would have 4-5 inputs instead of 11.

            Comment


            • #7
              I seem to be having some trouble getting the Luos_WorldAlignedNormalAndRotation to work. Adding a rotation value does rotate the maps but my normal maps aren't getting their vectors updated.
              Click image for larger version

Name:	Luos WA normals not rot properly.JPG
Views:	1
Size:	99.2 KB
ID:	1109156 Click image for larger version

Name:	Luos WA normals not rot properly_2.JPG
Views:	1
Size:	58.8 KB
ID:	1109157

              Am I doing something wrong here? Did an engine update break something? Any help would be greatly appreciated.

              Comment


              • #8
                Originally posted by D3F3N357R40R View Post
                I seem to be having some trouble getting the Luos_WorldAlignedNormalAndRotation to work. Adding a rotation value does rotate the maps but my normal maps aren't getting their vectors updated.
                [ATTACH=CONFIG]99577[/ATTACH] [ATTACH=CONFIG]99578[/ATTACH]

                Am I doing something wrong here? Did an engine update break something? Any help would be greatly appreciated.
                It does sort of work when the mesh and/or the lighting is dynamic, but to actually get this correctly, it would need some weird math/lerp/blending between the normal map's red and green channel.. or was it something with the blue channel.
                its 1:30 am and brain is fried.

                Ill come back to this later

                Comment


                • #9
                  Cool, thanks! I will check back later then.

                  Comment


                  • #10
                    The NormalMap have some problems,can you update this functions will be very helpful~
                    FengPaul
                    Architecture
                    GD ZCCloud CO.Ltd

                    Comment


                    • #11
                      Just (finally) updated the functions to adress the normal map rotation issue:
                      https://gumroad.com/l/tZpK

                      Let me know if it works properly now.
                      Also, apologies for the laaaaaate fix, totally forgot about it untill paul posted his comment.

                      Comment


                      • #12
                        Great node!
                        How to use ParallaxOcclusion with it?
                        Last edited by brothermechanic; 04-07-2017, 10:29 AM.

                        Comment


                        • #13
                          Originally posted by brothermechanic View Post
                          Great node!
                          How to use ParallaxOcclusion with it?
                          No clue, never used it.
                          You might need to try it with a heightmap or whatever and see if it works.

                          Comment


                          • #14
                            Hello
                            I play with your nodes and parallax
                            https://drive.google.com/file/d/0B2g...ew?usp=sharing
                            Works only on +x +y +z
                            But in -x -y -z height is inverted
                            Can you help me to improve this function?

                            Comment


                            • #15
                              I did it!
                              https://drive.google.com/file/d/0B2g...ew?usp=sharing
                              Attached Files

                              Comment

                              Working...
                              X