Rendering on top

56 views
Skip to first unread message

Rifat Aras

unread,
Jan 13, 2012, 12:31:53 PM1/13/12
to WebGL Earth Developer Group
Dear all,

Would you mind pointing me in the right direction regarding my
problem?

Basically, I want to draw some shape / model / vector on top of my
globe according to their lat-lon coordinates and occasionally update
them according to some incoming event (such as update from timeline).
I would also like to involve some database operations, but I guess
this is beyond the scope.

I am assuming that this is possible given that I modify the provided
API. Is this assumption correct?

If I am right, where shall I start looking? Is the "scene" folder of
the source code a correct starting points?

Best regards.

Bruno

unread,
Jan 16, 2012, 12:40:02 PM1/16/12
to WebGL Earth Developer Group
Hello,

Are you trying to do that in the same scene?
Or are you trying to creat 2 scene, and put one canvas on top of the
other?

If everything is in the same scene, you have to put some kind of pose
to the object, like the pose of the camera.
With the pose i mean the transformation matrix.

I hope i could help better (sorry for my inglish).

Cumprimentos :)

Rifat Aras

unread,
Jan 16, 2012, 1:00:51 PM1/16/12
to WebGL Earth Developer Group
Hi, thanks for viewing.

I guess putting them at one scene will do the trick. After all, if I
think of this system as a scene graph, the stuff that I want to draw
will be children of the globe (they will be attached on top of the
surface).

From the implementation stand point, probably I will have to add
another javascript file something like LinePrimitive,
PolygonPrimitive, or TriangleMesh, and from the scene.js file I will
call the draw functions of a list of these primitives just like the
authors did for the Halo of the earth. (check halo.js and its usage in
scene.js)

Do you think these sound implementable / feasible?

Petr Sloup - Klokan Technologies GmbH

unread,
Jan 18, 2012, 3:35:53 AM1/18/12
to WebGL Earth Developer Group
Hi,

yes, that is the right way to go.

Regards,

-----
Petr Sloup
Software Engineer - WebGL Earth developer

Klokan Technologies GmbH
Bahnhofstrasse 9, Baar 6340, Switzerland
Tel: +41 (0)41 511 26 12
Email: in...@klokantech.com
Web: http://www.klokantech.com/

Bruno

unread,
Jan 20, 2012, 4:30:34 AM1/20/12
to WebGL Earth Developer Group
Hello,

I was doing something like you, i can already put some objects on the
surface of the world, but it's not well positioned.
Can someone give-me help to find one object? it can be like a point
cloud or something, with geocentric coordinates.
I already search on the web and it isnt easy to find.

Regards.


On 18 Jan, 08:35, Petr Sloup - Klokan Technologies GmbH
<sloupp...@gmail.com> wrote:
> Hi,
>
> yes, that is the right way to go.
>
> Regards,
>
> -----
> Petr Sloup
> Software Engineer - WebGL Earth developer
>
> Klokan Technologies GmbH
> Bahnhofstrasse 9, Baar 6340, Switzerland
> Tel:+41 (0)41 511 26 12begin_of_the_skype_highlighting            +41 (0)41 511 26 12
> Email: i...@klokantech.com
Reply all
Reply to author
Forward
0 new messages