Welcome to Citizen Fridays.. well that is the new schedule we are working to hit on our sites. This was the most popular request from our recent survey from ex and current Citizens. So each Friday we will work extra to release new Citizen content. We have prepped our authors to gear up. If you’re not a Citizen, no worries and no need to throw your mouse at the screen. This isn’t affecting our amount of free tutorials/content to hit the site. :)


In this Citizen Exclusive Blender 2.5 video tutorial we will be going over some code that bakes an object’s UV Texture to it’s Vertex Colors.

First we’ll be taking a look at the Add-on’s functionality. After that we’re gonna go ahead and examine the Add-on’s code. Since this is a Code Overview we won’t be writing any code from scratch, but rather take a look at how the script is structured, why it’s structured as it is and how it works; generally explaining what’s going on on a line-by-line basis.

What is covered in this tutorial:
- Demonstration of the Add-on’s functionality.
- Explanation of the Add-on’s code.

You must be logged in to upload images. Register

Discussion

16 Responses to “Exclusive: Code Overview for the Baking UV Textures to Vertex Colors Add-on”
  1. Posts: 66

    Cool! =)

    #
    1
    Sep 30, 2011 at 4:40 pm
  2. Stephen Oravec
    Posts: 4

    Interesting ..

    #
    2
    Sep 30, 2011 at 5:19 pm
  3. Posts: 136

    THX!!

    :D

    #
    3
    Sep 30, 2011 at 5:25 pm
  4. Posts: 13

    Now I want to be a citizen again.

    #
    4
    Sep 30, 2011 at 6:20 pm
    • Posts: 66

      Do it!!

      #
      4.1
      Oct 1, 2011 at 2:35 pm
      • Posts: 13

        I do not know if my parents would let me :( .

        #
        4.1.1
        Oct 1, 2011 at 7:47 pm
  5. Posts: 71

    Thanks Patrick, I have to check this one :-)

    #
    5
    Oct 1, 2011 at 3:52 am
  6. Posts: 5

    Hmm, this is the first video I have not been able to watch on my iPad.

    #
    6
    Oct 2, 2011 at 1:29 am
  7. Posts: 59

    Very nice idea!

    I’ll have to get my Citizenship back soon. ;)

    #
    7
    Oct 2, 2011 at 9:08 am
  8. Posts: 15

    Hello, what would be the possible uses of this add-on in production ? I mean, in which situation would I want to bake images to vertex color ?

    #
    8
    Oct 20, 2011 at 7:19 am
  9. Posts: 4

    Slightly off-topic, but…
    Can someone perhaps suggest an idea about the following:
    – Iterate through the UV coordinates of a source UV layer
    – For each vertex, locate the corresponding ‘real’ vertex (the vertex of the mesh that was projected)
    – Locate the projection of the same ‘real’ vertex on the destination UV layer (find its UV coordinates)
    – Copy the pixel colour from the source UV layer to the destination one.
    In essense, I’m talking about automating the projection painting. Patric’s code in this tutorial seemed a good staring point, and I also looked into the built-in Export UV Layout script, but can’t quite hack it yet…
    Thanks in advance

    #
    10
    Mar 6, 2012 at 6:39 am
  10. xaedro
    Posts: 1

    I upgraded to Firefox 15 and now I have trouble viewing videos, There is a video here? please answer me.

    #
    11
    Sep 6, 2012 at 4:19 pm
    • Posts: 2972

      Yep there should definitely be a video. Is there a flash/ad blocker enabled? Sometimes these cause problems with embedded videos.

      #
      11.1
      Sep 6, 2012 at 4:24 pm
  11. Posts: 2

    Uhh….??? What? That was confusing!

    #
    12
    May 7, 2013 at 7:05 am

Leave a Comment

You must be logged in to post a comment.