Re: [osg-users] I want to connect two moving models with a line.

2020-10-20 Thread OpenSceneGraph Users
Oh, I forgot you were using an animation path.  Then I think the easiest
solution is not modifying the vertices but modelling an unit-long line
and then just rotating, scaling and translating it where you want it to
be.
-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/mailman.22613.1603193546.3540.osg-users-openscenegraph.org%40lists.openscenegraph.org.


Re: [osg-users] I want to connect two moving models with a line.

2020-10-20 Thread OpenSceneGraph Users
Hi, Alberto
I saw your answer well. However, there are parts that I still don't 
understand.

>From what you answered, the way that works for me is to modify the 
coordinates of the two vertices of the line.

First, I need to set the coordinates and travel time with the values below.


===
[model1]  
movePoint1) longitude:127.0,  latitude: 37.0,  moveTime: 10 second
movePoint2) longitude:127.005,   latitude: 37.0,  moveTime: 20 second
movePoint3) longitude:127.01,latitude: 37.0,  moveTime: 30 second

[model2]  
movePoint1) longitude:128.0,  latitude: 37.0,  moveTime: 15 second
movePoint2) longitude:128.005,   latitude: 37.0,  moveTime: 20 second
movePoint3) longitude:128.01,latitude: 37.0,  moveTime: 25 second

[model1 model2 connetion line]

movePoint1)  point1:   longitude:127.0,   latitude: 37.0,  moveTime: 10 
second
 point2:   longitude:128.0,   latitude: 37.0,  
moveTime: 15 second

movePoint2)  point1:  longitude:127.005,  latitude: 37.0,  moveTime: 20 
second
point2:   longitude:128.0,   latitude: 37.0,  
moveTime: 15 second

movePoint3) point1:   longitude:127.01,   latitude: 37.0,  moveTime: 30 
second
   point2:  longitude:128.01,   latitude: 37.0,  
moveTime: 25 second
==

 AnimationPath, you can set the center coordinate and movement time in the 
insert function.

And Since 3ds models are displayed with one coordinate, there is no problem 
using AnimationPath.

As you answered, you need to modify the two coordinates of the line, but 
AnimationPath could not find a function that moves while changing the 
coordinates of the model with more than two coordinates.

There is no problem when displaying in a static state, but it seems to be a 
problem when using animationPath.

Couldn't the model (line or polygon) displayed with two or more coordinates 
use the Animation effect by using AnimationPath?

2020년 10월 19일 월요일 오후 10시 51분 37초 UTC+9에 OpenSceneGraph Users님이 작성:

> Hi, you have to modify the geometry of the line.
>
> You can do that either scaling and rotating it or by modifying the
> coordinates of the vertices. In the latter case, be sure to deactivate
> the display lists of the geometry, otherwise the line will not be
> reflect any changes.
>
> -- 
> Alberto
>
> ___
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/c3287453-f66d-4cca-8de3-c610b3ae05e0n%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] I want to connect two moving models with a line.

2020-10-19 Thread OpenSceneGraph Users
Hi, you have to modify the geometry of the line.

You can do that either scaling and rotating it or by modifying the
coordinates of the vertices.  In the latter case, be sure to deactivate
the display lists of the geometry, otherwise the line will not be
reflect any changes.

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org