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:30 PM   #1
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
Default

I wonder what is this huge outermost bounding sphere is there for?
Vanilla is offline   Reply With Quote
Old 12-17-11, 04:40 PM   #2
mobucks
Seasoned Skipper
 
Join Date: Jan 2010
Posts: 713
Downloads: 209
Uploads: 0
Default

I guess those are the pointlight vertexes he was talkin bout.. No idea really. Anyway looks like a lot of work, thanks for doing this!
mobucks is offline   Reply With Quote
Old 12-17-11, 07:48 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vanilla View Post
I wonder what is this huge outermost bounding sphere is there for?
That's the bounding sphere DirectX calculated for the hull of the bismark. What's interesting is that I would've thought the sphere would touch the front and back at one spot. It does this for the back but the front is WAY out in front of the hull. The hull is centered on the origin and about the same size front and rear of the origin. This can only mean there are some verticies in the mesh that aren't being used and they are located WAY up in front.

When you ask DirectX to calculate the bounding sphere of a mesh you pass in the verticies of the mesh as one of the parameters. You get back the center point (Vector3) and the radius (float) of the sphere. I take that center point and radius and use them to create the sphere (it's an intrinsic mesh in DirectX). When I render it I set up a matrix that is this center point and the model/world transform so it's located where it needs to be on the model.
TheDarkWraith is offline   Reply With Quote
Old 12-17-11, 08:30 PM   #4
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

The bounding sphere is not relevent for SH5 that I could prove.
Maybe in a LOD situation? But Granny takes over there so it should be a depricated feature of your program.
Don't confuse users with bells and whistles at this point!
Most people don't even understand what a Vert nor it's postional data means.
Let alone the Tangents and Normals stuff.
Remember the basic rule? KISS
  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.