Tutorial 06 - Selecting an Object
3 posters
Tutorial 06 - Selecting an Object
I'm trying to make my code select an object and just update a integer when the object is selected, so not change the material of the object. I figure that the selected object is being re-drawn as a new instance, and in the tutorial there is a comment that says that SIO2 will remember the last drawn material - is there a way to call the material of my existing object and have the "selection" object use that material when rendered?
Re: Tutorial 06 - Selecting an Object
Check tutorial06_1
Double Tap: Select the object
Triple Tap: Duplicate the select object
And you got in there all the twist concerning the materials...
Double Tap: Select the object
Triple Tap: Duplicate the select object
And you got in there all the twist concerning the materials...
Re: Tutorial 06 - Selecting an Object
I'll check again - no doubts I've just missed something glarringly simple!
I have modified the double tap to only be a single tap (as that's what I need)... but I'll check when I'm in front of my Mac.
Thanks
I have modified the double tap to only be a single tap (as that's what I need)... but I'll check when I'm in front of my Mac.
Thanks
Re: Tutorial 06 - Selecting an Object
Well, after a few more hours, and tearing the remains of my hair out - I'm no closer to figuring this one out.
even if I touch nothing, so I don't create a Selection object (selection should be reset from sio2ObjectReset, or am I misunderstanding the function?) it creates an object (or not) with no material, but if I select the area where the object is, I get a Touch=YES (my own little test) but no visible object (material wiped).
I fiddled around with the render placement, and I can get a "white" or blank material, but never do I get my original one back. I just can't figure it out - must've taken my stupid pills all day today :-/
Any help? Pointers? I've gone over Tut 06_1 so many times I just can't see where the original material gets loaded back again.
even if I touch nothing, so I don't create a Selection object (selection should be reset from sio2ObjectReset, or am I misunderstanding the function?) it creates an object (or not) with no material, but if I select the area where the object is, I get a Touch=YES (my own little test) but no visible object (material wiped).
I fiddled around with the render placement, and I can get a "white" or blank material, but never do I get my original one back. I just can't figure it out - must've taken my stupid pills all day today :-/
Any help? Pointers? I've gone over Tut 06_1 so many times I just can't see where the original material gets loaded back again.
Re: Tutorial 06 - Selecting an Object
Just out of curiousity, do your objects move?
If they're static, then you can simply hardcode the hotspots in the screen touch callback :-)
-j
If they're static, then you can simply hardcode the hotspots in the screen touch callback :-)
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Tutorial 06 - Selecting an Object
They are all static, now that you mention it...meteors wrote:Just out of curiousity, do your objects move?
If they're static, then you can simply hardcode the hotspots in the screen touch callback :-)
-j
Hmm
Re: Tutorial 06 - Selecting an Object
Then I would definitely do it that way. K.I.S.S.
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Tutorial 06 - Selecting an Object
Before I go on and do something else - I just wanted to see what would happen to SIO2's Tutorial 06 if I take out all the selection/instance material stuff... well, it works exactly how I want my app to work. Bwahahahaha.
*ahem*
So, clearly, I've done something... erm... not right!
Sorry for the near-pointless post!
PS: sio2Interactive - you were right! As usual ;-)
*ahem*
So, clearly, I've done something... erm... not right!
Sorry for the near-pointless post!
PS: sio2Interactive - you were right! As usual ;-)
Similar topics
» Selecting invisible object
» Player Object Movement Tutorial 09
» physics object inside another physics object
» Collision system
» Player Object Movement Tutorial 09
» physics object inside another physics object
» Collision system
Permissions in this forum:
You cannot reply to topics in this forum