Author |
Message |
Schaef
|
Posted: Mon May 03, 2004 1:30 pm Post subject: problems using rendered frames from Maya |
|
|
I rendered about 400 frames from Maya into .jpg files and when i run it on turing i get to about line 45 and then it tells me that the picture could not be created.. is this just cuz turing is a piece of crap or am i doing something wrong?? Ive tried using Pic.Free but it doesnt help. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Mazer
|
Posted: Mon May 03, 2004 2:03 pm Post subject: (No subject) |
|
|
Could you tell us what's happening on line 45? Has it already drawn some of the pictures? If not, they probably weren't created (ie, a bad path name was given when you called Pic.FileNew). |
|
|
|
|
|
Schaef
|
Posted: Mon May 03, 2004 2:05 pm Post subject: (No subject) |
|
|
All i am doing is a little 3d text animation.. it's drawn all of the frames up to then but then it just stops working and gives me an error. |
|
|
|
|
|
Delos
|
Posted: Mon May 03, 2004 2:41 pm Post subject: (No subject) |
|
|
A little code please? |
|
|
|
|
|
Tony
|
Posted: Mon May 03, 2004 2:58 pm Post subject: (No subject) |
|
|
you probably took up the entire memor dedicated to images. You can have a max of 1000 image IDs and I'm not sure on total memory size available. Use
to clear the momery after image is no longer needed |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Schaef
|
Posted: Mon May 03, 2004 5:19 pm Post subject: (No subject) |
|
|
i did try it.. read my first post. |
|
|
|
|
|
Mazer
|
Posted: Mon May 03, 2004 5:22 pm Post subject: (No subject) |
|
|
Schaef, show us the code that's causing you problems. |
|
|
|
|
|
Schaef
|
Posted: Mon May 03, 2004 5:46 pm Post subject: (No subject) |
|
|
var pic:array 1..100 of int
pic(1):=Pic.FileNew("pic1.jpg")
pic(2):=Pic.FileNew("pic2.jpg")
pic(3):=Pic.FileNew("pic3.jpg")
pic(4):=Pic.FileNew("pic4.jpg")
pic(5):=Pic.FileNew("pic5.jpg")
pic(6):=Pic.FileNew("pic6.jpg")
pic(7):=Pic.FileNew("pic7.jpg")
pic(8):=Pic.FileNew("pic8.jpg")
pic(9):=Pic.FileNew("pic9.jpg")
pic(10):=Pic.FileNew("pic10.jpg")
% this continues for a while
for i:1..100
Pic.Draw(pic(i), 0, 0, 0)
Pic.Free(pic(i))
end for |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Paul
|
Posted: Mon May 03, 2004 5:58 pm Post subject: (No subject) |
|
|
um... can't u do this?
code: |
var name: string
var pic: array 1..100 of int
for a: 1..100
name:= "pic"+intstr(a)+".jpg"
pic(a):=Pic.FileNew (name)
end for
|
instead of using 100 pic.FileNew statements? |
|
|
|
|
|
Mazer
|
Posted: Mon May 03, 2004 6:01 pm Post subject: (No subject) |
|
|
Schaef, could you give us the exact line of code that gives you the error? From what I see all I could guess is that one of the filenames are wrong or something. |
|
|
|
|
|
Schaef
|
Posted: Mon May 03, 2004 6:04 pm Post subject: (No subject) |
|
|
lol thx i didnt know about that b4.. |
|
|
|
|
|
Schaef
|
Posted: Mon May 03, 2004 6:08 pm Post subject: (No subject) |
|
|
this is what i have
View.Set ("graphics:max;max, nobuttonbar")
var name: string
var a:array 1..100 of int
for b:1..100
name:= "pic"+intstr(b)+".jpg"
a(b):=Pic.FileNew(name)
end for
for i:1..100
Pic.Draw (a(i), 0, 0, 0)
Pic.Free(a(i) )
end for
it gives me the error on the Pic.Draw line.. |
|
|
|
|
|
Mazer
|
Posted: Mon May 03, 2004 6:14 pm Post subject: (No subject) |
|
|
As I suspected. Make sure the filename is correct (ie, the file is pic1.jpg and not pic01.jpg or pic001.jpg), and make sure the pictures are in the same directory as the turing file. |
|
|
|
|
|
Schaef
|
Posted: Mon May 03, 2004 6:22 pm Post subject: (No subject) |
|
|
well when u render frames in maya it automatically adds the numbers to the end of the filename so that cant b the problem.. i think it is somehow running out of memory and i dont know why.. |
|
|
|
|
|
Schaef
|
Posted: Mon May 03, 2004 6:23 pm Post subject: (No subject) |
|
|
could it have anything to do with the fact that i have the pics set to 1024x768 resolution? |
|
|
|
|
|
|