Page 56 of 460
Posted: Wed Mar 25, 2009 1:24 pm
by Thargoid
It depends how you're doing the collision detection. PF uses the shipApproachingPlanetSurface event (500m above the "surface"), so if that's triggered "within" such a mountain (500m above the "average" planetary surface) rather than 500m above the specific point you're at then yes, there could be some issues.
So it's going to be what needs to be tested, how the new texturing and that worldscript event play together.
But that said the solution could always simply be "don't try and land on a mountaintop", or "beware of low-flying rocks"
And as for being like System Redux, sadly at times some of those textures start to show their resolution limitations when you're getting very near the surface (and occasionally some trippy effects on some of my machines, presumably due to graphics card/driver limitations).
Posted: Wed Mar 25, 2009 8:18 pm
by Griff
Woah, that planet looks great! really amazing work Kaks! You mentioned normal maps on planets, does this mean that we may get shaders for planets at some point?
because i will do a cartwheel with joy if they do get shader support
I don't think normal maps will affect the planetfall oxp as i'm sure they don't change the geometry at all, they just give an impression of a bumpy surface, the underlying polygon is still completely flat
Posted: Wed Mar 25, 2009 9:45 pm
by pagroove
Great work about implementing this feature
Posted: Wed Mar 25, 2009 10:41 pm
by Kaks
Good to hear that! shipApproachingPlanetSurface is triggered high enough in Oolite terms, so we shouldn't have any problems with the landing...
Griff wrote:Woah, that planet looks great! really amazing work Kaks! You mentioned normal maps on planets, does this mean that we may get shaders for planets at some point?
because i will do a cartwheel with joy if they do get shader support
Funny you should mention that, I was going to ask you if you'd be interested!
Have you already got a shader I can use to test a planet with? I think there was a brick wall texture floating around somewhere, but that had just a normal map...
pagroove, thought you'd appreciate! The 1.73 version of famous planets should work
really well!
Posted: Wed Mar 25, 2009 11:14 pm
by Griff
wow, really? shaders for planets!!?!
There's this oxp version of the 'earth' example from AMD/ATI's 'Rendermonkey'
it's got glow maps in it that come on at 'night time' - no normal maps though, is this the kind of thing you're after?
I'm not sure how to do the 'link to posts' thing, but it's about halfway down page 10 of the shaders outpost thread, i think frame has done some work on this too, try this link, hopefully it takes you straight there
https://bb.oolite.space/viewtopic.ph ... &start=145
Posted: Wed Mar 25, 2009 11:21 pm
by Cmd. Cheyd
I've got a diffuse, specular intensity, and normal map for a planetary texture. If someone could tell me what else is needed, I can volunteer some files
EDIT:
Oh, and no guarantee they look even HALFWAY decent.... I expect they'll look like rubbish smeared across crinkled paper.
Posted: Thu Mar 26, 2009 3:24 am
by Kaks
Thanks Griff, I'd totally forgotten about that. Grabbed it now!
Cmd. Cheyd: thank you too! I've got your texture maps, and they're much appreciated.
Shaders themselves allow for programming light sources directly onto a surface - & engine glows - and I'm afraid the people who understand them best are Griff & Ahruman. From my part, I'll limit myself to seeing if I can make Griff's planet work!
...and now for something completely different!
to do a 'link to post':
to get the post number, click the quote button on the post itself: you'll see
in the new window's address line. The post number is immediately after '&p='
the link address will then be:
Professor kaks signing off!
Posted: Thu Mar 26, 2009 3:37 am
by Cmd. Cheyd
Any chance some kind soul would make me a VERY simple ship model / OXP?
A perfectly round (albeit large - think station or bigger) sphere that does nothing but rotates on one axis?
Posted: Thu Mar 26, 2009 5:20 pm
by Kaks
Posted: Thu Mar 26, 2009 10:23 pm
by aceshigh
uh... why is space light blue as the sky in some of the pics?
Posted: Thu Mar 26, 2009 10:27 pm
by Thargoid
aceshigh wrote:uh... why is space light blue as the sky in some of the pics?
They're views from within the atmosphere of the planet looking upward. If you get to a very low altitude you'll see the changes. But if you're going to do it, I'd recommend having Planetfall installed, so you land on the planet gracefully rather than going splat on it like a bug
Posted: Fri Mar 27, 2009 8:20 am
by CaptKev
Kaks wrote:
As of 1.73 planet textures can be added directly to planetinfo.plist!
Great work
, will the texture added with the JavaScript function system.mainPlanet.setTexture show on the Planet Data screen?
Posted: Fri Mar 27, 2009 9:11 am
by Kaks
Hi Kev!
Yes it does, but since atm the texture is normally added to the planet only when exiting witchspace you only get the retextured planet for the system you're in.
On the other hand, adding a "texture" key to planetinfo.plist does show the new texture all the time. One thing that just occurred to me, is that we might just be able to use setSpecificPlanetInfo to assign textures on entering a galaxy! It would make savegames bigger, but it might just be worth it. I'll check this evening if I get the time - & if no-one else beats me to it!
Posted: Fri Mar 27, 2009 3:12 pm
by Kaks
Eureka!!
My subconscious is officially much cleverer than me!
Doing the following
Code: Select all
System.infoForSystem(0, 39).texture = "something.png";
already changes Riorte's texture permanently! This change will be stored in the savegame like this
Code: Select all
<key>0 39</key>
<dict>
<key>texture</key>
<string>something.png</string>
</dict>
planet.setTexture might still be useful in very limited cases, but as it is now, it's definitely the second choice!
Posted: Sat Mar 28, 2009 4:53 pm
by DaddyHoggy
Bravo Kaks!
I don't know I wander off to a Conference in South Africa for a few days and Oolite takes another leap forward!
(Internet seems to work much better at the weekend in South Africa)