SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [TEC] Adding/Importing new units / SH5 Damage/collision models (https://www.subsim.com/radioroom/showthread.php?t=182667)

Zedi 05-08-11 04:06 AM

Very nice job TDW, im really happy to see that you finally had that working. And grats jwilliams for you first imported ship.

But there should be a limit on import stuff, we dont wanna replace the whole sh5 fleet with the one from sh4 :D What I would really use is a model for Graf Zeppelin. i wanna place her in Kiel, but nor sure how an ark royal will look like there.

jwilliams 05-08-11 04:20 AM

Quote:

Originally Posted by JU_88 (Post 1659327)
Good job Is that Serges Sh3 Vosper? Wheres Alex? I swear he did a superb model of this boat which was imported to SH3 a few months ago.

The author is ccazan. At least thats what S3D author info says. I'd imagine that the file/model was added to SH3 by GWX.

This is just a test model so I could learn how to import ships. It will not be released.

Rongel 05-08-11 04:28 AM

Quote:

I did it... My first import. :rock: Thanks to the info provided by TheDarkWraith. :yeah:
Congratulations jwilliams, even if it's a test!

Zedi made a list sometime ago about SH 4 ships that he would like to include in his new campaign mod. Maybe we could concentrate on those ships at first. Could you, Zedi, post again your wish-list? I have SH 4 and can help with the ships.

HanSolo78 05-08-11 04:34 AM

Hi everyone!

I´ve a small question... can someone give me some hints how to get the illumination working correct on new 3d models in sh5?
I would like to give the new harbour addion units (now only Sh3 units)
http://www.subsim.com/radioroom/showthread.php?t=166104
a sh5 like illumination and I suppose I need a lightmap?
How do I create one?

Thx
Han

Rongel 05-08-11 05:34 AM

Quote:

Hi everyone!

I´ve a small question... can someone give me some hints how to get the illumination working correct on new 3d models in sh5?
I would like to give the new harbour addion units (now only Sh3 units)
http://www.subsim.com/radioroom/showthread.php?t=166104
a sh5 like illumination and I suppose I need a lightmap?
How do I create one?

Thx
Han
Hi, quick answer, don't know if it helps... Most objects have a controller called UnifiedRenderControler in their dat-file, so I think you need that. There you can tell the game how to render your object. Ships at least use Normal map and Occlusion map textures. You can create Normal Map in Photoshop for example. Don't know if these rules apply to your work though.

Zedi 05-08-11 07:32 AM

Quote:

Originally Posted by Rongel (Post 1659338)
Congratulations jwilliams, even if it's a test!

Zedi made a list sometime ago about SH 4 ships that he would like to include in his new campaign mod. Maybe we could concentrate on those ships at first. Could you, Zedi, post again your wish-list? I have SH 4 and can help with the ships.

Here. NMFMPC, KSSSKasagisan and Akita is done by Rongel and TDW.

HanSolo78 05-08-11 07:55 AM

Quote:

Originally Posted by Rongel (Post 1659355)
Hi, quick answer, don't know if it helps... Most objects have a controller called UnifiedRenderControler in their dat-file, so I think you need that. There you can tell the game how to render your object. Ships at least use Normal map and Occlusion map textures. You can create Normal Map in Photoshop for example. Don't know if these rules apply to your work though.

Hi Rongel!

Thx for the first hints... the unified controller I know from modding in .dat files... as far as I know it is there since Sh4. So I have to create a .dat file with this controller.. a normal map is there for the units... if u think of the normal texture mapping.. do you knwo what has to be done in the next step?

TheDarkWraith 05-08-11 08:28 AM

Quote:

Originally Posted by HanSolo78 (Post 1659432)
... if u think of the normal texture mapping.. do you knwo what has to be done in the next step?

I'm not following you in your question of the next step? The unified render controller will take care of the illumination based on the _Txx, _Oxx, and _Nxx maps supplied (and defined for each 3D model part). There are specific vertex and pixel shaders used just for this controller.

Zedi 05-08-11 11:00 AM

Not sure what im doing wrong, but i see no changes..

http://i1232.photobucket.com/albums/...g?t=1304870381
http://i1232.photobucket.com/albums/...g?t=1304870380
http://i1232.photobucket.com/albums/...g?t=1304872623

chrysanthos 05-08-11 01:04 PM

i can wait for a playble ship.....dont worry i am still 36;) we have time....

TheDarkWraith 05-08-11 01:13 PM

Quote:

Originally Posted by Zedi (Post 1659584)
Not sure what im doing wrong, but i see no changes..

what changes are you trying to see? Did you place the shaders I sent to you in their correct folders? From the screenshots you posted the water pixel shader either isn't installed correctly or you forgot it. You should be able to see the new unit's underwater parts when viewed above water with the water PS.

jwilliams 05-09-11 12:08 AM

Quote:

Originally Posted by Zedi (Post 1659426)
Here. NMFMPC, KSSSKasagisan and Akita is done by Rongel and TDW.

Thanks. :salute:

chrysanthos 05-09-11 04:13 AM

the hard part is to make them playble...

jwilliams 05-09-11 04:49 AM

I've started with the Paula.

After many hours of staring at invisible, black, semi transparent, Even a green ship in the museum...

I got this.

http://img855.imageshack.us/img855/5...importtest.png

It's atleast visible, and the texture seems to be being displayed... but it looks a bit washed out. What am I doing wrong??

I've run out of time for tonight... will look into it some more tomorrow.


Update: I darkened the texture and It look much better... So the texture prob needs to be reworked.

Rongel 05-09-11 05:59 AM

Quote:

It's atleast visible, and the texture seems to be being displayed... but it looks a bit washed out. What am I doing wrong??

I've run out of time for tonight... will look into it some more tomorrow.


Update: I darkened the texture and It look much better... So the texture prob needs to be reworked.
Hi! This is SH 4 ship, am I right? The stock textures should work without need to modify them. Okay, here is quick tutorial how I do the basic import (I'm not saying it's the right way to do it, but it is really fast.) Advanced stuff comes later.

1. Copy Sh4 ship to Sh5 (data/sea/) and copy also the roster file (for example data/roster/british/). Include all files you find in SH 4 ship's folder.

2. Open the ships dat file with S3D.

3. Click a 4/100 node that contains the basic ship node (for example 7: Node - Nippon). Now there should be a blue "Model preview" text in the lower middle section of the screen. Click it and you should see the ship. Above the ship is several icons, including four "lightbulb" icons. By clicking them you can see how the textures affect the ship. If you can see the textures here, they also should appear in game. No need to mess with the occlusion and normal maps.

4. To get the ship take damage you need to only make a one new entry. Click again the ships main node and create a child node (4/100 node) . Create a label node for the new node and call it DMG_col_*** where *** is the main node's name, Nippon for example. Now there should be a another blue text where reads Linked 3d model. Copy the main node's 3d model's ID number and paste it here.

Now you should have a ship that takes damage, and all the textures should work also. Good luck, and sorry for the lack of screenies! Ask away more!

I'm a bit worried about the damage modelling. I've seen my ships do strange thinks when they are destroyed. I hope that linking the DMG_col_ to the main node doesn't mess up everything... In SH 4 these ships sink beautifully... Have you TDW examined this yet?


All times are GMT -5. The time now is 07:00 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.