Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Need Help with VB.net and DirectX Fullscreen
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zoddoz
Neophyte

Canada
1 Posts

Posted - Mar 28 2005 :  10:42:37 AM  Show Profile  Reply with Quote
I'm hoping someone can help me. I am trying to create a fullscreen DirectX form, which will be called from a standard form. It works. The DirectX device is created and goes full screen. My problem is that my meshes are not being rendered, the text is being placed, but that's all that is showing up. If I put a break point just as I use the D3DForm.show(), everthing shows up. But if I let it go through as normal, nothing. Does anyone have any ideas?

Thanks in advance.

VBBR
Moderator

Brazil
617 Posts

Posted - Mar 28 2005 :  11:17:26 AM  Show Profile  Reply with Quote
Hm... putting a DoEvents just after D3DForm.Show might do the trick.


Whatever. Who knows...
Go to Top of Page

ardman
Squire

15 Posts

Posted - Mar 29 2005 :  01:28:59 AM  Show Profile  Visit ardman's Homepage  Reply with Quote
Could you give a bit more code? Also, how are you rendering the meshes?

  
  
Structure:  
----------  
Structure CustomMeshX  
    Public Mesh as Direct3D.Mesh  
    Public numX as integer
    Public Tex() as Direct3D.Texture  
    Public Mat() as Direct3D.Material  
End Structure  
  
Form Load procedure:  
---------------------  
Form1.Show  
  
Initialise Direct3D  
  
Dim mMesh as CustomMeshX  
  
While Me.Created  
  
d3ddevice.beginscene()  
'...mesh rendering...
For i = 0 to mMesh.numX  
d3ddevice.settexture(0, mMesh.Tex(i))  
d3ddevice.material = mMesh.mat(i)  
mMesh.Mesh.drawsubset(i)  
Next i  
d3ddevice.endscene()  
d3ddevice.present()  
  
application.doevents  
  
Wend
  

Cheers! :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.11 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.