Jump to content

Search the Community

Showing results for tags 'pointcolor'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Found 3 results

  1. Hi everyone, beginner Houdini user here, so sorry if it's an obvious question. My current finger exercise / idea is, to use a texture with areas in clear, distinct colors like (255,0,0) without anti aliasing. These are used to map the colors onto points which then are used to copy specific geometry onto them (buildings and city stuff in my example). This works for the most part, but to have more control over which color gets how many points I split my geometry into separate groups and use a separate scatter for each group (I tried the densitiy attribute before, but everything changing when I change one density value wasn't what I wanted) To achieve this I am using a partition SOP with group by Color. The weird thing is, that I'm not getting the expected number of groups (8 in my case as I'm using 8 colors) but more something around the lines of 200-700. Looking at the Cd values in the geometry spreadsheet shows me, that the values aren't all the correct values (they should be along the lines of 1,0,0 ) but there are interim values, small variations. This of course gets picked up by the partition node. Using an attribpaint SOP gives the expected result...but I would love to be able to draw the textures in external tools like Photoshop. Just nicer to edit the map. Does anyone have an idea how the interim values are created? I suppose it has something to do with the mapping / scaling of the texture / uv.. but I can't figure it out as everything I change, gives the same result (like the filter settings in the attribfrommap SOP). My node setup is like this: Grid -> size 16,9 (I tried different resolutions here too to no avail) UVProject -> Orthographic, 16,16 (and rotated so it has the rotation of the grid) attribfrommap -> Texturemap (a png, 3840 x 3840 px with the 16 by 9 area centered vertically on the map) partition SOP -> Group by Color For my easy test setup I added an attribute wrangle that checked the incoming color values against bordervalues and sets them to the closest correct value. f@lowLimit = .3; f@highLimit = .7; if(@Cd.r > 0 && @Cd.r < @lowLimit) @Cd.r = set(0); if(@Cd.r < 1 && @Cd.r > @highLimit) @Cd.r = set(1); if(@Cd.r < @highLimit && @Cd.r > @lowLimit) @Cd.r = set(.5); if(@Cd.g > 0 && @Cd.g < @lowLimit) @Cd.g = set(0);; if(@Cd.g < 1 && @Cd.g > @highLimit) @Cd.g = set(1);; if(@Cd.g < @highLimit && @Cd.g > @lowLimit) @Cd.g = set(0.5);; if(@Cd.b > 0 && @Cd.b < @lowLimit) @Cd.b = set(0); if(@Cd.b < 1 && @Cd.b > @highLimit) @Cd.b = set(1); if(@Cd.b < @highLimit && @Cd.b > @lowLimit) @Cd.b = set(0.5); This works for my simple case at the moment. But if I was to add more colors the rounding wouldn't work anymore with all the interim values created. Can anyone explain why I get interim values even though the texture itself is not antialiased and in the right aspect ratio? I guess it has something to do with the texture stretching/mapping in houdini but is there a way to fix the problem? Or a better way to achieve this result? I checked some posts in here but most of the proposed solutions I got to work for texture color to point color result in the same interim values Thanks a lot for your help! Cheers, Daniel
  2. Hi, I am trying to calculate the y distance of a cached fluid sim in a tank. and I would like to have a color going from from black at the bottom and white at the top. The idea is to then use this in Mantra to drive the roughness of the transparency or the tint to create an ocean shader. I am trying to do this using a vopsop, I have tried various methods that other people have tried and I can only get it partially right. most of the time it seems to be calculating the distance from the center rather than the Y distance. In the file attached I get the gradient at an angle rather than straight up. I am totally new to this and any help would be appreciated. points_from_volume.hip
  3. I've got a knitting pattern around a object. The color texture is transferred to points. That works fine. But now i want to use the uv map for projection. I want to use the UV map of the inputed object but i don't know how to do this. Can someone help me to get this working? Knit_v0300.hipnc
×