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 12-17-11, 04:46 PM   #1
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default Unable to Move Node Position

I am using v1.0.429.0

Not sure if this is Supported yet.
I am trying to move the Position of a Node I added but changing the X,Y,Z Coordinates does not move the Node.


Regards!
TheBeast
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 12-17-11, 07:41 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by TheBeast View Post
I am using v1.0.429.0

Not sure if this is Supported yet.
I am trying to move the Position of a Node I added but changing the X,Y,Z Coordinates does not move the Node.
You double click the line to bring up the editor screen? If so and you change the position and it tells you position was changed successfully? If so and you don't see any change? If so can you send me the file in question so I can test it

I'll try moving a bone in one of the files on my end and see what happens. Maybe I'm not updating the bones and only updating meshes...hope not.
TheDarkWraith is offline   Reply With Quote
Old 12-17-11, 10:25 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by TheBeast View Post
I am using v1.0.429.0

Not sure if this is Supported yet.
I am trying to move the Position of a Node I added but changing the X,Y,Z Coordinates does not move the Node.
I loaded the Uboat_Sensors file in the app and was able to move bones around. So in order to figure out why you're having problems I need to use the file you tried.

I did though find errors in the code that handles the TreeView for these bones. To draw the TreeView the code does this:

for every file (app has ability to have more than 1 GR2 file loaded though that feature is currently disabled)
- draw a node and update file index counter
---- for every model in the file (you see this as skeleton since models only have 1 skeleton)
----- draw a node and update model index counter
-------- for every bone in the model (skeleton)
--------- draw a node and update bone index counter

Problem was I was never resetting the model or bone index counters whenever a new model or file was used! I have corrected the problem and will be available in next version
TheDarkWraith is offline   Reply With Quote
Old 12-18-11, 02:26 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Implemented picking. Currently you can 'pick' a mesh on the screen by double clicking it's bone origin and:
- render is set so solid or solidwire
- lighting is disabled

I will convert it over to just being able to double click the mesh itself but I just wanted to see if my idea worked or not. The stipulations of render set to solid or solidwire and lighting disabled will still hold

The item 'picked' will turn a beige color and the meshes tab will show the item as the currently selected item. If you select another item in the meshes tab then the currently 'picked' item will change to the item selected. A message is posted in the status box letting you know that you 'picked' a mesh:


Double click an empty part of the screen to 'unpick'.

I will implement picking for verticies also so I can implement the ability to edit/change verticies of a mesh. I will have it coded that in order to 'pick' a vertice you have to be in a render mode that has points (because each point is a vertice).
TheDarkWraith is offline   Reply With Quote
Old 12-18-11, 10:11 PM   #5
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

Quote:
Originally Posted by TheDarkWraith View Post
I loaded the Uboat_Sensors file in the app and was able to move bones around. So in order to figure out why you're having problems I need to use the file you tried.

I did though find errors in the code that handles the TreeView for these bones. To draw the TreeView the code does this:

for every file (app has ability to have more than 1 GR2 file loaded though that feature is currently disabled)
- draw a node and update file index counter
---- for every model in the file (you see this as skeleton since models only have 1 skeleton)
----- draw a node and update model index counter
-------- for every bone in the model (skeleton)
--------- draw a node and update bone index counter

Problem was I was never resetting the model or bone index counters whenever a new model or file was used! I have corrected the problem and will be available in next version
The File I was trying to edit was the data\Submarine\NSS_Uboat7b\Submarine Parts\Conning_7B_00.GR2 file.
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 12-19-11, 02:05 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

have all the picking done. You can select an object by double clicking on it.

If a render mode contains solid then double click any object.
If a render mode conatins solid and you have bones enabled then you have to double click the bone origin to select the object
If a render mode contains points then double clicking a point will select the vertice.

Now for the fun part: use the mouse to drag/rotate the object/vertice to it's new position/rotation You can now deform the mesh by dragging verticies to new positions.

I currently have one problem that is a matrix problem that I can't figure out. It deals with rotations. Say you double click the funnel on top of the King George V. Now you yaw the mesh 90 degrees. Now let's say you want to pitch the mesh 90 degrees. What should happen is it pitches on it's yawed coordinate system (since we yawed it 90 degrees +x is now where +z was and +z is now facing down -x). But I can't make this happen. I've tried to figure out how to do this but keep running into a ro*******. I have everything working except for this

more to come...
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:01 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.