![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
12-17-11, 04:46 PM
|
#1 |
|
The Old Man
![]() |
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 |
|
|
12-17-11, 07:41 PM
|
#2 | |
|
Black Magic
![]() |
Quote:
![]() 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. |
|
|
|
12-17-11, 10:25 PM
|
#3 | |
|
Black Magic
![]() |
Quote:
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 |
|
|
|
12-18-11, 02:26 AM
|
#4 |
|
Black Magic
![]() |
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). |
|
|
12-18-11, 10:11 PM
|
#5 | |
|
The Old Man
![]() |
Quote:
|
|
|
|
12-19-11, 02:05 AM
|
#6 |
|
Black Magic
![]() |
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... |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
