viewing images

Messages in english

Modérateur : xcasadmin

belanger
Messages : 59
Inscription : jeu. juil. 27, 2017 3:26 pm

viewing images

Message par belanger » sam. déc. 29, 2018 4:31 am

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

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: viewing images

Message par parisse » sam. déc. 29, 2018 4:52 pm

Indeed, it's a bug introduced when improving Python compatibility. Will be fixed in the next version.

Répondre