picking and moving 3d objects
4 posters
picking and moving 3d objects
Hi,
Let me say right away that SIO2 is great! (just downloaded v1.3.5 but mostly been playing with 1.3.3)
And so I found this thread <HERE>
about selecting objects and moving them but the code examples are from 2008 and the classes have changed since then,_SIO2camera->pos->x,
for example, pos is no longer an attribute of the _SIO2camera and so on.
and I was really hoping that someone had a more recent example of how to pick and object in 3d space and move it around.
Hoping that maybe someone had applied it to say tutorial 6 and was willing to share an example.
thanks!
Joe
Let me say right away that SIO2 is great! (just downloaded v1.3.5 but mostly been playing with 1.3.3)
And so I found this thread <HERE>
about selecting objects and moving them but the code examples are from 2008 and the classes have changed since then,_SIO2camera->pos->x,
for example, pos is no longer an attribute of the _SIO2camera and so on.
and I was really hoping that someone had a more recent example of how to pick and object in 3d space and move it around.
Hoping that maybe someone had applied it to say tutorial 6 and was willing to share an example.
thanks!
Joe
synaptime- Posts : 6
Join date : 2009-03-23
Re: picking and moving 3d objects
In the /Docs folder is a html.zip file - in there is a complete class list, which I am assuming would be up-to-date with 1.3.5's class list. Check that out for the _SIO2Camera member functions.
I'm still running 1.3.3, so can't help you directly I'm afraid - that said, I've been making some stupid mistakes so you probably wont want my help anyway
I'm still running 1.3.3, so can't help you directly I'm afraid - that said, I've been making some stupid mistakes so you probably wont want my help anyway
Re: picking and moving 3d objects
Jawdy,
Thanks, yeah that's the first thing I looked at.
At any rate, it looks like the camera's position information has been subsumed by the SIOTransform object (I am at work and haven't tested it out it yet).
Is this correct? That is, bascially SIOCamera.pos.x == SIOCamera.SIOTransform.loc.x etc.?
Still, I know I am not alone when I say it would be really nice to see a very simple example
of pick/move implementation (not out of context code snippits).
But if that's not possible, it's cool. I understand.
thanks again
Joe
Thanks, yeah that's the first thing I looked at.
At any rate, it looks like the camera's position information has been subsumed by the SIOTransform object (I am at work and haven't tested it out it yet).
Is this correct? That is, bascially SIOCamera.pos.x == SIOCamera.SIOTransform.loc.x etc.?
Still, I know I am not alone when I say it would be really nice to see a very simple example
of pick/move implementation (not out of context code snippits).
But if that's not possible, it's cool. I understand.
thanks again
Joe
synaptime- Posts : 6
Join date : 2009-03-23
Re: picking and moving 3d objects
i have the same problem i try to move my object changing loc->x loc->y loc->z value in render method and nothing happen also with sio2objectrender. i want only move my object without a physic world.
skeggialungo- Posts : 9
Join date : 2009-03-13
Re: picking and moving 3d objects
after setting x, y and z values add this line:
sio2TransformBindMatrix( yourObject->_SIO2transform );
sio2TransformBindMatrix( yourObject->_SIO2transform );
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Similar topics
» number of moving physics objects
» Moving physic objects to specific pos
» duplicating objects at runtime and changing textures on the duplicated objects
» Transformations not happening
» Camera moving
» Moving physic objects to specific pos
» duplicating objects at runtime and changing textures on the duplicated objects
» Transformations not happening
» Camera moving
Permissions in this forum:
You cannot reply to topics in this forum