Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / get image

Author
Message
pcRaider
16
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 8th Nov 2008 11:28
GET IMAGE Image Number, Left, Top, Right, Bottom, Texture Flag
Texture Flag 0 is bad.
First is good.
Next is bad.
-
sample code

pcRaider
16
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 8th Nov 2008 11:52 Edited at: 8th Nov 2008 11:53
version is 71b4 and 66b

Attachments

Login to view attachments
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th Nov 2008 13:02
What's the problem exactly?

You say "first is good" and "next is bad".

Does that mean U7.1b4 is good (since that is first) and U6.6 is bad?

It would help if you said precisely what the problem is.

Anyway, I can confirm this. If you save image 20 after the loop the saved version is 1024x128 when the flag is zero, i.e. the image is stretched to the next power of two in both coordinate directions. This is correct.

Similarly, when the flag is 1 you get no stretching and the saved image is 600x100 which is also correct.

However, the paste image command uses the unstretched version in each case.

If you load the saved image back and paste that you'll get the correct behaviour as illustrated below (you can just see the stretched version at the bottom of the window):

pcRaider
16
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 8th Nov 2008 13:41 Edited at: 8th Nov 2008 13:42
My problem,
In screenshot, it is for bottom and the upper part to be different.
"1000 and 1001" are different.

I thought that 1000 was good,
Therefore,
The first time is good.
The next time is bad.
The version tested it in 71b4 and 66b4. It was the same.
Mini Malistix
18
Years of Service
User Offline
Joined: 6th Mar 2006
Location: @home
Posted: 10th Nov 2008 08:57
pcRaider, when you use the texture flag 0 and change the line:

GET IMAGE 20,0,0,600,100,0
to:
GET IMAGE 20,0,0,512,128,0

is there any stretching anymore?

I believe the texture flag 0 needs image sizes like 128,256,512,1024.. and so on
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Nov 2008 13:21
Quote: "is there any stretching anymore?"


You could see for yourself. There shouldn't be of course.

Quote: "I believe the texture flag 0 needs image sizes like 128,256,512,1024.. and so on"


That would be totally pointless of course - since no stretching would be needed in that case.

GET IMAGE 20,0,0,600,100,0

should produce an image 1024x128 pixels in size. It does, but only for the saved copy not for the copy used by the paste image command. They should be the same.

Read the thread again.

Why hasn't this been confirmed yet??
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Jul 2010 15:14 Edited at: 22nd Jul 2010 16:08
This bug has NOT been fixed.

I've just encountered it again today. I'll edit this post with a simple demo soon.

Edit I'll post my demo as a new bug as it may be a slightly different issue.
pcRaider
16
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 3rd Aug 2010 13:57 Edited at: 3rd Aug 2010 13:57
Quote: "This bug has NOT been fixed."

Yes,Not Fixed for U75

testcode


I attach screenshot.

Attachments

Login to view attachments
James H
16
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 4th Aug 2010 18:36
Er...it works fine if you delete image 20 before you regrab image 20 each loop. Or is it meant to not matter?
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 4th Aug 2010 21:37
It doesn't matter - and it doesn't work fine.

Try this variation of pcraider's code and compare what you see on screen with what you should get as shown in the two saved files. I think this IS the same bug as the one I reported recently. So if it was fixed it's been broken again.

Login to post a reply

Server time is: 2024-04-16 19:20:17
Your offset time is: 2024-04-16 19:20:17