Skip to main content
Improve formatting and fix typos
Source Link

I'm encountering a problem. As, as usual I tried to make it smaller and smaller untilluntil I would reach a point where it becomes clear what I've done wrong and after repairing that I rebuild. 

But now I run into something I actually don't understand well enough. Let me start from the beginning:

I trying to create an object with Blender that is suitable for use on a 3D-printer. At one point I loose the color I've put via the lamp. Attached the Blender-file stripped of all unecessaryunnecessary things down to the point I think is the core problem.

  • usedUsed Blender v.2.77a, platform Mac OS X;
  • startedStarted with the default cube, fresh reload;
  • I set the screen layout to scripting (because I use it later on)
  • nextNext I open up a new window, set this to UV/Image-editor;UV/Image-editor;
  • inIn the 3D-View3D-View, I selected the default cube, go into edit mode, select all;
  • thenThen I unwrap the default cube, I used the "Smart UV Project"Smart UV Project, this shows a map (unwrap) of the cube;
  • inIn the UV-editorUV-Editor window I choose image, opened the image (prepared before in Photoshop, a sixfold copy of the same image, saved as Hazel2Cube.png);
  • inIn the 3D-view3D-view in Viewport ShadingViewport Shading I select the "Texture"Texture option
  • toTo light the object I've placed six area lamps, each parallel to one of the sides. I used a very small python script for this, licht-basis.pylicht-basis.py, go to the editor window open file "licht-basis.py"licht-basis.py and run it via the run script button (once). When I project white light here (RGB colors 1, 1, 1) this shows as a crisp and clear object. I can export this cube to a Wavefront .OBJ file, open it in another program (e.g. MeshLab) and it looks good;
  • thisThis can be seen in file: cube-problem-1.blend;cube-problem-1.blend;
  • andAnd I can export it to a wavefront file, see files: cube-problem-1.objcube-problem-1.obj and cube-problem-1.mtlcube-problem-1.mtl
  1. Now I change the scene by changing the color of the six area lights, I change the varycolorvarycolor parameter to True True (last line in the editor window and immediately I see the result, but exporting this does NOT show these additional colors, the system uses the Blender and built-in Texture rendering by default. This can be seen in file: cube-problem-2.blendcube-problem-2.blend, after exporting to a second set of files and comparing the files cube-problem-1.objcube-problem-1.obj and cube-problem-2.objcube-problem-2.obj only differ in the name and referencing to the .mtl-files. It seems that ththe color of the light is left out when exporting.

Files: cube-problem-1.blend cube-problem-2.blend Hazel2Cube.png licht-basis.py cube-problem-1.obj cube-problem-1.mtl cube-problem-2.obj cube-problem-2.mtl PROBLEM.txt - this text

cube-problem-1.blend
cube-problem-2.blend
Hazel2Cube.png
licht-basis.py
cube-problem-1.obj
cube-problem-1.mtl
cube-problem-2.obj
cube-problem-2.mtl
PROBLEM.txt     - this text

I'm encountering a problem. As usual I tried to make it smaller and smaller untill I would reach a point where it becomes clear what I've done wrong and after repairing that I rebuild. But now I run into something I actually don't understand well enough. Let me start from the beginning:

I trying to create an object with Blender that is suitable for use on a 3D-printer. At one point I loose the color I've put via the lamp. Attached the Blender-file stripped of all unecessary things down to the point I think is the core problem.

  • used Blender v.2.77a, platform Mac OS X;
  • started with the default cube, fresh reload;
  • I set the screen layout to scripting (because I use it later on)
  • next I open up a new window, set this to UV/Image-editor;
  • in the 3D-View, I selected the default cube, go into edit mode, select all;
  • then I unwrap the default cube, I used the "Smart UV Project", this shows a map (unwrap) of the cube;
  • in the UV-editor window I choose image, opened the image (prepared before in Photoshop, a sixfold copy of the same image, saved as Hazel2Cube.png);
  • in the 3D-view in Viewport Shading I select the "Texture" option
  • to light the object I've placed six area lamps, each parallel to one of the sides. I used a very small python script for this, licht-basis.py, go to the editor window open file "licht-basis.py" and run it via the run script button (once). When I project white light here (RGB colors 1, 1, 1) this shows as a crisp and clear object. I can export this cube to a Wavefront .OBJ file, open it in another program (e.g. MeshLab) and it looks good;
  • this can be seen in file: cube-problem-1.blend;
  • and I can export it to a wavefront file, see files: cube-problem-1.obj and cube-problem-1.mtl
  1. Now I change the scene by changing the color of the six area lights, I change the varycolor parameter to True (last line in the editor window and immediately I see the result, but exporting this does NOT show these additional colors, the system uses the Blender and built-in Texture rendering by default. This can be seen in file: cube-problem-2.blend, after exporting to a second set of files and comparing the files cube-problem-1.obj and cube-problem-2.obj only differ in the name and referencing to the .mtl-files. It seems that th color of the light is left out when exporting.

Files: cube-problem-1.blend cube-problem-2.blend Hazel2Cube.png licht-basis.py cube-problem-1.obj cube-problem-1.mtl cube-problem-2.obj cube-problem-2.mtl PROBLEM.txt - this text

I'm encountering a problem, as usual I tried to make it smaller and smaller until I would reach a point where it becomes clear what I've done wrong and after repairing that I rebuild. 

But now I run into something I actually don't understand well enough. Let me start from the beginning:

I trying to create an object with Blender that is suitable for use on a 3D-printer. At one point I loose the color I've put via the lamp. Attached the Blender-file stripped of all unnecessary things down to the point I think is the core problem.

  • Used Blender v.2.77a, platform Mac OS X;
  • Started with the default cube, fresh reload;
  • I set the screen layout to scripting (because I use it later on)
  • Next I open up a new window, set this to UV/Image-editor;
  • In the 3D-View, I selected the default cube, go into edit mode, select all;
  • Then I unwrap the default cube, I used the Smart UV Project, this shows a map (unwrap) of the cube;
  • In the UV-Editor window I choose image, opened the image (prepared before in Photoshop, a sixfold copy of the same image, saved as Hazel2Cube.png);
  • In the 3D-view in Viewport Shading I select the Texture option
  • To light the object I've placed six area lamps, each parallel to one of the sides. I used a very small python script for this, licht-basis.py, go to the editor window open file licht-basis.py and run it via the run script button (once). When I project white light here (RGB colors 1, 1, 1) this shows as a crisp and clear object. I can export this cube to a Wavefront .OBJ file, open it in another program (e.g. MeshLab) and it looks good;
  • This can be seen in file: cube-problem-1.blend;
  • And I can export it to a wavefront file, see files: cube-problem-1.obj and cube-problem-1.mtl
  1. Now I change the scene by changing the color of the six area lights, I change the varycolor parameter to True (last line in the editor window and immediately I see the result, but exporting this does NOT show these additional colors, the system uses the Blender and built-in Texture rendering by default. This can be seen in file: cube-problem-2.blend, after exporting to a second set of files and comparing the files cube-problem-1.obj and cube-problem-2.obj only differ in the name and referencing to the .mtl-files. It seems that the color of the light is left out when exporting.

Files:

cube-problem-1.blend
cube-problem-2.blend
Hazel2Cube.png
licht-basis.py
cube-problem-1.obj
cube-problem-1.mtl
cube-problem-2.obj
cube-problem-2.mtl
PROBLEM.txt     - this text
added 2 characters in body
Source Link
Wim
  • 137
  • 2
  • 9

Thanks for at least reading this!

Regards, Wim.

Thanks for at least reading this!

Regards, Wim.

Source Link
Wim
  • 137
  • 2
  • 9

A light rendering problem or an export problem?

I'm encountering a problem. As usual I tried to make it smaller and smaller untill I would reach a point where it becomes clear what I've done wrong and after repairing that I rebuild. But now I run into something I actually don't understand well enough. Let me start from the beginning:

I trying to create an object with Blender that is suitable for use on a 3D-printer. At one point I loose the color I've put via the lamp. Attached the Blender-file stripped of all unecessary things down to the point I think is the core problem.

What I did basically:

  • used Blender v.2.77a, platform Mac OS X;
  • started with the default cube, fresh reload;
  • I set the screen layout to scripting (because I use it later on)
  • next I open up a new window, set this to UV/Image-editor;
  • in the 3D-View, I selected the default cube, go into edit mode, select all;
  • then I unwrap the default cube, I used the "Smart UV Project", this shows a map (unwrap) of the cube;
  • in the UV-editor window I choose image, opened the image (prepared before in Photoshop, a sixfold copy of the same image, saved as Hazel2Cube.png);
  • in the 3D-view in Viewport Shading I select the "Texture" option
  • to light the object I've placed six area lamps, each parallel to one of the sides. I used a very small python script for this, licht-basis.py, go to the editor window open file "licht-basis.py" and run it via the run script button (once). When I project white light here (RGB colors 1, 1, 1) this shows as a crisp and clear object. I can export this cube to a Wavefront .OBJ file, open it in another program (e.g. MeshLab) and it looks good;
  • this can be seen in file: cube-problem-1.blend;
  • and I can export it to a wavefront file, see files: cube-problem-1.obj and cube-problem-1.mtl

The cube shows with the selected image on all sides, just open the attached .blend file to see this. So far, so good.

Problems:

  1. Now I change the scene by changing the color of the six area lights, I change the varycolor parameter to True (last line in the editor window and immediately I see the result, but exporting this does NOT show these additional colors, the system uses the Blender and built-in Texture rendering by default. This can be seen in file: cube-problem-2.blend, after exporting to a second set of files and comparing the files cube-problem-1.obj and cube-problem-2.obj only differ in the name and referencing to the .mtl-files. It seems that th color of the light is left out when exporting.

So is this an exporting problem or something that goes wrong in the render?

  1. Trying to use a more explicit render, I tried both the Blender and the Cycles, used viewport shading to rendering, they start, run for a few seconds (7?) and show "Done". In the 3D-view I see the lamp colors (although faintly, but they are there) But no image. Saving it in .obj shows the image again without the lamp colors, identical to the other files.

What am I doing wrong here?

How can I combine an image with other colors like the lamps here?

Files: cube-problem-1.blend cube-problem-2.blend Hazel2Cube.png licht-basis.py cube-problem-1.obj cube-problem-1.mtl cube-problem-2.obj cube-problem-2.mtl PROBLEM.txt - this text

(I tried to attach all files, but failed in doing that...)