xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Createblankimage And Other, issues
flattspott
post Oct 17 2004, 07:20 PM
Post #1


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



So I was gonna get back to doing my file manager seeing how the icons are internal now.

The thing is I cant get it to work like the DrawTarget.xas. Instead of a single icon I get a column of icons even when I copy one of the icon lines form the DrawTarget.xas. And sometimes the image is a screwy.

Some goes for CreateBlankImage. It keeps drawing abstract garbage rather then a blank image.

user posted image

This is what made that image:
CODE
MinimumBuild 1236
CreateBlankImage testimage 640 480
Set rot 45
:Loop
SetFunc IsInput IQPeekMsgID
If# %IsInput% != "" Gosub InputHandler
Gosub Draw
Goto Loop

:Draw
BeginDraw
Image testimage 0 0 640 480
Image testimage 300 220 100 100 %rot% -1 -1 -1 -1 50 50
EndDraw
Return

:InputHandler
IQWaitMsg Any
If %MSG_ID% == "UI_BACK" Then
Quit
Else
Add rot 2
EndIf
Return
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
geniusalz
post Oct 18 2004, 01:10 AM
Post #2


Team MXM
*****

Group: Head Moderator
Posts: 1827
Joined: 3-January 03
Member No.: 16298
Xbox Version: v1.1
360 version: unknown



flattspott, in your case you aren't initializing the picture with 'begindrawtarget', so I would say that is normal behaviour for MXM

However, I noticed similar behaviour with tetris for the new build, when using begindrawtarget:

I think the problem is that MXM doesn't clear pictures anymore when using begindrawtarget. I requested it to not clear the picture, but that was meant as another option.

There should be three options:

-Initialize to black (this was normal begindrawtarget)
-Initialize to transparent (this was 'usecurrent')
-Leave as is (this wasn't available before, you could call it 'continuedraw')

So it seems that MXM is doing #3 now, instead of #1, and since it doesn't clear the image, you see garbage. Try it out with tetris.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
BenJeremy
post Oct 18 2004, 02:57 AM
Post #3


X-S Elysian
*************

Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)



Hmmmm... the CreateBlankImage should create a blan (as in ZEROED) image, because you'd want to start with a transparent, empty image.

I'll scan that bit of code as soon as I can to figure out what is happening there.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
BenJeremy
post Oct 20 2004, 03:02 AM
Post #4


X-S Elysian
*************

Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)



Did you try using simply a blank BeginDrawTarget block to initialize the image?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 20th May 2013 - 09:23 AM