Discussion:
pictures as 2d objects in soya?
Fabio Varesano
2010-12-06 19:17:32 UTC
Permalink
Hi guys,

is it possible to load a picture (eg: jpg or png) in Soya? I'd like to
display it as a simple 2d object (imagine a poster).

I'd like to display the pictures around a sphere which surrounds the
camera.. with the commands the user can rotate the camera and navigate
through the pictures.

Do you think this can be done in Soya?

Thanks,

FV
deavid
2010-12-07 07:23:36 UTC
Permalink
Of course; you should load the images as regular textures (make sure
the size is 2^n for example 1024x512)
and then you should create a face with 4 vertex representing a plane,
and load a material with the texture for that face.
Post by Fabio Varesano
Hi guys,
is it possible to load a picture (eg: jpg or png) in Soya? I'd like to
display it as a simple 2d object (imagine a poster).
I'd like to display the pictures around a sphere which surrounds the
camera.. with the commands the user can rotate the camera and navigate
through the pictures.
Do you think this can be done in Soya?
Thanks,
FV
_______________________________________________
Soya-user mailing list
https://mail.gna.org/listinfo/soya-user
Loading...