To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 15044
15043  |  15045
Subject: 
Re: SR 3D Builder Version 0.2.2.9 Available
Newsgroups: 
lugnet.cad
Date: 
Tue, 15 Jan 2008 23:00:48 GMT
Viewed: 
4005 times
  
In lugnet.cad, Sergio Reano wrote:
Hi

as someone told, I'm using Microsoft DirectX 9 program interface in my program.

I cannot use OpenGL becouse my known of C++ are not good and, belive it or not,
I'm using VisualBasic.NET for developing.

The problem is that I've to write a custom shader to light backface, thing that
is natural in OpenGL, and to do that I used some low level call to vertex shader
that are supported only from version 2.0 to go.

There's actually a very simple workaround for this, that could be enabled on
hardware that doesn't support SM2.  Make sure back faces are culled (not drawn),
and draw all polygons twice: once the normal way, and a second time with the
vertices specified in the reverse order.  This doubles the number of polygons
being drawn, but due to hardware caches won't normally produce the 2x slowdown
that you would expect.

--Travis



Message is in Reply To:
  Re: SR 3D Builder Version 0.2.2.9 Available
 
Hi as someone told, I'm using Microsoft DirectX 9 program interface in my program. I cannot use OpenGL becouse my known of C++ are not good and, belive it or not, I'm using VisualBasic.NET for developing. The problem is that I've to write a custom (...) (17 years ago, 14-Jan-08, to lugnet.cad)

12 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR