As the venture in the realm of Shaders and materials you may encounter the odd obstacle. Please post your shader issue for the community to help.

Material Appears Different When Model Rotated

Material Appears Different When Model Rotated

Postby Shando » 18 Apr 2022, 12:10

Hi all,

I have just tried setting up a PBR Material on one of the standard Skyline blocks (BlockG). When I apply the material, it looks like the block on the left. However, when I clone the block and rotate it 90 degrees (image on right), the material on the rotated block appears different:

Image

and, if I rotate by 270 degrees, it looks different again:

Image

Any help would be greatly appreciated as I'm trying to create a maze and it doesn't look good with what appear to be different materials on the walls.

Thanks

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Material Appears Different When Model Rotated

Postby StarFire » 24 Apr 2022, 18:33

When i get a chance i will have a look at this as it is strange. if you have a test scene i could use or the texture you are having issues with, would speed up the process
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: Material Appears Different When Model Rotated

Postby Shando » 24 Apr 2022, 22:49

Hi StarFire,

I'm using the textures from http://www.freepbr.com and it seems to affect most of them. If I use the .png Normal Map they appear to be much closer (if not identical) as opposed to using the .dds version? I did read that because .dds is lossy, it can affect Normal Maps more than others?

I also read something similar happens in Unity (something to do with inversing the matrix not working in the general case) and a user produced an 'Inverse Function' that corrected it? (this is a link to his tweet: https://twitter.com/elvismdd/status/1517951430988025860?t=P2nknJ6oaGw-pbFJBOsiZg&s=03).

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Material Appears Different When Model Rotated

Postby StarFire » 25 Apr 2022, 18:18

I suspect the block you used. The newer geometry I created uv maps where as the orig blocks were very basic mapping. This usually creates a correct surface on one side and invese surface on the backside.

Using the new geometry i dl a texture from the site mentioned above and applied that to a material. Looks great on all sides. Please see images below :)
Clipboard Image (22).jpg
Clipboard Image (22).jpg (155.84 KiB) Viewed 13291 times


Clipboard Image (21).jpg
Clipboard Image (21).jpg (159.94 KiB) Viewed 13291 times


I had to reduce the spec as there is always going to be minor variations on how ppl design their pbr. Hope this helps.
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: Material Appears Different When Model Rotated

Postby Shando » 25 Apr 2022, 21:43

Hi StarFire,

Thanks for that :)

I assumed it was something simple I had missed, but modelling/texturing is not my forte :(

Thanks again

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer


Return to Shaders n Materials

Who is online

Users browsing this forum: No registered users and 2 guests

cron