Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Search found 48 matches

by grondilu
Sun Jul 12, 2015 7:16 pm
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

I have to say I got quite tired of trying to find an object model above webGL to build things such as scene, stars, ships, point of view and stuff like that. Clearly I need to invest time in learning Three.js. Hopefully this will not prevent me from experimenting with low-level stuff, such as the in...
by grondilu
Sun Jul 12, 2015 5:48 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

Hmm ... <Something is rotten in the state of Denmark./> Your pitch and yaw don't seem to sum up. While roll always follow the ship's "local Z" axis, the pitch and yaw somehow don't. I've noticed this discrepancy with your Euler movement earlier, as well. If you're talking about this new p...
by grondilu
Sat Jul 11, 2015 10:26 pm
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

Lots of code cleaning. I've tried to get rid of global variables, set up an object model for meshes and various stuff like that. I've also began to seriously look at using several textures for a single mesh : http://i.imgur.com/bqEan6w.png I think I got it right. Needs more testing. You can see this...
by grondilu
Fri Jul 10, 2015 7:52 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

I was a bit worried to only be able to see Orion but if I make stars bigger I can spot other constellations: http://i.imgur.com/SR3my1Z.png Regarding numeric approximations and placing stars at large distances, I failed to use homogeneous coordinates to do so. I mean instead of entering a star as a ...
by grondilu
Thu Jul 09, 2015 11:46 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

I was a bit disappointed not to recognize constellations and I thought it was just me not having a sharp eye for that, but then I checked my magnitude to intensity function and it appears it was completely wrong. I now have much less fewer stars but at least constellations can be spotted, like here ...
by grondilu
Thu Jul 09, 2015 10:50 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

If I try very hard to put the stars on an astronomical distance (say 1e15m), first I get nothing if I try with Float32Array. If instead I try with a Float64Array, I get an interesting artifact : http://i.imgur.com/rSFrs6d.png The stars seem to align on particular directions in the sky. I suspect it'...
by grondilu
Thu Jul 09, 2015 10:26 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

Jokes aside, I like a lot where this is going. And the flight model as it is right now is interesting, too. It kind of feels Newtonian, but I find it very challenging. I suspect it's because you were looking at the compass too much, and it may still have bugs. (I've just made a few fixes but it's n...
by grondilu
Thu Jul 09, 2015 10:25 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

Looking good. I used the Hipparcos catalog and drew the stars as points on a large (1Mm but I could use any value) sphere around the observer. "Sphere of fixed stars" is about how Oolite does it. Ours is only at 75km - but is drawn first in the scene with depth-buffering disabled, so appe...
by grondilu
Thu Jul 09, 2015 8:37 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

First attempt at drawing stars:

Image

http://grondilu.github.io/oolite/test-coriolis.html

I used the Hipparcos catalog and drew the stars as points on a large (1Mm but I could use any value) sphere around the observer.
by grondilu
Wed Jul 08, 2015 11:40 am
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

by grondilu
Mon Jul 06, 2015 5:25 pm
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

OK, first try at controlling speed: http://grondilu.github.io/oolite/test-coriolis.html http://i.imgur.com/zmUNw5t.png Setting the matrices in the correct order and stuff was quite a headache. As a matter of fact I proceeded a bit by trial-and-error at some point so to be honest I'm not entirely sur...
by grondilu
Mon Jul 06, 2015 12:06 pm
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

I got a first prototype of the compass working.

Image

http://grondilu.github.io/oolite/test-compass.html
by grondilu
Sun Jul 05, 2015 1:20 pm
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

Ok I now understand how to put several ships in the scene their own attitude/position parameters.

Image

I should soon be able to tackle displacements.

I made this part in a different html page:

http://grondilu.github.io/oolite/
by grondilu
Sat Jul 04, 2015 1:33 pm
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

There are now only two models but that's because I rewrote quite a few things (in preparation for multi-textures models notably) and now the data conversion process is a bit more involved. Until I find out how to convert the plist into JSON automatically, I do it manually (it's not too hard, fortuna...
by grondilu
Thu Jul 02, 2015 4:46 pm
Forum: Porting to other platforms
Topic: WebGL effort
Replies: 112
Views: 124924

Re: WebGL effort

Is this any good? Not sure. $ python pltojs.py /usr/local/src/oolite/Resources/Config/shipdata.plist shipdata.json Traceback (most recent call last): File "pltojs.py", line 22, in <module> if __name__ == "__main__": main() File "pltojs.py", line 11, in main plistObject...