Spherical Texture Projection Problem during Transform

Forums: Spherical Texture Projection Problem during Transform
Houdini Integrated Plugin

Moderator: juanjgon

Spherical Texture Projection Problem during Transform

Postby HBHATTI » Wed Jun 02, 2021 7:46 am

HBHATTI Wed Jun 02, 2021 7:46 am
I have a 2 K earth map, I am projecting a texture onto the sphere using the RGB texture node, when I transform my object to a different position the texture gets distorted very badly. What am I doing wrong?
HBHATTI
Licensed Customer
Licensed Customer
 
Posts: 21
Joined: Fri Jun 07, 2019 10:15 pm

Re: Spherical Texture Projection Problem during Transform

Postby juanjgon » Wed Jun 02, 2021 9:21 pm

juanjgon Wed Jun 02, 2021 9:21 pm
Hmm, I'm not sure. Does your object have a proper UV map or are you using a projection node? If you want to share an example scene with this issue I could take a look at it here.

Thanks,
-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Spherical Texture Projection Problem during Transform

Postby HBHATTI » Thu Jun 03, 2021 3:12 am

HBHATTI Thu Jun 03, 2021 3:12 am
Files.zip
Earth Files
(9.54 MiB) Downloaded 103 times
Sure am attaching, just using simple projection mode. Appreciate the help, just have to relink the textures to your appropriate path
HBHATTI
Licensed Customer
Licensed Customer
 
Posts: 21
Joined: Fri Jun 07, 2019 10:15 pm

Re: Spherical Texture Projection Problem during Transform

Postby juanjgon » Thu Jun 03, 2021 9:36 pm

juanjgon Thu Jun 03, 2021 9:36 pm
Sorry, you are transforming the object at the SOP level, which means that in fact, you are deforming the mesh, so a basic spherical projection centered in the origin is not going to work. You need to transform the object at the OBJ level or add a proper UV map to the sphere and remove the projection node.

Hope it helps,
-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Spherical Texture Projection Problem during Transform

Postby juanjgon » Thu Jun 03, 2021 9:37 pm

juanjgon Thu Jun 03, 2021 9:37 pm
You could also add a transform node to the shader to match the sphere translation or rotation, but well, I think that a proper UV mapped sphere is the best solution to avoid problems.

Thanks,
-Juanjo
Attachments
2021-06-03 23_36_39.jpg
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Spherical Texture Projection Problem during Transform

Postby HBHATTI » Fri Jun 04, 2021 2:37 am

HBHATTI Fri Jun 04, 2021 2:37 am
Thanks a million for the help :) Now I have to learn how to do UV mapping lol :D Or I may use object level transform. Appreciate the help
HBHATTI
Licensed Customer
Licensed Customer
 
Posts: 21
Joined: Fri Jun 07, 2019 10:15 pm

Return to Houdini


Who is online

Users browsing this forum: No registered users and 6 guests

Thu Mar 28, 2024 7:22 pm [ UTC ]