Handling of .jpg files
Hello,
I am facing a typical problem in texturing using .jpg files.
As an example, I am first calling an area and then trying to add a texture so as to simulate a different situation.
import vizinfo #For info box
import viztask #For wait time
import vizmat #Matrix in v2.0
import vizact
import math
viz.go()
room = viz.add('panorama.ive')
#Add a texture.
sky = viz.addTexture( 'hall1.jpg' )
#Apply the texture to the object.
room.texture( sky )
Now, I am copying the picture and pasting it to paintbrush, where I am changing the pixel dimensions of the picture and saving it as a hall1.jpg file.
Then, when I am executing my vizard file, it seems to me that the picture is coming as pasted blocks (no matter how much I increase the pixel dimensions of my picture in paintbrush) and the edges formed by pasting of the blocks is making the picture look inappropriate.
If someone can suggest me a way of overcoming this problem, it would be really great.
Thanks
Uttama
|