Search the Community
Showing results for tags 'linear'.
Found 4 results
Hello, Can someone please explain to me what a linear vertex is properly? I thought I understood it when I was initially trying with lines but once I applied the function on the grid, everything seems wrong. I understood it as, primvertex points to the point number, so vertex 2 of primitive 1 should return 2 but instead it is returning 6. Not sure why? The same function with lines give me the correct answer.
Knabbelhimself posted a topic in ScriptingHi everybody, I have already posted this question on the SideFX Technical Discussion forum but had no luck so far. Maybe someone here could help me? I am trying to get raw color values from an RGBA .png file with the vex function rawcolormap() but it appears that I can only get pre-multiplied values. When using .tif, color values appear to be correct. I am loading the the image as linear even though it is in gamma 2.2 to prevent gamma conversion. Here is my vex code: vector4 rgba = rawcolormap(chs("texture_map"), U, V, "srccolorspace", "linear"); v@Cd.x = rgba.r; v@Cd.y = rgba.g; v@Cd.z = rgba.b; @Alpha = rgba.a; For testing I have created a simple test image where all color channels have a value of 1.0 and the alpha channel has a gradient from 0 to 1. Please see attached image. Opening the image in Photoshop and Gimp shows unpremultiplied color channels. When using above VEX code, color channels are premultiplied against the alpha channel. And opening the image in Mplay, results are even more confusing. Pixel inspection here shows values that I can only recreate by opening the image (which is in gamma 2.2) defined as linear and then applying a second gamma conversion from linear to sRGB. Does anybody know why this is and how to work around this problem? Thanks to anyone taking an interest. Cheers
Hi, Hope someone can help: Screenshot Left: using "attrib from map", the color is too dark. Screenshot Right: using "UVquickshade", color is ok. How can I get the result on the right using attrib from Map? Thanks in advance for info! Mark
Hey. I have a problem with overwriting values from wire object in SOP Solver. If klinear parameter (Linear Spring Constant) is set to 300 in wire object and then I'm writing inside sopsolver in point wrangle @klinear = 300; just for test, then my simulation looks different, less stabile (?). Why is that happening? This is the same value so it should be the same sim. I was trying to put sopsolver before and after the wire solver and there was the same situation.