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

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
zoddoz Posted - Mar 28 2005 : 10:42:37 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
ardman Posted - Mar 29 2005 : 01:28:59 AM
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
  
VBBR Posted - Mar 28 2005 : 11:17:26 AM
Hm... putting a DoEvents just after D3DForm.Show might do the trick.

VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

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