How to draw pictures of some of the region?

Go down

How to draw pictures of some of the region?

Post  LuisLee on 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 : 31

View user profile

Back to top Go down

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

Post  sio2interactive on Tue May 19, 2009 1:57 pm

check SIO2widget and tutorial07

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

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

Post  LuisLee on 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 : 31

View user profile

Back to top Go down

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

Post  sio2interactive on Tue May 19, 2009 8:05 pm

Are you in orthographic mode?

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

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

Post  LuisLee on 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 : 31

View user profile

Back to top Go down

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

Post  sio2interactive on Tue May 19, 2009 9:24 pm

Have you called sio2WidgetInit to initialize the widget system?

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

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

Post  LuisLee on 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 : 31

View user profile

Back to top Go down

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

Post  sakrist on 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;
avatar
sakrist

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

View user profile http://www.developers-life.com

Back to top Go down

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

Post  alexanderlonsky on 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

View user profile

Back to top Go down

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

Post  sio2interactive on Tue Jun 23, 2009 8:17 am

Make sure you disable png compression within Xcode...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

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

Post  alexanderlonsky on Tue Jun 23, 2009 8:35 am

thanks! it really helped!

alexanderlonsky

Posts : 24
Join date : 2009-06-11

View user profile

Back to top Go down

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