![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
12-17-11, 04:30 PM
|
#1 |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
I wonder what is this huge outermost bounding sphere is there for?
|
|
|
12-17-11, 04:40 PM
|
#2 |
|
Seasoned Skipper
![]() Join Date: Jan 2010
Posts: 713
Downloads: 209
Uploads: 0
|
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!
|
|
|
12-17-11, 07:48 PM
|
#3 | |
|
Black Magic
![]() |
Quote:
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. |
|
|
|
12-17-11, 08:30 PM
|
#4 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
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 |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
