View unanswered posts | View active topics It is currently Sat Oct 23, 2021 9:11 am



Reply to topic  [ 6 posts ] 
 Move BoundingBox With OBJ Element 
Author Message

Joined: Mon Aug 16, 2010 7:55 am
Posts: 12
Post Move BoundingBox With OBJ Element
Hi,
Anyone knows how move the boundingbox with the element?

In other words, I load an .OBJ file and as loaded it is on (0,0,0,0,0,0).
I can show the boundingbox and it appears very well.

Than I move the elements, for example on (100,100,100,90,0,0) "I assign also a rotation", but when I show the boundingbox it change, because it leave on the same (X,Y,Z)
but not assign the rotation.

How can I do?

Thanks


Mon Dec 16, 2013 1:58 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: Move BoundingBox With OBJ Element
Hello,
longolui wrote:
Than I move the elements, for example on (100,100,100,90,0,0) "I assign also a rotation", but when I show the boundingbox it change, because it leave on the same (X,Y,Z)
but not assign the rotation.

I'm not sure to understand, It's just a rotation problem ?
Can you send a screen capture.

A+


Mon Dec 16, 2013 2:09 pm
Profile

Joined: Mon Aug 16, 2010 7:55 am
Posts: 12
Post Re: Move BoundingBox With OBJ Element
Hi Laumaya,
sorry but I did not read your message.

I send you some pictures to better understand what I mean.

The object in the pictures was rotated [0°] -> [30°] -> [60°] -> [90°]

How can I rotate also his boundingbox to leave alway as in the picture [0°]??

Thanks again


Attachments:
File comment: Object with 60° rotation. Bounding box NOT good
60.jpg
60.jpg [ 31.55 KiB | Viewed 12870 times ]
File comment: Object with 30° rotation. Bounding box NOT good
30.jpg
30.jpg [ 27.72 KiB | Viewed 12870 times ]
File comment: Object with 0° rotation. Bounding box good
0.jpg
0.jpg [ 18.17 KiB | Viewed 12870 times ]
Tue Feb 11, 2014 7:46 am
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: Move BoundingBox With OBJ Element
Hi,
GLC_Lib use "Axis-aligned minimum bounding box" not "Arbitrarily oriented minimum bounding box".
See Minimum bounding box On Wikipedia

So it's normal ;)
@+


Tue Feb 11, 2014 1:47 pm
Profile

Joined: Mon Aug 16, 2010 7:55 am
Posts: 12
Post Re: Move BoundingBox With OBJ Element
Thanks,

so how can I use collision between boundingbox when I rotate them?

there is other functions?

thanks again


Tue Feb 11, 2014 3:36 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: Move BoundingBox With OBJ Element
longolui wrote:
so how can I use collision between boundingbox when I rotate them?

You can use collision, but it will be an approximation.
longolui wrote:
there is other functions?

No, there is no other functions. You will have to use another library for collide checking.
Look at SOLID

@+


Tue Feb 11, 2014 6:19 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.