Nexus Skirmisher

Nexus Modding => Game Assets => Topic started by: jstubbles on April 11, 2010, 10:06:11

Title: Updating planet meshes
Post by: jstubbles on April 11, 2010, 10:06:11
Has anyone had success doing this?

There's no documentation for getting a new planet MESH into the game - but I've been able to load them into the solar system editor. However, as soon as I press the button to change the texture, it loads the old model again. I should also note that my own planet mesh doesn't appear to have an atmosphere when it loads up - it shows the atmosphere as a tiny sphere inside of my planet mesh. I tried adjusting the mesh size in Lightwave until it was relatively close match, but it still doesn't change the fact that when I load the next texture, the model changes back to the original low poly version.
Title:
Post by: jstubbles on April 11, 2010, 17:55:42
Or if anyone has Milkeshape - if they could open a planet MSH and see what's going on in there (I don't have the cash to pick it up at the moment).

Somethings kind of trip me up though. In the solar system files, there's a line to enter what mesh you want to use for the planet. A lot of them don't exist though, not even in the base game (after using DaTool). For instance, "Mesh "planetsplanet_002_a"" - that's nowhere in the base game folders. There IS however, a texture named that. It's kind of trippy what's going on and I don't fully understand it.

I just want everything to use 1 new planet mesh and just swap out the textures on it. I thought that's what was happening before - but I think maybe there's a new model for every planet? Not sure.
Title:
Post by: GeoModder on April 11, 2010, 18:21:27
Quote
Somethings kind of trip me up though. In the solar system files, there's a line to enter what mesh you want to use for the planet. A lot of them don't exist though, not even in the base game (after using DaTool). For instance, "Mesh "planetsplanet_002_a"" - that's nowhere in the base game folders. There IS however, a texture named that. It's kind of trippy what's going on and I don't fully understand it.

I just want everything to use 1 new planet mesh and just swap out the textures on it. I thought that's what was happening before - but I think maybe there's a new model for every planet? Not sure.

I suppose the graphics engine is so rigged that a planet/moon object is generated ingame as a sphere with the linked texture (from texturesplanets) painted over it if no proper mesh with that name is found in the meshesplanets folder. The names of textures (in texturesplanets) seem to fit with the planet meshes (in meshesplanets), so perhaps giving your texture the name of an existing one could solve your 'reverting' texture problem?

Btw, did you try to put new asteroids ingame, or a new proper spherical planet like Earth or so?
Title:
Post by: jstubbles on April 11, 2010, 18:32:09
I'll try naming the texture and mesh to something thats already there, see how that works.

And yeah, it's a new planet mesh, not an asteroid. I've seen people put asteroids in game already.
Title:
Post by: GeoModder on April 11, 2010, 18:36:16
I've nowhere in the Nexus folder structure found a dedicated mesh for planets, so I'm unsure if it is even necessary. Perhaps simply placing the texture reference in the solar system file is enough?
And you're telling me there are new asteroid meshes available for Nexus somewhere? Could you link me to a download for them please?
Title:
Post by: jstubbles on April 11, 2010, 18:43:31
I can get the texture to show up just fine, never had an issue with that. But the mesh used for planets is horribly low res and looks like crap. I've been trying to replace it with one with a few more tri's.


here are those asteroids:  http://www.moddb.com/groups/the-nexii/downloads/hd-asteroids-pack
Title:
Post by: Mularac on April 11, 2010, 18:43:41
http://www.moddb.com/groups/the-nexii/downloads/hd-asteroids-pack made by DreamorCZ.

EDIT: XD
Title:
Post by: jstubbles on April 11, 2010, 18:51:05
Lol nice timing, Mularac ;)

I've been able to get the new model and texture to load in the editor and work, but they don't behave correctly, they behave like regular meshes. So all of the planet-based options (spec color adjustment, etc) no longer function. It's really annoying :|
Title:
Post by: GeoModder on April 11, 2010, 18:52:58
Quote
I can get the texture to show up just fine, never had an issue with that. But the mesh used for planets is horribly low res and looks like crap. I've been trying to replace it with one with a few more tri's.

Ah, you want to replace the Mithis planet mesh. In what folder have you found it?

And that asteroid page blackens out on me when I hit the download button. Trying to download it through a new page gives an error.
Title:
Post by: jstubbles on April 11, 2010, 18:56:05
That's the only download link I know of man, sorry :(

I haven't found the planet mesh though. I just tried putting one in there. If it's a custom planet name, the mesh will still load up. I also tried naming it as one of the existing meshes and it's still the same issues.

I figured that not assigning a texture would allow it to cycle through all of the textures on the mesh, but it doesn't work like that I suppose. The mesh just came in without a texture.
Title:
Post by: GeoModder on April 11, 2010, 18:58:24
What happens if you DON'T put a mesh whereever, but simply refer to your new texture in the solar system file? Provided the texture file is in the texturesplanets folder...

Oh, it seems downloads are only allowed for members. Have to rectify that...
Title:
Post by: jstubbles on April 11, 2010, 18:59:21
I already said what happens. If I don't use my mesh, the texture will load fine on the existing (shitty) planet model. The texture has never been the issue - it's the mesh that's being a bitch :)
Title:
Post by: GeoModder on April 11, 2010, 19:13:45
Now I'm with you.  ^^

My guess is that Mithis programmed it so that a (shitty) virtual sphere is generated, and not a proper mesh is used for planets.
Title:
Post by: jstubbles on April 11, 2010, 21:28:32
Yeah, seems that way :(

concerning planets in the editor though - I can't seem to get them to rotate in game? You can make them animate in the solar system editor by "starting" time - ctrl+shift+ right arrow. But I haven't seen them "start" in a mission. Any ideas?
Title:
Post by: Mularac on April 11, 2010, 21:33:50
no, they're static in-game. Which makes sense, as Nexus is real-time.
Title:
Post by: jstubbles on April 11, 2010, 21:50:10
How does it make sense that way? You can see the earth rotating from orbit...

only way it wouldn't appear to rotate would be if you were in exact geo-synch orbit, like our GPS and COM satellites.
That's unfortunate that yet again, nexus has another limiting factor. Grrr...


Here's a pic of the texture at least. Still looks good, but I'm picky about the hard model edges, lol

(http://dl.dropbox.com/u/2355669/leonis_002.jpg)
Title:
Post by: Arparso on April 11, 2010, 22:16:35
Depends on how fast you're flying while orbiting the planet, I guess. The typical Nexus ship is really really slow and remains practically stationary while orbiting a planet. I can't imagine really recognizing the earth's rotation during the short timespan a typical Nexus mission takes to complete.

As for planet meshes: I'm not sure about earth_night.msh... that doesn't load on my machine with the model viewer and might just contain the generic planet model. If not, then its most probably embedded in the executable or created dynamically during gameplay, in which case we can't hope to ever replace it.

/edit:
Dude, that's an AMAZING shot and way way above the regular blurry Nexus planets.
Title:
Post by: jstubbles on April 11, 2010, 23:12:30
I'll try to run a few tests with that earth_night mesh, see if anything happens.


Quote
Dude, that's an AMAZING shot and way way above the regular blurry Nexus planets.

Thanks! The textures are quite large to hit that fidelity, but anyone with a halfway decent rig can handle it. If not, they can always lower the texture settings in the menu. :)
Title:
Post by: Mularac on April 11, 2010, 23:36:54
yeah! even the sky seems more high def! what res are you running nexus at?
Title:
Post by: jstubbles on April 11, 2010, 23:40:03
I run it at my monitor default res, 1920x1200
Title: (no subject)
Post by: jstubbles on April 12, 2010, 06:47:42
I couldn't get anything to work with the earth_night tests - same thing as before. Oh well. Guess they hardcoded the stinkin' model =

Thanks again for all the help with the lighting stuff.

Here's a vid of the result:

Nexus: Battlestar Galactica (work in progress) (http://www.youtube.com/watch?v=ScaMyMn2UCI#ws)
Title:
Post by: GeoModder on April 12, 2010, 16:24:30
That's indeed a [font='Chicago']MARVELOUS[/font][/b] texture. Any plans to create more?  :thumbsup:
Title:
Post by: jstubbles on April 12, 2010, 16:51:41
Thanks!

Yeah, I need to make at least 11 more textures, for the rest of the twelve colonies. Probably a few extras, too, like gas giants or something.
Title:
Post by: Arparso on April 12, 2010, 17:12:23
Great vid. I've never seen a Galactica mod for any game looking more authentic than that.  :thumbup:
Title:
Post by: DreamorCZ on August 15, 2010, 18:36:31
I have re-read this topic once more and I think, I can help with in-game rotation of a planet. Well, it's quite easy. You have to create new planet model and use default animation (#anim def X X#) for it, then you will set path to your planet in your system ini (line - Mesh "meshfoldermesh" {well, that is quite obvious}) and add shipclass and shiptype as for a normal ship into your tactictypes (this will ensure that the default animation will work) and ........ that is all and your planet (or any model replacing planet model) is animated now.

Note: I recommend to set 100,000 frames (or more) for 360° to make it rotate very slow.
Note2: Try it without adding shipclass and shiptype first. Sometimes it works without it sometimes not.
Title:
Post by: jstubbles on August 15, 2010, 19:16:58
That's awesome, Dreamor! I'll have to give this a shot as well :)

Thanks.
Title: Re: Updating planet meshes
Post by: jstubbles on February 06, 2011, 18:18:15
Hey Dreamor, there seems to be a limit to the animation keys in Layout. It's maxing out at 32767 :(
Do you know of a way around this?

**edit**
Looks like I  found a workaround, sliding the keys in the scene graph editor.
Title: Re: Updating planet meshes
Post by: jstubbles on February 07, 2011, 15:21:28
It's nice not having those jaggy planets anymore :)

(http://media.moddb.com/cache/images/mods/1/13/12379/thumb_620x2000/ragnartest.jpg)
Title: Re: Updating planet meshes
Post by: GeoModder on March 18, 2011, 23:20:17
You... erm... created your own sphere and managed to let the game read it?  :o
Title: Re: Updating planet meshes
Post by: jstubbles on July 21, 2011, 19:40:02
You... erm... created your own sphere and managed to let the game read it?  :o

Yuppers. Just exported like a normal mesh, then the mesh name is manually entered into the solar system file to replace whichever planet you want. Works perfectly - even the planet spinning animation works.
Title: Re: Updating planet meshes
Post by: Mularac on July 21, 2011, 23:21:25
so, theoritically, we can have any model as a planet? or it has to be an sphere?
Title: Re: Updating planet meshes
Post by: jstubbles on July 22, 2011, 03:07:53
Since it's treated like any other model, I'm pretty sure it can be anything you like.
Title: Re: Updating planet meshes
Post by: jstubbles on July 24, 2011, 00:31:30
In case you haven't tried it yet - yeah, you can definitely use any mesh to replace a planet. I just tried it with Ragnar Anchorage and it worked just fine. You just plug the mesh path/name into the system file instead of the planet mesh and you're good to go.
Title: Re: Updating planet meshes
Post by: GeoModder on July 24, 2011, 20:11:00
Could be fun. You could let Ragnar Anchorage literally be a moon of Ragnar, and in the ingame astronomy/tactical system screen you'd see the station swirl around the planet when you're close enough.  ;D
Title: Re: Updating planet meshes
Post by: DreamorCZ on November 09, 2012, 01:03:09
I have finally find a way to add the night texture part, well sort of. It is quite easy solution actually. Instead of trying to make x_night properly work on the new mesh, this texture can be added as alpha channel (with inverted color) for planet's main texture. Here is working demonstration...

(http://s7.postimage.org/lkfei40a1/Earth_Nexus.jpg)