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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-18-12, 04:56 PM   #1
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Was trying to adjust binos so that they point at horizont. Was hoping to rotate the mesh, not sure if it possible at all but here what has happened.
1. Opened /Characters/CharacterBodyParts.gr2 (opened with the abovementioned errors).
2. Unchecked all meshes
3. Found the 'object1_Binocular' mesh, checked it.
4. Right clicked -> 'Edit', it says that 'Bones - Show' must be unchecked.
5. Unchecked 'Bones - Show', rpt. 4, still the same message.
6. Unchecked everything on the 'Bones' tab. rpt.4 Had unhadled exception, says something about extendeddata and that it couldn't create a link.
Vanilla is offline   Reply With Quote
Old 03-18-12, 05:54 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Was trying to adjust binos so that they point at horizont. Was hoping to rotate the mesh, not sure if it possible at all but here what has happened.
1. Opened /Characters/CharacterBodyParts.gr2 (opened with the abovementioned errors).
2. Unchecked all meshes
3. Found the 'object1_Binocular' mesh, checked it.
4. Right clicked -> 'Edit', it says that 'Bones - Show' must be unchecked.
5. Unchecked 'Bones - Show', rpt. 4, still the same message.
6. Unchecked everything on the 'Bones' tab. rpt.4 Had unhadled exception, says something about extendeddata and that it couldn't create a link.
I can't duplicate the problem. I was able to load file and select binos:



Rotating the mesh will be difficult because it's not at world center. It's some distance away. So think about it visually: if you have an object say 5 feet to your left and the plane of rotation is about your center and you rotate say 45 degrees the object will rotate differently than if the object was at the plane of rotation.
TheDarkWraith is offline   Reply With Quote
Old 03-18-12, 06:09 PM   #3
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I can't duplicate the problem. I was able to load file and select binos:
...
Were you able to enter edit mode, I mean what hapens when you right-click on the selected bino mesh and then choose edit? For me it gave an error. I will try again, though.

Thanks for the rotation tip, I think I'll manage. I am trying to rotate it because people are complaining that the watch crew point their binos onto the water, rather than onto the horizont. Simple mesh rotation issue it is - rotate the binos slightly and they will appear looking at horizont.
Vanilla is offline   Reply With Quote
Old 03-18-12, 06:14 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Were you able to enter edit mode, I mean what hapens when you right-click on the selected bino mesh and then choose edit? For me it gave an error. I will try again, though.

Thanks for the rotation tip, I think I'll manage. I am trying to rotate it because people are complaining that the watch crew point their binos onto the water, rather than onto the horizont. Simple mesh rotation issue it is - rotate the binos slightly and they will appear looking at horizont.
ah ok, now I see what the error is . I didn't click on Edit...Now to figure out why
TheDarkWraith is offline   Reply With Quote
Old 03-18-12, 06:20 PM   #5
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

It is impossible to rotate it correcty around the world center unless it goes out of the char's hand, pity.
Vanilla is offline   Reply With Quote
Old 03-18-12, 06:23 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
It is impossible to rotate it correcty around the world center unless it goes out of the char's hand, pity.
It can be done. I did it Just look at the object axis. Think about how you need to rotate it. I found you have to rotate the X and Y axis in 1 step motions (press shift so the steps are small). In between those X and Y steps pairs you have to reposition (translate) via Z axis one small step (shift enabled)
TheDarkWraith is offline   Reply With Quote
Old 03-18-12, 06:31 PM   #7
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
It can be done. I did it Just look at the object axis. Think about how you need to rotate it. I found you have to rotate the X and Y axis in 1 step motions (press shift so the steps are small). In between those X and Y steps pairs you have to reposition (translate) via Z axis one small step (shift enabled)
Heh, a complete mod with a few touches, isn't your Editor great? I'll try to move it again, but tomorrow... it is 3:30AM, modding is addictive indeed!
Vanilla is offline   Reply With Quote
Old 03-18-12, 06:21 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Were you able to enter edit mode, I mean what hapens when you right-click on the selected bino mesh and then choose edit? For me it gave an error. I will try again, though.
found the problem and it's been fixed. Now verifying against Granny Viewer because something looks irai
TheDarkWraith is offline   Reply With Quote
Old 03-18-12, 10:24 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
Were you able to enter edit mode, I mean what hapens when you right-click on the selected bino mesh and then choose edit? For me it gave an error. I will try again, though.
Fixed. Problem was in my extendeddata class's displaying of extendeddata for an object

testversion 1.1.122.1 available here: http://www.mediafire.com/?p3kec6eme5vy2am

NOTE: STILL IN ALPHA STATE!
TheDarkWraith is offline   Reply With Quote
Old 03-19-12, 02:00 AM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I was moving/rotating meshes around and it was hard to determine how far or how much I repositioned the mesh from it's original position and orientation so I decided to take care of that little problem:



Add a new box to the meshes tab: Shallow clones

These are shallow clones (uses the original mesh just repositioned) that will show you the original position/orientation of the mesh. As soon as you reposition/rotate a mesh a new node will appear under the mesh in the meshes treeview: Render shallow clone. If checked it will render the shallow clone. Once any of the Changes, Positions, Rotations, or Scale buttons are pressed (if everything is reset) that node will disappear and the shallow clone will not be rendered anymore. You can set the opacity of the shallow clone via the opacity box. VERY USEFUL

test version 1.1.123.1 available here: http://www.mediafire.com/?r9i95vboy82i0tk

NOTE: STILL IN ALPHA STATE!

TheDarkWraith is offline   Reply With Quote
Old 03-19-12, 01:22 PM   #11
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Hi TDW

Thank you for this addition, it will be easier for me to redo the TDC needles
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Old 03-19-12, 02:33 PM   #12
The General
The Old Man
 
Join Date: Aug 2006
Location: Aberdare, Wales, U.K.
Posts: 1,551
Downloads: 190
Uploads: 3
Default

Pretty damn slick TDW
__________________
***THE GENERAL***
The General is offline   Reply With Quote
Old 03-19-12, 09:14 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Hi TDW

Thank you for this addition, it will be easier for me to redo the TDC needles
I changed the operation of it in the next test version. Now there is an option in Edit-->Options-->Meshes-->Toggle render shallow clone on selected/deselected. If this is checked then anytime you have a mesh selected which you have changed it's orientation then the shallow clone node for that mesh will automatically check thus rendering the shallow clone When you deselect the mesh the check mark will be automatically removed for the shallow clone node

Also changed when they can render. They (shallow clones) only render when the mesh is selected (barring you have them enabled of course).

The adding of new materials is coming along nicely:


The links for Texture and ExtendedData work Though I currently 'grabbed' the pointer from an existing material's extendeddata just to see if it worked or not. Now I have to have my allocater allocate the extendeddata space in the GR2 file for the new material and then write data into that space. Thus giving the new material it's own extendeddata (and not borrowed like I did with this test version)

You can verify for yourself in Granny Viewer: http://www.mediafire.com/?k21eu8glk4ogl3o
TheDarkWraith is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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:18 PM.


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