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, 08:10 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by privateer View Post
Add a quick way for the users to move verts and auto adjust the normals calculations?
They could produce some interesting things.
Ah yes I have only given the option to move entire meshes around....good point What kind of interface are you thinking of for adjusting the verticies?

As far as auto adjusting the normals you want DirectX to calculate those? It's not very good at doing it since it takes the normals around the vertice in question and averages them all together to come up with the 'new' normal. One can certainly use that. I think better results come from computing the face normals of the faces surrounding the vertice in question and averaging those to get the new normal
TheDarkWraith is offline   Reply With Quote
Old 12-17-11, 08:17 PM   #2
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

There's a million ways to code it.
If you research compute normals?
I'd bet you find a way you are comfortable with. It is a standard calculation after all.
And it does not have to be 70 decimal places perfect.
Actually? you could just zero those settings as the Game will compute them on the fly!
  Reply With Quote
Old 12-17-11, 08:49 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by TheDarkWraith View Post
What kind of interface are you thinking of for adjusting the verticies?
Since the meshes are single Units? You already have the interface set up.
Now all you need to do is allow..............
Select vert, once that is done it could be moved.
On save just redo the CRC so 'Standard' GrannyViewer can look at it as an option.

Let's all be thankful the SH5 Dev's left the GR2 format pretty much stock!
If they had done just a bit more work? We would not be to thids point today!
  Reply With Quote
Old 12-17-11, 10:30 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by privateer View Post
Since the meshes are single Units? You already have the interface set up.
Now all you need to do is allow..............
Select vert, once that is done it could be moved.
On save just redo the CRC so 'Standard' GrannyViewer can look at it as an option.

Let's all be thankful the SH5 Dev's left the GR2 format pretty much stock!
If they had done just a bit more work? We would not be to thids point today!
Easy enough. I can have it highlight the vertice on the screen when you select it so you know which vertice you're working with. I can even code in a picking routine that will allow you to select the vertice by clicking on it in the model. I think the picking routine is best way to select vertice I'll do what I did in my Apollo app for SH3 - when you select the vertice by clicking on it I'll have a lock diamond surround it
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 01:29 AM.


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.