Page 1 sur 1

viewing images

Publié : sam. déc. 29, 2018 4:31 am
par belanger
The documentation mentions that you can view an image in a rectangle with, for example,

rectangle(0,200,1/2,gl_texture="filename.jpg")

and on the surface of a sphere with

sphere([0,0,0],1,gl_material=[gl_texture,"filename.jpg"])

Drawing on a sphere works great, but when I enter the rectangle command, the image doesn't appear. I tried with various combinations like

rectangle(0,200,1/2,display=filled, gl_texture="filename.jpg")

and

rectangle(0,200,1/2,display=filled, gl_material=[gl_texture,"filename.jpg"])

etc., with no luck. Either I'm doing something wrong, for some reason it isn't working (but only for rectangles) on my computer, or it's a problem with Xcas.

Any ideas?

Jay

Re: viewing images

Publié : sam. déc. 29, 2018 4:52 pm
par parisse
Indeed, it's a bug introduced when improving Python compatibility. Will be fixed in the next version.