Forum

Environment Map Canvas Texture

11 May 2016 12:59
Hi @ll,

is there a way to switch an Environment-Map via API call?
For Image-Map textures there is the render-canvas approach. But that requires to set the texture Export-Option Source-Type to none.
On an Environment-Texture there doesn't seem to be the Export-Option: Source-Type.

Is there a way to tell the Texture-Node that the Canvas-Texture should be interpreted as Environment-Map?
Or is there another way to achieve dynamic EnvMap-Texture loading?

Cheers, Daniel
@ Emotional3D
11 May 2016 17:37
Hi!

is there a way to switch an Environment-Map via API call?
For Image-Map textures there is the render-canvas approach. But that requires to set the texture Export-Option Source-Type to none.
On an Environment-Texture there doesn't seem to be the Export-Option: Source-Type.

Is there a way to tell the Texture-Node that the Canvas-Texture should be interpreted as Environment-Map?
Or is there another way to achieve dynamic EnvMap-Texture loading?

I'm afraid that this isn't possible at the moment. We currently support the "Canvas" source type only for the "Image" textures.
However, we've decided that the possibility to change any texture (even without a canvas) via API would be useful. We intend to implement this feature in the one of the next releases, probably 16.06.
Blend4Web Team
12 May 2016 10:05
That function sounds very useful Ivan!
(In the process - any plans on changing/loading also node-materials via API?)
@ Emotional3D
12 May 2016 10:46
any plans on changing/loading also node-materials via API?
This is more difficult task. We want to expand the functionality of the "inherit_material" method, but we can't tell a date when this will be available.
Blend4Web Team
31 May 2016 18:09
is there a way to switch an Environment-Map via API call?
For Image-Map textures there is the render-canvas approach.
As of 16.05, changing bitmaps is possible for both 2D textures and cubemaps.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.