Page 1 of 2

Paint Stencil in 3D view

PostPosted: Thu Nov 27, 2008 6:59 am
by tobiasniva
I´ve followed this wiki http://guildofwriters.com/wiki/GLSL_Stencilling and have some trouble;

When I try to paint my stencil in 3D view I just seem to access/paint the first layer (the base, topmost in the texture list). It works fine if I select the stencil in UV/Image view, and paint there. It updates on the fly in the 3D view...but it´s quite annoying that I can´t reach/paint on the stencil there. Quite sure I´m missing some basic stuff here (really new to Blender) but I post here if someone know of any wierd stuff like this accuring.

PS. I have checked the Blender GLSL Materials in the Game-menu as well...

Re: Paint Stencil in 3D view

PostPosted: Thu Nov 27, 2008 11:41 pm
by ardent red
Ah, so you can't paint in the 3D window... hmm. Are you sure that your viewmode is set to textured? To check, press alt-z then try to paint. You can tell if you're in this mode if you can see the icon in the right of this picture: Image

Re: Paint Stencil in 3D view

PostPosted: Fri Nov 28, 2008 3:35 am
by tobiasniva
No...I CAN paint in the 3D view - just not on the right layer. I must be missing something basic here...I just want to be able to paint on the stencil-layer like I can do in the UV/Image view.

Re: Paint Stencil in 3D view

PostPosted: Fri Nov 28, 2008 10:24 am
by boblishman
ok...this is important ... took me a while to get the gist of it ....

to quote from the Blender website ...

"Getting Started
Once you have un-wrapped your model to a UV Texture, you have to:

Load an image into the UV/Image Editor (Image->Open->select file) , or
Create a new image (Image->New->specify size) and saved it to a file (Image->Save->specify file).
You cannot paint on a mesh in Texture Paint mode without first unwrapping your mesh, and doing one of the above steps. After you have done these two things, you can modify the image using the Texture Paint mode. Once you do:
In the 3D View window, select Texture Paint mode from the mode selector in the window header, and you can paint directly onto the mesh.
In the UV/Image Editor window, enable Texture Painting in the Image menu
In the UV/Image Editor header, click the magic pencil ... "

remember also to select the UV layer for the STENCIL in the mesh tab ....

meshpaint.jpg
meshpaint.jpg (130.18 KiB) Viewed 3974 times



the full intructions are HERE

Re: Paint Stencil in 3D view

PostPosted: Fri Nov 28, 2008 2:12 pm
by boblishman
oh ... and double check which image you have loaded into the UV window ... you may think you have the correct stencil loaded into it ... but check the available images anyways ... ;)

Re: Paint Stencil in 3D view

PostPosted: Fri Nov 28, 2008 3:03 pm
by Grogyan
I thought maybe creating a new UV layer in the editing buttons F9, would have been what you're after.

But Bob is correct

Re: Paint Stencil in 3D view

PostPosted: Sun Nov 30, 2008 3:14 pm
by Nadnerb
Yes, bob has it. It doesn't matter what layer you have selected in the Materials panel when you want to paint on a certain texture. What controls this is which UV Texture you have selected in the Mesh panel. :)

Re: Paint Stencil in 3D view

PostPosted: Sun Nov 30, 2008 5:12 pm
by tobiasniva
Ok...I´m new to Blender, so I´m quite confused. Especially regarding the materials and selection of these.
Anyway, I was able to get this to work;

I don´t get the thing about having multiple UV Textures (I assume this is what I as a 3DS Max user refers to as UV coords?) since I want all three textures to use the same coords (at least in this test).
The way I was able to select and switch between the layers affected was this:

- Select model in Texture Paint mode
- Press Tab to enter Edit Mode
- In UV/Image Editor, select the texture I want to edit
- Press Tab to exit Edit Mode and return to Texture Paint mode

Thanx everyone for helping me out with this.

Re: Paint Stencil in 3D view

PostPosted: Mon Dec 01, 2008 12:16 am
by ardent red
What everyone is referring to as 'UV textures' can be found here:
Image

They are each different sets of UV co-ords

EDIT: that picture was hopelessly small. a larger, more useful one is attached
EDIT2: two more images have been attached. these show the locations of the things Grogyan is explaining.

Re: Paint Stencil in 3D view

PostPosted: Mon Dec 01, 2008 12:27 am
by Grogyan
Confusing I know

Its all pretty well covered here
Using_stencils

Edit, never mind, Ardent Red has shown you how to paint on the correct layer, the buttons to the left show which texture show in 3D view
The layers you paint on are vertex colours, they are below the UV texture coordinate layers