Jump to content
thetrooper

Object helpers and setObjectTexture image

Recommended Posts

Hi all, Trying to get an image onto a  User Texter. There are three sizes 10m, 1m and 1x2m. I can't get any of them to work at the moment. I'm guessing there are strict sizs the images need to be in order for the following to work?

 

board setObjectTexture [0, "sign1.jpg"];

Share this post


Link to post
Share on other sites

AFAIK the image needs to be rectangular, a power of 2 and paa or tga file (png could also work, but not sure right now).

 

And try a generic color for testing: 

_obj setObjectTexture [0, "#(rgb,8,8,3)color(1,0,0,1)"];

Share this post


Link to post
Share on other sites

Works fine with a random sized jpg here.

Make sure you're looking at it from correct direction, ie. from behind.

Share this post


Link to post
Share on other sites

Yep, all handy tips, thanks everyone. Also helps facing the right way, this is solved

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×