Сообщения, созданные пользователем Aludev
21 марта 2017 11:23

Thanks for the response.
I tried that flag, but didn't work.
I am quite sure it is some kind of bug with this specific GPU.
Damn Chrome, it was going so well…
20 марта 2017 14:06
Hello there,

Just in case you didn't know about this, we have two Mac computers to test B4W and with the latest Chrome update to version 57 one of them does not render WebGL (no demos, not even https://get.webgl.org/).
Both use AMD Radeon HD Graphics cards, the one that works is 6970, the one that doesn't is 6750, which I would say is the only remarkable difference.
It was working perfectly until now, Safari and Firefox still work well.
I just wanted to share the info with you guys, maybe you fint it useful.

Great work with the last release by the way!
16 января 2017 11:04

Indeed, I use the API to change values and RGBs, but we developers always want more
Glad to hear you are planning to work on it, I hope it doesn't cause you guys so much pain as it looks!
13 января 2017 13:44

I know this is an old thread, but the first/main question is exactly what I have been trying to achieve, so I wanted to ask.

The material I want to copy or reuse has a node-tree. The target object has a simple/other material as default. I observed that the inherit_material() function only copies the standard material params to the new object.

Is there anything (or plans to do it) for that?
My main objective is to have a library of objects/scenes to load dynamically, and instead of reexporting them with new materials (kind of heavy work and useless duplication), just export the main environment with a material container, so the rest of the objects can inherit different materials from it.
Exploring the current "inherit_material" function, still copies only simple properties and some fixed textures, nothing about nodes.
It would be nice to have the material container with, for instance, Copper and Velvet, then transfer to new objects as needed.
Any ideas?
05 января 2017 17:32
Wow, well yes, this actually solves it!
As I said, I tried to initialize the slots (they are usually empty), but didn't think they were "erased" from the object because of using the same texture, so I reused the "null.jpg".
Now I have tested using null1, null2, null3…. null7, and respects the 7 slots.
As it is used as a dynamic material, it would be nice to be able to initialize the slots with null/empty textures and a check or something to not optimize them like this.

Anyway, thanks a lot for your help, much appreciate it!
05 января 2017 14:40
I have no need to render the object, it is just a container for the material I later apply to an actual object to render.
The problem is exactly that, the array contains only those 4 texture names instead of the 7 texture slots.
I use those 7 nodes, changing the texture on runtime by name.
I haven't understood why you say there is no need to iterate over them because of similar textures.
¿How can I force it to return every 7 texture slots?
04 января 2017 14:23
I would gladly send you the .blend file used for exporting, so you can take a look at the node material, but that must be private and direct message (sorry, everything about this is company secret, that's why I pay PRO and don't attach examples or screenshots in the first place).

What is the best way to do that?
04 января 2017 10:57

Yes, I use that function too, but still returns an array with 4 texture names instead of 7, like if some slots are missing when exporting, still cannot figure out why.
So when I apply changes to the object materials they lack, for example, diffuse or normal map, depending on what 4 of the 7 texture slots they have (and you can imagine the weird look they present on screen!).
My export process is as follows:
1- I have a base scene with the environment, the camera, …, and the big, multi purpose, Node Material, among other required materials.
2- Import the objects to display from the collection (usually a shoe)
3- Select the materials for the different parts (an script does that depending on the part type)
4- Export the objects as b4w json

I use to start with the texture slots empty, tried to initialize them with null/blank textures, manually assign materials and exporting… still 4 of 7.
I don't know, maybe I have something broken or incompatible.
03 января 2017 20:31

I am in process of updating the engine, and I have a problem with the node materials.
Previously, I used every slot, searching at the object batches, changing the textures as needed.
Now, on exporting, the textures are not named as before (there's no texture.name, but at least I have batch.bpy_tex_names for that), but it is not showing all my texture slots, only 4 of 7, and kind of random between different exports (it doesn't always show the same ones).
I am trying to understand if it is an export problem, something broken with my nodes or if something has changed since many versions ago.
Could you please provide some guidance on what to look for?
10 октября 2016 17:45
Thanks Pavel, I will try those out.
I cannot really share the .blend, as it is considered an enterprise secret, sorry.
That's why I made several screenshots.
Anyway, at least now I know where to start to look at.
I will notify you with the results, so maybe it would help someone else .