Forum

Author Topic: Building texture  (Read 2417 times)

thuang

  • Newbie
  • *
  • Posts: 11
    • View Profile
Building texture
« on: November 11, 2015, 01:10:19 AM »
Hello,

I've been trying to build textures with default settings and I've tried the following three (with no success):

texture_dict[texture_key] is the chunk that should be building the texture.

Code: [Select]

texture_dict[texture_key].buildUV(mapping = mapping, count = 1)
texture_dict[texture_key].buildTexture(blending = blending , color_correction = color_corr, size = atlas_size)

Code: [Select]
texture_dict[texture_key].buildTexture(blending=PhotoScan.MosaicBlending, size=4096)

Code: [Select]
texture_dict[texture_key].buildTexture(mapping = "adaptive", blending = "mosaic", color_correction = False, size = 4096, count = 1)

What's the correct way to do so?

EDIT: Should I perhaps be doing the second code and adding the buildUV function? (Currently processing right now). Thanks!
« Last Edit: November 11, 2015, 01:15:37 AM by thuang »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14818
    • View Profile
Re: Building texture
« Reply #1 on: November 11, 2015, 01:35:54 AM »
Hello thuang,

And what are the error messages given?

Also there are some variables that are passed as arguments to the function in the first code that are not defined.
Best regards,
Alexey Pasumansky,
Agisoft LLC

thuang

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Building texture
« Reply #2 on: November 11, 2015, 01:49:05 AM »
Hello Alexey!

I got it working with adding the buildUV line:

Code: [Select]
texture_dict[texture_key].buildUV(mapping = mapping, count = 1)
texture_dict[texture_key].buildTexture(blending=PhotoScan.MosaicBlending, size=4096)

Thank you very much! Project is finally done with this  :)