picking and moving 3d objects

View previous topic View next topic Go down

picking and moving 3d objects

Post  synaptime on Thu Mar 26, 2009 4:54 pm

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

synaptime

Posts : 6
Join date : 2009-03-23

View user profile

Back to top Go down

Re: picking and moving 3d objects

Post  Jawdy on Fri Mar 27, 2009 2:31 am

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 Rolling Eyes
avatar
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: picking and moving 3d objects

Post  synaptime on Fri Mar 27, 2009 10:23 am

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

synaptime

Posts : 6
Join date : 2009-03-23

View user profile

Back to top Go down

Re: picking and moving 3d objects

Post  skeggialungo on Thu Apr 16, 2009 7:35 am

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

View user profile

Back to top Go down

Re: picking and moving 3d objects

Post  oioioi on Thu Apr 16, 2009 7:43 am

after setting x, y and z values add this line:
sio2TransformBindMatrix( yourObject->_SIO2transform );

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: picking and moving 3d objects

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