SIO2widget change in 1.4?

View previous topic View next topic Go down

SIO2widget change in 1.4?

Post  chondrite on Wed Aug 12, 2009 5:37 pm

Hi,

I'm having trouble rendering a widget with a pixmap (.png, .jpg).

Did anything about this change in v1.4?

I have tried hacking the newest version of tutorial07, but I can't seem to get a 2D pixmap widget to render there either.


Thanks!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: SIO2widget change in 1.4?

Post  sio2interactive on Wed Aug 12, 2009 6:04 pm

Take a look at the garden source for more info, but basically the widgets are similar... no big changes...

_________________
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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: SIO2widget change in 1.4?

Post  chondrite on Wed Aug 12, 2009 6:41 pm

Thanks sio2interactive.

There is definitely something strange going on.

Can you please tell me why this code won't render the widget?

http://pastebin.com/m37db1db6


This code worked fine in v1.3.5.


Thank you!!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: SIO2widget change in 1.4?

Post  sio2interactive on Wed Aug 12, 2009 6:51 pm

where is your sio2TransformBindMatrix??? since you are calling sio2WidgetRender with SIO2_TRANSFORM_MATRIX_BIND?

_________________
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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: SIO2widget change in 1.4?

Post  chondrite on Wed Aug 12, 2009 6:58 pm

SIO2_TRANSFORM_MATRIX_BIND

Where is that set?

I do not want to apply the matrix transform. This is just a static background widget.

That code did work fine on 1.3.5.


Thanks!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: SIO2widget change in 1.4?

Post  sio2interactive on Wed Aug 12, 2009 8:02 pm

Simply call sio2TransformBindMatrix( _SIO2widget->_SIO2transform );

and then call sio2WidgetRender( _SIO2widget, SIO2_TRANSFORM_MATRIX_BIND );

then observe the magic Wink

_________________
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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: SIO2widget change in 1.4?

Post  chondrite on Wed Aug 12, 2009 8:26 pm

Ah, that's better.

Thank you so much my friend.


By the way, for others reading this, sio2interactive forgot one parameter. The correct call is is:

sio2WidgetRender( bg_widget, sio2->_SIO2window, SIO2_TRANSFORM_MATRIX_BIND );


Thanks again!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: SIO2widget change in 1.4?

Post  sio2interactive on Wed Aug 12, 2009 10:32 pm

ouppss! ma'bad, you're right... so many function prototype... can't remember them all heheh Wink

glad its working now Wink

Cheers!

_________________
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 : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: SIO2widget change in 1.4?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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