ah, I had an error on my side, sorry for confusion, correction: I CAN read 
the new file from Reslav, but it gets a lot of errors. Linas that 
"/userMark/" path, its not me I don't think. (I have no commits in 
"blender_api" yet.. 
Reslav, I'm able to load your changed file, in situ with the rest of the 
folder, using 2.80rc3. The shading and eyes are there, which IS a 
considerable improvement. I wonder though, did you convert all those other 
textures? Also, it complains that the file was written by a later blender, 
so we are not aligned on the blender version. Please see log file attached. 
First let me say, that the Python in blender_api is not upgraded to Python 
3 or whatever, so it won't work properly for sure.. 

With 2.80rc3 I see all those warnings and errors in the log.txt file 
attached. It seems there is still some texture fixing to be done. I wonder, 
did you utilize the "add-on materials" conversion helper to convert them?  
This link shows what to do: https://developer.blender.org/T58420 (there is 
a built in add-on for materials conversion to Cycles.It however needs to be 
done before 2.80 is loaded,  since 2.80 doesn't support the Internal Render 
as I understand. (I hope I'm making sense, I don't understand blender very 
well).
If I am not being clear, lets zoom or something and straighten things out. 
I'm on PST time.

On Saturday, March 5, 2022 at 8:15:33 PM UTC-8 linas wrote:

> On Sat, Mar 5, 2022 at 9:34 PM Mark Wigzell <[email protected]> wrote:
>
>> If I may re-iterate: you can see her looking and working very well if you 
>> run current blender_api repo with the 279b blender. 
>>
>
> When I look at the blender file (using `Blender 2.82 (sub 7)`) I can see 
> that there are file-paths in there, pointing to the right place in the 
> filesystem. (except for one bad path to /user/Mark/something)  
> (single-slash is an absolute path, double-slash is a relative path) If I 
> altered the file-paths, I would get a spew of errors. So I think the 
> textures load from the external files.
>
> --linas  
>
> When I tested Reslav's changes, I only took the blend file to try. I was 
>> under the assumption everything that needed conversion is in that file,
>> for some reason it won't load though. 
>> Regards,
>> --Mark
>>
>> On Sat, Mar 5, 2022 at 7:21 PM Linas Vepstas <[email protected]> wrote:
>>
>>> Also there are snapshots of what she's supposed to look like, when 
>>> things are working correctly, here: here's one for example; 
>>> https://github.com/opencog/blender_api/blob/master/docs/eva2b.png I  
>>> think the current textures are for the one on the right side.
>>>
>>> I feel as if I'm bragging and showing off, but exactly 0% of this is my 
>>> work; it's more like a "see, this is what it looked like 7 years ago" and 
>>> to me, it looks pretty darned good.
>>>
>>> --linas 
>>>
>>> On Sat, Mar 5, 2022 at 9:13 PM Linas Vepstas <[email protected]> 
>>> wrote:
>>>
>>>> Hi Reslav,
>>>>
>>>> On Thu, Mar 3, 2022 at 8:26 AM Reslav Hollos <[email protected]> 
>>>> wrote:
>>>>
>>>>> Hi Mark,
>>>>>
>>>>> I've added "Principled BSDF" node materials and approximated the 
>>>>> values to match the look,
>>>>>
>>>>
>>>> It should not require any "approximation", the skin texture is there, 
>>>> as well as several different eyeball textures.
>>>>
>>>> There's the scary-looking 
>>>> https://github.com/opencog/blender_api/blob/master/textures/eva.COL.png  
>>>> and then a "subdermal" evaSubdermal.COL.png and then some skin gloss 
>>>> texture eva.GLOSS.png and perhaps a skin-transparency (so the subdermal 
>>>> shows through??? guessing wildly) in eva.DISP.png .. there are textures 
>>>> for 
>>>> the inside of her mouth, the eye.png but also eyeCornea.png  and finally, 
>>>> long long eye lashes.png
>>>>
>>>> I spent multiple sessions earlier this week, trying to figure out how 
>>>> to wire it all up and was completely stumped.
>>>>
>>>> I can see that original blender file access these textures.  I can also 
>>>> see many dozens of animations, but again, was stumped as to how to make 
>>>> them run.   I think its important to port these, because they all looked 
>>>> pretty good (to my untrained eye. Certain cough cough sculptors in the 
>>>> house were less than happy.)  The only "major" flaw was that if you used 
>>>> the various viseme animations (visual phonemes) while she's talking, and 
>>>> then made her smile, the mouth would go weird. 
>>>>
>>>> --linas
>>>>  
>>>>
>>>>> except the eye's displacement (if you zoom in really close) which I've 
>>>>> not figured out yet.
>>>>> Shadows/lighting are not tested, I can continue on this in a few days, 
>>>>> but hopefully this would be sufficient for you to start getting some 
>>>>> visuals.
>>>>>
>>>>> The blend file is here 
>>>>> https://github.com/Radivarig/blender_api/blob/update-materials/Eva_nodes.blend
>>>>>
>>>>> Best,
>>>>> Reslav
>>>>>
>>>>>
>>>>> On Wed, Mar 2, 2022 at 5:23 PM Mark Wigzell <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Hi Reslav,
>>>>>> Hey great! Thanks for your help:
>>>>>> In order to see issue:
>>>>>>
>>>>>> git clone https://github.com/opencog/blender_api.git
>>>>>> cd blender_api
>>>>>> blender -y Sophia.blend -P autostart.py
>>>>>>
>>>>>> You can download different blender versions from 
>>>>>> https://download.blender.org/release/
>>>>>> If you use 2.79b it seems to work best. If you use the next version, 
>>>>>> 2.80rc3 you'll see a lot of load errors. 
>>>>>> My actual work on Eva (Sophia.blend), is around getting the existing 
>>>>>> solution to build and run. You can see that here: 
>>>>>> https://github.com/opencog/docker/tree/master/noetic
>>>>>> Try building ros-base, ros-blender and ros-eva containers. Finally 
>>>>>> run the ros-eva container, it comes up using "tmux". There are run 
>>>>>> errors 
>>>>>> in some of the nodes, the webcam image comes up, and the current blender 
>>>>>> (3.?) comes up with Sophia.blend. Of course it looks terrible because 
>>>>>> the 
>>>>>> materials haven't been converted.
>>>>>> I attached an image of the 2.79b running. (If you click the "start 
>>>>>> animation" button on the right, she goes into action.)
>>>>>> Apparently Eva should not have been renamed Sophia.blend, that was a 
>>>>>> mistake 7 years ago or whenever. I'll fix that.
>>>>>> So running Eva in blender with the "blender_api" in the current 
>>>>>> working directory is essential to having the ROS node work properly. And 
>>>>>> having that work properly is essential to debugging the "perception" 
>>>>>> repo, 
>>>>>> which won't work without blender ROS 
>>>>>>
>>>>>>    - There is an issue of python namespace when starting up Eva in 
>>>>>>    blender.  
>>>>>>    - There is also one "cyclic dependency": Dependency cycle 
>>>>>>    detected: deform depends on control through Child Of. control depends 
>>>>>> on 
>>>>>>    deform through Locked Track.
>>>>>>
>>>>>> On Wednesday, March 2, 2022 at 12:01:22 AM UTC-8 [email protected] 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Mark,
>>>>>>>
>>>>>>> Is your current progress available somewhere? I can look into 
>>>>>>> Blender materials.
>>>>>>>
>>>>>>> Best,
>>>>>>> Reslav
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Mar 1, 2022, 18:27 Mark Wigzell <[email protected]> wrote:
>>>>>>>
>>>>>>>> Hey guys, well I have spent a couple of weeks re-building 
>>>>>>>> opencog/docker to Ubuntu 20.04 and ROS "noetic" release, concentrating 
>>>>>>>> on 
>>>>>>>> re-vamping the "eva-ros" container initially. 
>>>>>>>> I ran into various issues with old python code, easily upgraded. 
>>>>>>>> Also some issues with conflicting configuration parameters, I think 
>>>>>>>> those 
>>>>>>>> are all solved or solvable.
>>>>>>>>
>>>>>>>> The issue that has become insurmountable is the change in the 
>>>>>>>> Blender implementation from 2.79b to 2.80rc3. The key change was they 
>>>>>>>> dropped support for the Internal Renderer in favor of Cycles and later 
>>>>>>>> Eevee. 
>>>>>>>>
>>>>>>>> I have tried to convert the textures using the Materials add-on 
>>>>>>>> they supply, but it failed to convert the eyes, and was less than 
>>>>>>>> perfect 
>>>>>>>> on the skin tones as well. If this one issue could be handled by a 
>>>>>>>> skilled 
>>>>>>>> Blender user, we might be able to "save & load" up to the current 
>>>>>>>> Blender 
>>>>>>>> release. 
>>>>>>>>
>>>>>>>> The current Blender release has the distinct advantage that it runs 
>>>>>>>> in an Ubuntu 20.04 docker container "out of the box".  The older 
>>>>>>>> blenders, 
>>>>>>>> including 2.79b do not.  There has been a lot of churn with X11 
>>>>>>>> acceleration, 32bit to 64bit, and the new Wayland support, and the 
>>>>>>>> default 
>>>>>>>> Ubuntu 64bit setup confounds the older blender versions. 
>>>>>>>>
>>>>>>>> With a properly running Blender, the Eva project could be 
>>>>>>>> re-vamped. Is it worth it? All I can convey is my enthusiasm for the 
>>>>>>>> project when I trailed it back from the "Sophia the robot" interviews. 
>>>>>>>> Whilst I understand that basic research into AI learning does not need 
>>>>>>>> the 
>>>>>>>> heavy load of supporting robots or human like interaction, I strongly 
>>>>>>>> believe that having such a teaching example fully functional would do 
>>>>>>>> wonders for the entire field: many people are inspired by the hype 
>>>>>>>> around 
>>>>>>>> AGI and androids, 
>>>>>>>>
>>>>>>>> Providing fledgelings with a setup such as was developed for Eva 
>>>>>>>> would be a powerful kick-off for anyone wanting to dig into the field, 
>>>>>>>> especially young people, who would definitely get a kick out of 
>>>>>>>> running 
>>>>>>>> their prototype AGI hookups in the Eva rig. There IS something 
>>>>>>>> inspirational when she comes to life, breathes, smiles etc. Granted 
>>>>>>>> the rig 
>>>>>>>> is NOT itself a demonstration of AGI, but the hookups back to the 
>>>>>>>> AtomSpace 
>>>>>>>> should allow people to make all sorts of experiments that point in 
>>>>>>>> that 
>>>>>>>> direction.
>>>>>>>>
>>>>>>>> I think the Eva project is a great landing place for enthused 
>>>>>>>> talent. It just needs to get over this current hump, which has 
>>>>>>>> defeated me 
>>>>>>>> at the moment.
>>>>>>>>
>>>>>>>> Perhaps someone in this group has access to some Blender people we 
>>>>>>>> can engage to remedy this situation?
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> --Mark
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>> Groups "opencog" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>>> send an email to [email protected].
>>>>>>>> To view this discussion on the web visit 
>>>>>>>> https://groups.google.com/d/msgid/opencog/CA%2Ba9A7CcAcywy0MqqzjG7uf-zi%2B6OsPvt%2BWiWR2YbH3poarJxg%40mail.gmail.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/opencog/CA%2Ba9A7CcAcywy0MqqzjG7uf-zi%2B6OsPvt%2BWiWR2YbH3poarJxg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "opencog" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/opencog/ccc3368d-10bf-4313-9f3f-d724c5632b44n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/opencog/ccc3368d-10bf-4313-9f3f-d724c5632b44n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Kind regards,
>>>>>
>>>>> Reslav Hollos
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "opencog" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/opencog/CANHDs8ncAzQgtkJE%3D633XKUNstPAv41A7r%2B-AXVuQ13OEVeNZA%40mail.gmail.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/opencog/CANHDs8ncAzQgtkJE%3D633XKUNstPAv41A7r%2B-AXVuQ13OEVeNZA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Patrick: Are they laughing at us?
>>>> Sponge Bob: No, Patrick, they are laughing next to us.
>>>>  
>>>>
>>>>
>>>
>>> -- 
>>> Patrick: Are they laughing at us?
>>> Sponge Bob: No, Patrick, they are laughing next to us.
>>>  
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "opencog" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/opencog/CAHrUA36Ln8NUCOtjSvNJtDfH2L%3DJgnTs6CpdL3o9%3D42yNn%3DJXg%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/opencog/CAHrUA36Ln8NUCOtjSvNJtDfH2L%3DJgnTs6CpdL3o9%3D42yNn%3DJXg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "opencog" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/opencog/CA%2Ba9A7BTegoxpa%2BG_AaAAwyhsAFom4FQHp7kE00_0Vd5OOHLtw%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/opencog/CA%2Ba9A7BTegoxpa%2BG_AaAAwyhsAFom4FQHp7kE00_0Vd5OOHLtw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Patrick: Are they laughing at us?
> Sponge Bob: No, Patrick, they are laughing next to us.
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/854af1dd-be9d-4256-8b53-514151533137n%40googlegroups.com.
mark@confucius:blender_api$ 
../blenders/blender-2.80rc3-linux-glibc217-x86_64/blender -y Eva_nodes.blend -P 
autostart.py
found bundled python: 
/home/mark/Dev/blenders/blender-2.80rc3-linux-glibc217-x86_64/2.80/python
Read blend: /home/mark/Dev/blender_api/Eva_nodes.blend
Error: File written by newer Blender binary (300.42), expect loss of data!
/home/mark/Dev/blender_api/Eva_nodes.blend/loader.py:4: DeprecationWarning: the 
imp module is deprecated in favour of importlib; see the module's documentation 
for alternative uses
Warning: class EVA_OT_debug contains a property which should be an annotation!
/home/mark/Dev/blender_api/rigControl/blenderPlayback.py:267
    assign as a type annotation: EVA_OT_debug.action
register_class(...):
Warning: 'BLRigControl' doesn't contain '_PT_' with prefix & suffix
register_class(...):
Warning: 'BLRigConsole' doesn't contain '_PT_' with prefix & suffix
register_class(...):
Warning: 'BLActuatorControl' doesn't contain '_PT_' with prefix & suffix
Warning: class HR_ACT_Blink_randomly contains a property which should be an 
annotation!
/home/mark/Dev/blender_api/rigControl/actuators.py:116
    assign as a type annotation: HR_ACT_Blink_randomly.parameter_order
Traceback (most recent call last):
  File "/home/mark/Dev/blender_api/Eva_nodes.blend/loader.py", line 15, in 
<module>
    register()
  File "/home/mark/Dev/blender_api/Eva_nodes.blend/loader.py", line 13, in 
register
    rigControl.init()
  File "/home/mark/Dev/blender_api/rigControl/__init__.py", line 47, in init
    animationManager.init()
  File "/home/mark/Dev/blender_api/rigControl/animationManager.py", line 617, 
in init
    bpy.evaAnimationManager = AnimationManager()
  File "/home/mark/Dev/blender_api/rigControl/animationManager.py", line 81, in 
__init__
    self.actuatorManager = ActuatorManager()
  File "/home/mark/Dev/blender_api/rigControl/actuators.py", line 94, in 
__init__
    actuator.generator.send(None)
  File "/home/mark/Dev/blender_api/artistic/actuators.py", line 29, in 
blink_randomly
    get=lambda _: '{:0.3f}s'.format(interval)))
  File "/home/mark/Dev/blender_api/rigControl/actuators.py", line 65, in 
add_parameter
    getter, setter = self.register_parameter(self.name, bl_prop)
  File "/home/mark/Dev/blender_api/rigControl/actuators.py", line 129, in 
register_parameter
    bltype_act = getattr(bpy.types, 
'HR_ACT_{}'.format(actuator_name.capitalize()))
AttributeError: 'RNA_Types' object has no attribute 'HR_ACT_Blink_randomly'
add_relation(Bone Parent) - Could not find op_from (ComponentKey(OBdeform, 
BONE, 'Nose'))
add_relation(Bone Parent) - Failed, but op_to 
(ComponentKey(OBWGT-eyelid_U.R.001, TRANSFORM)) was ok
find_node_operation: Failed for (BONE_DONE, '')
add_relation(Action) - Could not find op_from (OperationKey(type: BONE, 
component name: 'CYC-sleep', operation code: BONE_DONE))
add_relation(Action) - Failed, but op_to (OperationKey(type: BONE, component 
name: 'eye_L', operation code: BONE_CONSTRAINTS)) was ok
find_node_operation: Failed for (BONE_DONE, '')
add_relation(Action) - Could not find op_from (OperationKey(type: BONE, 
component name: 'CYC-normal', operation code: BONE_DONE))
add_relation(Action) - Failed, but op_to (OperationKey(type: BONE, component 
name: 'eye_L', operation code: BONE_CONSTRAINTS)) was ok
Dependency cycle detected:
  OBdeform/head/BONE_CONSTRAINTS() depends on
  OBcontrol/head_target/BONE_DONE() via 'Child Of'
  OBcontrol/head_target/BONE_READY() via 'Ready -> Done'
  OBcontrol/head_target/BONE_CONSTRAINTS() via 'Constraints -> Ready'
  OBdeform/DEF-head/BONE_DONE() via 'Locked Track'
  OBdeform/DEF-head/BONE_READY() via 'Ready -> Done'
  OBdeform/DEF-head/BONE_POSE_PARENT() via 'Pose -> Ready'
  OBdeform/head-target/BONE_DONE() via 'Parent Bone -> Child Bone'
  OBdeform/head-target/BONE_READY() via 'Ready -> Done'
  OBdeform/head-target/BONE_CONSTRAINTS() via 'Constraints -> Ready'
  OBdeform/head/BONE_DONE() via 'Locked Track'
  OBdeform/head/BONE_READY() via 'Ready -> Done'
  OBdeform/head/BONE_CONSTRAINTS() via 'Constraints -> Ready'
Detected 1 dependency cycles
ERROR (bke.object): 
/home/sources/blender-release/source/blender/blenkernel/intern/object.c:2295 
ob_parbone: Object WGT-eyelid_U.R.001 with Bone parent: bone Nose doesn't exist
ERROR (bke.anim_sys): 
/home/sources/blender-release/source/blender/blenkernel/intern/anim_sys.c:4148 
BKE_animsys_eval_driver: invalid driver - 
pose.bones["blink_duration"]["prop"][0]
Traceback (most recent call last):
  File "/home/mark/Dev/blender_api/rigControl/blenderPlayback.py", line 34, in 
execute
    self._timer = wm.event_timer_add(1/self._maxFPS, context.window)
TypeError: WindowManager.event_timer_add(): required parameter "window" to be a 
keyword argument!

location: 
/home/mark/Dev/blenders/blender-2.80rc3-linux-glibc217-x86_64/2.80/scripts/modules/bpy/ops.py:201

location: 
/home/mark/Dev/blenders/blender-2.80rc3-linux-glibc217-x86_64/2.80/scripts/modules/bpy/ops.py:201
Error: Traceback (most recent call last):
  File "/home/mark/Dev/blender_api/rigControl/blenderPlayback.py", line 34, in 
execute
    self._timer = wm.event_timer_add(1/self._maxFPS, context.window)
TypeError: WindowManager.event_timer_add(): required parameter "window" to be a 
keyword argument!

location: 
/home/mark/Dev/blenders/blender-2.80rc3-linux-glibc217-x86_64/2.80/scripts/modules/bpy/ops.py:201

Traceback (most recent call last):
  File "/home/mark/Dev/blender_api/autostart.py", line 9, in <module>
    bpy.ops.wm.global_timer()
  File 
"/home/mark/Dev/blenders/blender-2.80rc3-linux-glibc217-x86_64/2.80/scripts/modules/bpy/ops.py",
 line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
  File "/home/mark/Dev/blender_api/rigControl/blenderPlayback.py", line 34, in 
execute
    self._timer = wm.event_timer_add(1/self._maxFPS, context.window)
TypeError: WindowManager.event_timer_add(): required parameter "window" to be a 
keyword argument!

location: 
/home/mark/Dev/blenders/blender-2.80rc3-linux-glibc217-x86_64/2.80/scripts/modules/bpy/ops.py:201

Reply via email to