A weird behaviour of the "Bake LOD"

gaia.clary's picture
Project:Primstar - Blender Scripts for Second Life Sculpties
Version:1.0.0
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When i create a sculptie, i get the LOD template automatically done. When i set the viewer to "Textured" i see this template right on the sculptie. well. When i create a new image in edit mode, the sculptie turns black as expected because the new image contains no data. fine.

Now i bake the LOD template into the new image. The new image receives the data and looks as expected. But the object remains black. When i now enable paint mode in the uv-editor and put a dot somewhere into the image, suddenly the whole texture gets shown on the object.

This effect is attached to the state of the image after the bake LOD has performed. I.e. as soon as i store the texture to disk and then reload it from there, everything works again as expected and the object receives the texture data on its surface again.

Is that a bug or a feature ?

 

Comments

gaia.clary's picture

#1

It looks like we found a patch:

In image_sculptie_lod.py:

def main():
image = Blender.Image.GetCurrent()
if image:
    bake_lod(image)
    image.glFree() #### This line added ####
else:
    Blender.Draw.PupBlock("Sculptie Bake Error", ["No current image"]) 

And in render_sculptie.py (near line 394):

            if image.packed:
                image.pack()
            image.glFree() #### This line added ####
Blender.Redraw()

 

I hope this goes into the right direction...

 

Domino Marama's picture

#2

Status:active» closed

Patch committed, will be in 1.0.1 release. Thanks.

#3

Thanks for helping me to see tihgns in a different light.

Post new comment

Edit issue settings
Note: changing any of these items will update the issue's overall values.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p> <pre>
  • Lines and paragraphs break automatically.
  • Project issue numbers (ex. [#12345]) turn into links automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options