Post

 Resources 

Console


Problems with D3DIM Peter (2 replies, 0 views) (2000-Aug-3)
-
I have a little problem with D3DIM. I want to use computespherevisibility in 3D scene to get a higher frame rate. I use vertexes in the scene that are grouped,like in SDK's Xfile sample.I use an algorithm that computes the center and radius of every mesh group.So every mesh in every group has it's own center and radius.Problem is that when I render all the groups,some groups might not be always on the viewport and the meshes in those groups should not be rendered. Here is a similar code I use: ******************************************************************** Type OneMeshGroup Vertexes() as D3DVertex Radius as Single 'Radius of the mesh in that group Center as D3DVector 'Center coords of the mesh in that group End type Type Mesh ManyMeshGroups() as OneMeshGroup NumberOfGroups as Long end type Public MyMesh as Mesh ********************************************************************* The rendering loop looks like this: Dev.BeginScene For i = 0 To MyMesh.NumberofGroups - 1 With MyMesh.ManyMeshGroups(i) If (D3DDevice.ComputeSphereVisibility(MyMesh.Center,MyMesh.Radius) And D3DSTATUS_CLIPINTERSECTIONALL) = 0 Then DRAW ALL THE VERTEXES End If End With Next Dev.EndScene ********************************************************************** The problem of that code is when at least a single mesh group isn't visible,all other mesh groups are not rendered too. Could anybody help me,because it is VERY important to me!


-
Back to Forum

RE: Problems with D3DIM Rolly (0 replies) (2000-Aug-3)
RE: Problems with D3DIM Noah Adler (0 replies) (2000-Aug-3)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 25 visitors within the last 20 minutes
RSS News Feed