SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-12-09, 10:39 AM   #1
treblesum81
Frogman
 
Join Date: Apr 2008
Posts: 308
Downloads: 71
Uploads: 0
Default How to add a 3D model into S3D

Hi All,

I'm looking please for some help with adding 3D model references into S3D. I've been able to manipulate models for the most part, as well as the other chunks in the dat file, but when I try to create a 3D model chunk\, I run into troubles.

First, no matter what I do, the chunk always appears at the top level of the data tree, and there is no way for me to move it into a child position because in the "Parent ID" section, it says N/A so I can't move it around. Furthermore, when I try to import a 3D model into it, I get the response that I can't because there is no parent relation set. Also, if I try to import a 3D model into an existing 3D model chunk that is correctly located, the chunk gets moved to the top of the tree again and I'm back to square one.

Am I doing something wrong here? Is it even possible to add a new 3D model into the dat file using S3D? Do I even need to use 3D model chunks in SH4? Please tell me, as I'm starting to run out of ideas and I need to be able to work with more models than are available to me.

Thanks,
Greg

PS: On a side note about torpedo doors, does the 3D model and animation need to be present for them to function? Or can the the description nodes just be in place and they will work?
treblesum81 is offline   Reply With Quote
Old 06-12-09, 01:47 PM   #2
vickers03
Pooped from posting
 
Join Date: May 2007
Location: germany
Posts: 999
Downloads: 712
Uploads: 37


Default

just go to your parent node, right click select "append new child chunk - 3d model".
check the index of the new 3d-model, should be one
below parent node.
you can move nodes up and down with the menu buttons
"move chunk up", "move down".

there is a field on the right when on parent node,
"linked 3d model", enter the model ID there.

as for the torpedo doors, how would you see them
if they don't have a 3d model?

Last edited by vickers03; 06-12-09 at 02:12 PM.
vickers03 is offline   Reply With Quote
Old 06-12-09, 02:10 PM   #3
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by treblesum81 View Post
Hi All,

I'm looking please for some help with adding 3D model references into S3D. I've been able to manipulate models for the most part, as well as the other chunks in the dat file, but when I try to create a 3D model chunk\, I run into troubles.

First, no matter what I do, the chunk always appears at the top level of the data tree, and there is no way for me to move it into a child position because in the "Parent ID" section, it says N/A so I can't move it around. Furthermore, when I try to import a 3D model into it, I get the response that I can't because there is no parent relation set. Also, if I try to import a 3D model into an existing 3D model chunk that is correctly located, the chunk gets moved to the top of the tree again and I'm back to square one.

Am I doing something wrong here? Is it even possible to add a new 3D model into the dat file using S3D? Do I even need to use 3D model chunks in SH4? Please tell me, as I'm starting to run out of ideas and I need to be able to work with more models than are available to me.

Thanks,
Greg

PS: On a side note about torpedo doors, does the 3D model and animation need to be present for them to function? Or can the the description nodes just be in place and they will work?
I am sure someone will pop in to answer this that has more knowledge than me. I don't do a lot of 3D but here is what I do know.

A simple 3D model has three entries in the .dat file.

7 Node: Your_Ship
[box image] 6. 3D model
A 8 Your ship

VERY IMPORTANT: The 3D model MUST be numbered lower than the node that accesses it. Notice above the Node is 7 but the model is 6. Number 8 is the label.

Second the 3D model will not have a Parent ID, as you say it is N/A. So using the example above
1. Select the 6 3D Model and copy the ID.
2. Select 7 Node: Your_Ship
3
Look to the right and you will see "Linked 3D Model" with a box labeled "Model ID" paste the ID you just copiedinto that box.That is how a 3D model gets linked, it does not use "Parent ID", it links using the "Linked 3D model" with the 3D model ID.

I have seen some strange stuff happen if you try to "copy/Paste" a 3D node and don't change the ID, then the model is linked to two different nodes, and an import can cause some strange stuff to happen.But on an unchanged .dat file I have never had a problem importing a new 3D model.Maybe someone that has done it more than me will have a suggestion.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 06-13-09, 12:50 PM   #4
treblesum81
Frogman
 
Join Date: Apr 2008
Posts: 308
Downloads: 71
Uploads: 0
Default

Quote:
Originally Posted by peabody View Post
I am sure someone will pop in to answer this that has more knowledge than me. I don't do a lot of 3D but here is what I do know.

A simple 3D model has three entries in the .dat file.

7 Node: Your_Ship
[box image] 6. 3D model
A 8 Your ship

VERY IMPORTANT: The 3D model MUST be numbered lower than the node that accesses it. Notice above the Node is 7 but the model is 6. Number 8 is the label.

Second the 3D model will not have a Parent ID, as you say it is N/A. So using the example above
1. Select the 6 3D Model and copy the ID.
2. Select 7 Node: Your_Ship
3
Look to the right and you will see "Linked 3D Model" with a box labeled "Model ID" paste the ID you just copiedinto that box.That is how a 3D model gets linked, it does not use "Parent ID", it links using the "Linked 3D model" with the 3D model ID.

I have seen some strange stuff happen if you try to "copy/Paste" a 3D node and don't change the ID, then the model is linked to two different nodes, and an import can cause some strange stuff to happen.But on an unchanged .dat file I have never had a problem importing a new 3D model.Maybe someone that has done it more than me will have a suggestion.

Peabody
Thanks Peabody, the chunk order was the problem and now I'm able to move forward, with my project.

Quote:
Originally Posted by vickers03 View Post
just go to your parent node, right click select "append new child chunk - 3d model".
check the index of the new 3d-model, should be one
below parent node.
you can move nodes up and down with the menu buttons
"move chunk up", "move down".

there is a field on the right when on parent node,
"linked 3d model", enter the model ID there.

as for the torpedo doors, how would you see them
if they don't have a 3d model?
Right now I'm working on a project in which I don't really care about seeing the doors, but care a lot about getting them to function in the way I want them to. So, that why I want to know whether or not you have to be able to see them for them to function...
treblesum81 is offline   Reply With Quote
Old 06-14-09, 04:06 PM   #5
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by treblesum81 View Post
Thanks Peabody, the chunk order was the problem and now I'm able to move forward, with my project.

Right now I'm working on a project in which I don't really care about seeing the doors, but care a lot about getting them to function in the way I want them to. So, that why I want to know whether or not you have to be able to see them for them to function...

kindo hard to follow there ! , what are you working on ?


keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 06-14-09, 10:03 PM   #6
treblesum81
Frogman
 
Join Date: Apr 2008
Posts: 308
Downloads: 71
Uploads: 0
Default

I'm actually trying to work out a way to launch weapons vertically, and to have those be able to coexist with normally launched weaponry. the actual torpedo launch is governed by the location of the torpedo door node, but the angle is governed by the orientation of the root node. As such I'm having some troubles working with the door nodes... Every time I make a change S3D sends the chunks in that node scatter scatter all over the place, hence my desire to let the 3D model fall by the wayside until I can figure out the mechanics of the vertical launch.
treblesum81 is offline   Reply With Quote
Old 06-20-09, 03:08 PM   #7
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

bump
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:48 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.