VEX: colormap and rawcolormap bugged?!

   Views 867   Replies 8   Subscribers 0
User Avatar
Member
1075 posts
Joined: 4月 2017
Offline
Hi!

In my HDA, I was using the colormap function to apply a green leaf texture onto @Cd (points) of my leaf geos. I noticed my geo was pink (@Cd = 1, 0.5, 0.5 ) as if it could not find the texture. I changed the colormap function for a rawcolormap function and now it works!

The very odd thing is I get the opposite problem on another wrangle. Its the rawcolormap that doesnt work but the colormap works... This looks buggy as hell! Does anyone else have the same probleme? I'm on 19.5.

-Olivier
User Avatar
Member
8052 posts
Joined: 9月 2011
Offline
no, but I only use the texture() function.
User Avatar
Member
1075 posts
Joined: 4月 2017
Offline
I just tried the texture function and I still get a pink color but not with colormap. It's very weird.

I ended up patching the problem with:

if(color == set(1, 0.5, 0.5))
    {
    color = colormap(texturePath, v@uv);
    }
Edited by olivierth - 2024年8月15日 11:30:39
User Avatar
Member
8052 posts
Joined: 9月 2011
Offline
olivierth
I just tried the texture function and I still get a pink color but not with colormap. It's very weird.

I ended up patching the problem with:

if(color == set(1, 0.5, 0.5))
    {
    color = colormap(texturePath, v@uv);
    }

are you sure the file exists? what sort of file path is the texture, is it reading it from the OTL section, from disk, or from a network drive?
Edited by jsmack - 2024年8月15日 11:40:49
User Avatar
Member
1075 posts
Joined: 4月 2017
Offline
Its on a network drive. Its an absolute path (not using $OS, $hip, etc.).
User Avatar
Member
8052 posts
Joined: 9月 2011
Offline
olivierth
Its on a network drive. Its an absolute path (not using $OS, $hip, etc.).

A windows network drive, or an NFS network drive on linux? There might be some file access flags you can set to help with windows network drives.
User Avatar
Member
1727 posts
Joined: 3月 2009
Offline
If it's a windows client and the network drive is an SMB share, one might try an UNC path.

For some people, this has helped in the past with certain access issues.
Martin Winkler
money man at Alarmstart Germany
User Avatar
Member
1075 posts
Joined: 4月 2017
Offline
I don't know what type of network drive it is.

What's a UNC path?
User Avatar
Member
1727 posts
Joined: 3月 2009
Offline
If you have a windows client, often your network shares are mounted to a drive letter like "Z:\path\to\texture\sausage.rat". A UNC path works like this: "\\servername\path\to\textures\sausage.rat" (without the quotes)
Martin Winkler
money man at Alarmstart Germany
  • Quick Links