Adding textures to primitives


#1

This might be a very dumb question, but how does one add textures to primitives? Models seem to have a texture field and primitives do not and only seem to have a color field. What am I missing?


#2

Nothing. Currently primitives are untexturable by normal conventions. You either have to write a shader or use other means (like the blender add on’s import feature ,) there is a material setup system in the works though


#3

humbletim was showing me a method using shaders but it seems too complicated for its own good at this time. Was just trying to cover up an ugly model in a house that I do not have the .fbx file of.

Shader: http://192.241.189.145:8083/hifi/easter-egg.frag#jep839pa

{
  "ProceduralEntity": {
    "version": 2,
    "shaderUrl": "http://192.241.189.145:8083/hifi/easter-egg.frag#jep839pa",
    "uniforms": {
      "uvscale": [
        1,
        1
      ],
      "specular": [
        0,
        0,
        0
      ],
      "shininess": 75,
      "emit": 0
    },
    "channels": [
      "http://hdwarena.com/wp-content/uploads/2017/11/Free-Trippy.jpg"
    ]
  },
  "grabbableKey": {
    "wantsTrigger": true
  }
}

my hack: https://gist.githubusercontent.com/technotherion/aa34a8d705d76cd61318148d39acdb62/raw/b33e2d454e83f1412ba48ec95c79730267672194/easter-egg.frag