FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to draw pictures of some of the region?

4 posters

Go down

How to draw pictures of some of the region? Empty How to draw pictures of some of the region?

Post  LuisLee Tue May 19, 2009 12:49 am

int SIO2 Engine,How to draw pictures of some of the region? Smile
thanks.

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 37

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  sio2interactive Tue May 19, 2009 1:57 pm

check SIO2widget and tutorial07
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  LuisLee Tue May 19, 2009 7:37 pm

sio2interactive wrote:check SIO2widget and tutorial07

in my demo. I set up a picture of the drawing area. My picture size is 512X512.
_SIO2widget->area->x = 100;
_SIO2widget->area->y = 200;
sio2TransformBindMatrix( _SIO2widget->_SIO2transform );
sio2WidgetRender( _SIO2widget, sio2->_SIO2window, 1 );


but no change. why? Could you help me?

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 37

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  sio2interactive Tue May 19, 2009 8:05 pm

Are you in orthographic mode?
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  LuisLee Tue May 19, 2009 8:14 pm

sio2interactive wrote:Are you in orthographic mode?
I do not know what is orthographic mode.Rolling Eyes
Could you tell me what? Could you tell me what that mode?Shocked
What is the meaning of this?

sio2WindowEnter2D( sio2->_SIO2window,-1.0f, 1.0f );
{
sio2WindowEnterLandscape2D( sio2->_SIO2window );
{
DrawPicture();/////////
}
sio2WindowLeaveLandscape2D( sio2->_SIO2window );
}
sio2WindowLeave2D();

Surprised If it is。I have set up. but it does not work.

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 37

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  sio2interactive Tue May 19, 2009 9:24 pm

Have you called sio2WidgetInit to initialize the widget system?
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  LuisLee Tue May 19, 2009 11:03 pm

sio2interactive wrote:Have you called sio2WidgetInit to initialize the widget system?

Yes I had.

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 37

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  sakrist Thu May 21, 2009 7:32 am

LuisLee wrote:
sio2interactive wrote:check SIO2widget and tutorial07

in my demo. I set up a picture of the drawing area. My picture size is 512X512.
_SIO2widget->area->x = 100;
_SIO2widget->area->y = 200;
sio2TransformBindMatrix( _SIO2widget->_SIO2transform );
sio2WidgetRender( _SIO2widget, sio2->_SIO2window, 1 );


but no change. why? Could you help me?

need

_SIO2widget->_SIO2transform->scl->x = _SIO2image->width;
_SIO2widget->_SIO2transform->scl->y = _SIO2image->height;
sakrist
sakrist

Posts : 23
Join date : 2009-04-28
Age : 36

http://www.developers-life.com

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  LuisLee Fri May 22, 2009 12:25 am


LuisLee

Posts : 85
Join date : 2009-04-26
Age : 37

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  alexanderlonsky Tue Jun 23, 2009 8:08 am

Code:
SIO2stream* widgetStream = sio2StreamOpen("circle0.png", 1);
   if( widgetStream )
   {
      SIO2image* widgetImage = sio2ImageInit( "default" );
      {
            sio2ImageLoad( widgetImage, widgetStream );
In simulator this works, but in device - breaks at sio2ImageLoad in particular - sio2ImageLoadPNG
when I use default16x16.tga from tutorial07 - without problems.
Is it problem with png? Am i have to use tga?

alexanderlonsky

Posts : 24
Join date : 2009-06-11

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  sio2interactive Tue Jun 23, 2009 8:17 am

Make sure you disable png compression within Xcode...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  alexanderlonsky Tue Jun 23, 2009 8:35 am

thanks! it really helped!

alexanderlonsky

Posts : 24
Join date : 2009-06-11

Back to top Go down

How to draw pictures of some of the region? Empty Re: How to draw pictures of some of the region?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum