Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > DirectX > Terrain not rendered on different video card


Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2006, 04:15 AM
Grounded Pilot Grounded Pilot is offline
Freshman
 
Join Date: Mar 2006
Location: UK
Posts: 27
Default Terrain not rendered on different video card


Hi, I have been developing a VB6 DX8 3D engine for some time and I have a terrain made from one continoues triangle strip which winds back and forth.

Now when i recently tried to run this engine on a IBM T41 laptop, the terrain didn't appear. Debugging the code on the laptop itself shows all kinds of corruption, once the triangle strip reverses direction everything gets either corrupted or not drawn (depends on total number of primitives drawn)

Any reason why one graphics card cannot cope and another can? Surely even if the vertices and incorrectly programmed, the triangle strip should always be drawn.
Reply With Quote
  #2  
Old 07-28-2006, 09:05 AM
STufaro STufaro is offline
Newcomer
 
Join Date: Jul 2006
Posts: 9
Default

The T41 may not have DirectX 8 compatible hardware (though it's modern enough that it should...)
Reply With Quote
  #3  
Old 07-30-2006, 06:37 AM
AdrianDeAngelis's Avatar
AdrianDeAngelis AdrianDeAngelis is offline
Contributor
 
Join Date: May 2005
Location: Australia
Posts: 549
Default

I found for myself that when I made the switch from an older videocard to a new one that certain rendering options (eg colourkeying etc...) were not supported the same as on the old card. Running those caused all primitives and blits afterwards to be totally messed up so it might be something else that you are doing, not the triangle strips.

Try rendering without any textures using just a null texture... If you get correct geometry then consider a texture memory/rendering incompatability... first one I can think of is trying to render from a non-square texture.
__________________
Automation error... What do you mean automation error you %#@*&!$ thing!

Star Admiral: 3D tactical space sim *** New Version 0.38 10/01/09 ***
Damage, shields and special weapons systems
Reply With Quote
  #4  
Old 07-31-2006, 08:39 AM
Grounded Pilot Grounded Pilot is offline
Freshman
 
Join Date: Mar 2006
Location: UK
Posts: 27
Default

It all works now, it was caused by a long winding trianglestrip which winds back and forth for the terrain. I don't know why it didn't work but all I did was to render the terrain a many individual trianglestrips and all works again on different PCs/graphics cards.
Reply With Quote
  #5  
Old 07-31-2006, 03:13 PM
STufaro STufaro is offline
Newcomer
 
Join Date: Jul 2006
Posts: 9
Default

Ah, yes, the importance of the Caps - the amount of primitives to draw in a single call is limited by the hardware.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->