Textures and Normal Maps

Raylectron (https://Raylectron.com) is a 3D rendering engine for Trimble Sketchup (https://sketchup.com)
Post Reply
AnnaL
Posts: 21
Joined: Thu Feb 16, 2023 1:30 pm

Textures and Normal Maps

Post by AnnaL »

Trying to use a normal map on a cylinder model and I just can't seem to get it lined up correctly. I sized it in photoshop to the circumference of the model and the texture is just plain white that is the same size. Not sure what I'm doing wrong. Files are attached if needed.
Attachments
Cylinder Texture Map TEST.skp
(365.48 KiB) Downloaded 223 times
Normal.png
Normal.png (11.94 MiB) Viewed 7408 times
White.png
White.png (36.96 KiB) Viewed 7408 times
Screenshot 2023-09-21 170120.png
Screenshot 2023-09-21 170120.png (758.81 KiB) Viewed 7408 times
User avatar
Support
Site Admin
Posts: 3026
Joined: Sun Oct 02, 2011 10:49 am

Re: Textures and Normal Maps

Post by Support »

That's because of the normal map design, it's not straight, it's curved and it's not seamless. Here, I used a normal map that is straight and seamless and it wrap the cylinder nicely...
Attachments
2023-09-21_161858.png
2023-09-21_161858.png (608.89 KiB) Viewed 7406 times
Your support team.
https://SoftByteLabs.com
AnnaL
Posts: 21
Joined: Thu Feb 16, 2023 1:30 pm

Re: Textures and Normal Maps

Post by AnnaL »

I see what you are saying but if i size the map to the model, the seamlessness shouldn't make a difference right? It doesn't need to repeat at all just one wrap around. I don't see how the curve matters though. Are you saying that even if it was a seamless texture it wouldn't work because the pattern is curved?
User avatar
Support
Site Admin
Posts: 3026
Joined: Sun Oct 02, 2011 10:49 am

Re: Textures and Normal Maps

Post by Support »

oh I see what you mean now. You need to use the normal map in Sketchup as a texture and use a UV helper like SkeytchUV to apply the UV for a cylinder. I have done it for you and here is the skp file. When you export it to Raylectron, load the normal map for it as you did before, then load the white texture, replacing the normal map that was used as a texture since Sketchup doesn't support normal maps. We have to do it this way because the UV mapping in Raylectron is general, so it's not mapping the cylinder the way you would like. But doing it in Sketchup using SketchUV will set the UV for Raylectron to use and map it properly, as it shows in Sketchup...
2023-09-21_161858.png
2023-09-21_161858.png (2.67 MiB) Viewed 7400 times
Attachments
Cylinder Texture Map TEST.skp
(12.51 MiB) Downloaded 226 times
Your support team.
https://SoftByteLabs.com
AnnaL
Posts: 21
Joined: Thu Feb 16, 2023 1:30 pm

Re: Textures and Normal Maps

Post by AnnaL »

Thank you so much! This makes total sense now!
User avatar
Support
Site Admin
Posts: 3026
Joined: Sun Oct 02, 2011 10:49 am

Re: Textures and Normal Maps

Post by Support »

You are very welcome :salute
Your support team.
https://SoftByteLabs.com
Post Reply