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.

SIO2widget change in 1.4?

2 posters

Go down

SIO2widget change in 1.4? Empty SIO2widget change in 1.4?

Post  chondrite 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

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  sio2interactive 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...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  chondrite 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

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  sio2interactive Wed Aug 12, 2009 6:51 pm

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

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

http://sio2interactive.com

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  chondrite 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

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  sio2interactive 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
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  chondrite 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

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  sio2interactive 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!
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

SIO2widget change in 1.4? Empty Re: SIO2widget change in 1.4?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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