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.py
licht-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.obj
cube-problem-1.obj
and cube-problem-1.mtlcube-problem-1.mtl
- Now I change the scene by changing the color of the six area lights, I change the varycolor
varycolor
parameter to TrueTrue
(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